-
Notifications
You must be signed in to change notification settings - Fork 48
signal: Backtrace on SIGUSR1 #79
signal: Backtrace on SIGUSR1 #79
Conversation
@amshinde, @sboeuf, @bergwolf - I'm raising this now but the tests fail due to a data race. fwics, it's related to
|
Changed `TestShimOps()` to wait for the go routines started by `proxyStdio()` to end. Without this fix, `go test` fails with a data race panic. Signed-off-by: James O. D. Hunt <[email protected]>
The fatal file is going to also deal with non-fatal signals so rename it. Signed-off-by: James O. D. Hunt <[email protected]>
The debug option is now auto-enabled if the user specifies the debug log level. Signed-off-by: James O. D. Hunt <[email protected]>
Don't pass an empty string to the logger as it is not required. Signed-off-by: James O. D. Hunt <[email protected]>
A signal that the shim considers as fatal should be forwarded to the container before being handled by the shim (to ensure the former also receives it). Signed-off-by: James O. D. Hunt <[email protected]>
bc3ca37
to
d6b92a5
Compare
Atlast had a chance to look at this again. The data race was caused by a missing Removed dnm label. |
Rework the signal handling code so that if debug is enabled and a `SIGUSR1` signal is received, backtrace to the system log but continue to run. Added some basic tests for the signal handling code. Fixes kata-containers#76. Signed-off-by: James O. D. Hunt <[email protected]>
d6b92a5
to
bae08c9
Compare
Codecov Report
@@ Coverage Diff @@
## master #79 +/- ##
==========================================
+ Coverage 45.45% 51.73% +6.28%
==========================================
Files 6 6
Lines 242 259 +17
==========================================
+ Hits 110 134 +24
+ Misses 120 114 -6
+ Partials 12 11 -1
Continue to review full report at Codecov.
|
Yay for the log parser which just found a subtle test bug ;) |
Ping @kata-containers/shim. |
Rework the signal handling code so that if debug is enabled and a
SIGUSR1
signal is received, backtrace to the system log but continueto run.
Added some basic tests for the signal handling code.
Fixes #76.
Signed-off-by: James O. D. Hunt [email protected]