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

Grype hangs forever if gets interrupted during work (in rare cases) #1427

Closed
Dentrax opened this issue Aug 10, 2023 · 3 comments · Fixed by #1437
Closed

Grype hangs forever if gets interrupted during work (in rare cases) #1427

Dentrax opened this issue Aug 10, 2023 · 3 comments · Fixed by #1437
Assignees
Labels
bug Something isn't working

Comments

@Dentrax
Copy link

Dentrax commented Aug 10, 2023

What happened:

grype registry.k8s.io/dns/k8s-dns-node-cache:1.22.22
Screenshot 2023-08-10 at 22 00 47

What you expected to happen:

It should terminated if SIGTERM or SIGQUIT received during runtime.

How to reproduce it (as minimally and precisely as possible):

🤷‍♂️

Anything else we need to know?:

Environment:

  • Output of grype version:
Application:          grype
Version:              0.65.1
Syft Version:         v0.86.1
BuildDate:            2023-08-04T13:02:31Z
GitCommit:            078a6c5e9e6e9e6e1037da6dcf953623e7d38500
GitDescription:       v0.65.1
Platform:             darwin/arm64
GoVersion:            go1.19.11
Compiler:             gc
Supported DB Schema:  5
  • OS (e.g: cat /etc/os-release or similar): macOS 13.4.1

cc @luhring

@Dentrax Dentrax added the bug Something isn't working label Aug 10, 2023
@wagoodman
Copy link
Contributor

@kzantow mind checking if the port to clio resolves this?

@wagoodman wagoodman self-assigned this Aug 10, 2023
@wagoodman
Copy link
Contributor

dev note: this is explicitly when you are mid run (and is not expected to fail/hang) and when cataloging starts (or db download starts) you interrupt with ctrl-c, then you can get to this condition. You should be able to hit this when immediately hitting ctrl-c on startup.

@kzantow
Copy link
Contributor

kzantow commented Aug 15, 2023

Update: it appears the CLIO port does, in fact, fix this issue! 🎉

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
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants