-
Notifications
You must be signed in to change notification settings - Fork 920
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
segmentation fault after SIGHUP #1446
Labels
Comments
leogr
added a commit
that referenced
this issue
Oct 15, 2020
Previously, formatters were freed by LUA code when re-opening outputs. Since now, outputs are not controlling anymore the falco_formats class (see #1412), we just free formatters only if were already initialized. That is needed when the engine restarts (see #1446). By doing so, we also ensure that correct inspector instance is set to the formatter cache. Signed-off-by: Leonardo Grasso <[email protected]>
leogr
added a commit
that referenced
this issue
Oct 16, 2020
Previously, formatters were freed by LUA code when re-opening outputs. Since now, outputs are not controlling anymore the falco_formats class (see #1412), we just free formatters only if were already initialized. That is needed when the engine restarts (see #1446). By doing so, we also ensure that correct inspector instance is set to the formatter cache. Signed-off-by: Leonardo Grasso <[email protected]>
poiana
pushed a commit
that referenced
this issue
Oct 27, 2020
Previously, formatters were freed by LUA code when re-opening outputs. Since now, outputs are not controlling anymore the falco_formats class (see #1412), we just free formatters only if were already initialized. That is needed when the engine restarts (see #1446). By doing so, we also ensure that correct inspector instance is set to the formatter cache. Signed-off-by: Leonardo Grasso <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Falco can restart itself when a SIGHUP is received (this feature was introduced by #457).
Unfortunately, with the current development version (ie. the current code on the master branch) when a SIGHUP is received then after a while Falco crashes (just before printing out any other alerts).
Note that this problem is not present in the last published version
0.26.1
.How to reproduce it
Build Falco from sources. I used
cmake -DCMAKE_BUILD_TYPE=Release ..
.Run Falco (eg.
sudo userspace/falco/falco -c /etc/falco/falco.yaml
) and generate some activity (eg.sudo cat /etc/shadow
).Send a SIGHUP (eg.
sudo kill -s SIGHUP <pid>
).Falco will restart itself as expected, then generate some activity (eg.
sudo cat /etc/shadow
) again, and Falco will crash.Expected behaviour
No segmentation fault.
Screenshots
Environment
Falco version:
0.26.1-43+47fa7d5 (driver version 2aa88dcf6243982697811df4c1b484bcbe9488a2)
System info:
5.8.14-arch1-1
Additional context
This problem might be related to #1412
The text was updated successfully, but these errors were encountered: