Enable coredump for containerized applications #419
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This PR contains the proposed fix for issue #418.
It unblocks the fault signal handler after the log/stacktrace has been flushed. The mechanism is reused from the windows crash handler where this unblocking was already implemented. The modification does not affect non-containerized native processes (non-PID1) as the final step after the flush is re-emitting the fatal signal (
kill
) and code execution for the process stops here. For containerized processes thekill
is passed and ignored and unblocking the sleep in the fault signal handler takes place. This enables the containerized process to exit and create a core-dump.There are no testing or documentation activities done.
New/modified code must be backed down with unit test - preferably TDD style development)
All new/modified functionality should be backed up with API documentation (API.markdown or README.markdown)
Cross-Platform Testing
Testing Advice
Run Test Alternatives:
ctest
ctest -V
for verbose outputmake test