-
Notifications
You must be signed in to change notification settings - Fork 575
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 is now throwing panic with version 0.66.1 #1462
Comments
Thanks for the report -- is there a public image you could provide that exhibited this problem? |
@kzantow public runner image of macOS 11 for example. I have tried on latest one. It happens with different files. |
Thanks for responding.
I'm not sure whether "gcc-amd64-darwin-exec-debug" is correct binary or not,but it causes panic. |
Please provide a set of steps on how to reproduce the issue
Run syft version 0.66.1 with certain Mach-O binaries, an error occurs .
syft packages dir:/home/xxx
What happened:
What you expected to happen:
Scan should proceed with results produced.
Anything else we need to know?:
The file that caused the panic is "go/pkg/mod/golang.org/x/tools@v0.0.0-20191109212701-97ad0ed33101/cmd/splitdwarf/internal/macho/testdata/gcc-amd64-darwin-exec-debug".
I traced this error.
When the panic has occured, syft/pkg/cataloger/java/graalvm_native_image_cataloger.go: L.325
bi.Symtab is nil .
I put in the check code to try it out and it completed with no problems.
Environment:
syft version
: 0.66.1cat /etc/os-release
or similar):20.04.5 LTS (Focal Fossa)The text was updated successfully, but these errors were encountered: