-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sparse file in archive triggers "OSError: [Errno 28] No space left on device: '...' " during scan #32
Comments
Would this be with https://github.com/moby/moby/archive/refs/tags/v20.10.5.tar.gz ? |
And I had not seen your attachment! so I am good wih the code link you provided. So I think this is sparse tarball issue which is 60GB extracted and only 5KB otherwise, unextracted, and not even compressed Can you test scanning that one single 5KB file? And can you detail what pre-processing you apply on this. Did you call extractcode first? |
Note that this could be related to aboutcode-org/scancode-toolkit#2431 where @Angi2412 and @avishmehta68710 both mentioned having a similar issue or at least this comment aboutcode-org/scancode-toolkit#2431 (comment) references the same code:
|
Yes, I apply extractcode first! Unfortunately, there is no place where you can see my code, but I can provide a minimalexample.py:
As you proposed, I tested the one single 5KB file and the exact same Error occurs:
Depending on the machine I work on
|
So this is a sparse file issue. The short term workaround may be to ignore the |
Thank you very much! After further analysis, I also came to the conclusion that this is a sparse file issue. |
I still may want to keep this open for now and transfer the issue to extractcode... as we may want to have a special processing for sparse files |
Done... now in extractcode! |
Check for deps in local thirdparty directory #31
Description
moby-20.10.5.zip
After scanning the folder 'moby-20.10.5' I ran into following error:
There should be enough space left on the device.
How To Reproduce
Scan folder 'moby-20.10.5' with following function.
Note, that max_depth=0, such that there are no limitations.
System configuration
Windows/docker, as well as Linux/docker
21.8.4
pip with Python 3.6
The text was updated successfully, but these errors were encountered: