Trivy is crashing with "panic: runtime error: invalid memory address or nil pointer dereference" when scanning for HIGH/CRIT vulnerabilities #8537
Replies: 4 comments 36 replies
-
@DmitriyLewen trivy/pkg/report/table/summary.go Line 266 in 67d95a9 |
Beta Was this translation helpful? Give feedback.
-
Hello @gregory-hive Unfortunately, i can't reproduce your case. Also i see that you use client/server mode. Did you update Trivy server? |
Beta Was this translation helpful? Give feedback.
-
Hi there! Chiming in from the side as I just tried to create an issue for this without properly reading the contribution guidelines 😅
This results in the following error message:
In GitHub Actions, I get this problem when running the action as follows:
Setting the environment variable
|
Beta Was this translation helpful? Give feedback.
-
I encountered the same panic few days ago. |
Beta Was this translation helpful? Give feedback.
-
Description
One of my builds with Trivy scans has started to crash with:
panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x58 pc=0x3c77dbb]
.When it is run with "--severity HIGH,CRITICAL" flag, while the previous step with "--severity LOW,MEDIUM" works just fine.
There were no change in the application code/dependencies list, it crashes with the same error even for the build which successfully passed last week (latest success on the 7th of March)
Desired Behavior
Successful scan
Actual Behavior
Runtime error
Reproduction Steps
Target
Container Image
Scanner
Vulnerability
Output Format
Table
Mode
Standalone
Debug Output
Operating System
Ubuntu 22.04
Version
Checklist
trivy clean --all
Beta Was this translation helpful? Give feedback.
All reactions