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

tracee: panic during initialization #3185

Closed
rafaeldtinoco opened this issue Jun 1, 2023 · 1 comment · Fixed by #3188
Closed

tracee: panic during initialization #3185

rafaeldtinoco opened this issue Jun 1, 2023 · 1 comment · Fixed by #3188
Assignees
Labels
Milestone

Comments

@rafaeldtinoco
Copy link
Contributor

Description

$ sudo ./dist/tracee --config ~/policies/config.yaml --policy ~/policies/network/ 
TIME             UID    COMM             PID     TID     RET              EVENT                     ARGS
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x110 pc=0x18506b8]

goroutine 28 [running]:
github.com/aquasecurity/tracee/pkg/ebpf.(*Tracee).enrichContainerEvents.func1()
        /home/rafaeldtinoco/work/ebpf/tracee-libbpfgo/pkg/ebpf/events_enrich.go:79 +0x128
created by github.com/aquasecurity/tracee/pkg/ebpf.(*Tracee).enrichContainerEvents
        /home/rafaeldtinoco/work/ebpf/tracee-libbpfgo/pkg/ebpf/events_enrich.go:73 +0x1f4

Output of tracee version:

v0.14.2-56-g234b9d0d

Output of uname -a:

Linux azure 6.3.2 #5 SMP Tue May 16 04:48:36 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

Additional details

@rafaeldtinoco rafaeldtinoco added this to the v0.15.0 milestone Jun 1, 2023
@rafaeldtinoco
Copy link
Contributor Author

rafaeldtinoco commented Jun 1, 2023

Since our pipeline is (most of the times) a channel of pointers, those pointers could have been garbage collected, I believe, in case references to it don't matter any more (probably during our shutdown ?).

In the pipeline, the caching step checks if event is null before moving on in both 'in/out' channels.

image

I believe the same should happen in the enrich pipeline stage:

image

and any other stage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants