Skip to content
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

syft scan gets Killed #3651

Open
SaurabhNair96 opened this issue Feb 10, 2025 · 3 comments
Open

syft scan gets Killed #3651

SaurabhNair96 opened this issue Feb 10, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@SaurabhNair96
Copy link

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:

  1. Running the tool directly on the sif file
    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
Image

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.

@SaurabhNair96 SaurabhNair96 added the bug Something isn't working label Feb 10, 2025
@willmurphyscode
Copy link
Contributor

Hi @SaurabhNair96 - sorry to hear you're having this issue. Can you return the exit code of Syft? (In the Ubuntu terminal, run echo $? immediately after Syft exits). I suspect it's being killed by an out-of-memory error, but the exit code would help.

@SaurabhNair96
Copy link
Author

Hi @willmurphyscode exit code is 137

@SaurabhNair96
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants