-
Notifications
You must be signed in to change notification settings - Fork 612
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
on certain Singularity images, syft scan crashes due to runaway memory use #3651
Comments
Hi @SaurabhNair96 - sorry to hear you're having this issue. Can you return the exit code of Syft? (In the Ubuntu terminal, run |
Hi @willmurphyscode exit code is 137 |
Hi @willmurphyscode just to follow up on that, we also tried it on a similar virtual machine with a lot more space and it still showed the same problem. Does the exit code confirm that it is a space issue? Thanks! |
Hi @SaurabhNair96, Thanks for attaching the image! It does seem like this image uses an inordinate amount of RAM when being scanned. We'll take a look. Thanks. |
From an initial look it seems that the run frequently gets stuck in the package.json parser function. It's as if there is an infinity sized file (from a little bit of added logs to help out):
I saw that Some debugging shows it's continually finding the same package again and again: After a few breakpoints, it seems like there could be a bug in the squashfs lib reader... I believe I saw that the underlying reader after reading the file contents reset the internal file pointer ( |
Description: I'm attempting to generate a SBOM for a Singularity file using Syft, but I encounter a "Killed" error.
Below is my setup and the command I used. I'm also attaching the sif file for the purpose of being able to reproduce the error.
Environment:
OS: Windows 10 running a virtual Ubuntu 24.04.1
Syft version: 1.19.0
Steps to take:
syft scan singularity:/mnt/shareee/siffiles/[FILE].sif -o cyclonedx-json > sbom-output.json -vv
Error:

Says "Killed".
Attaching an image that shows the error below
The image file can be found here: https://1drv.ms/f/c/d595eda503cbaa82/Evd5EGi9yJFOu64giEKVgwgB7erf50e3fmM6KLUTIUq94A
I was wondering if you would have some insight how I can circumvent the issue. Thank you in advance.
The text was updated successfully, but these errors were encountered: