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

coredump: turn off coredump collection only when PID 1 crashes, not w… #3799

Merged
merged 1 commit into from Jul 25, 2016

Conversation

poettering
Copy link
Member

@poettering
Copy link
Member Author

cc @evverx

@evverx
Copy link
Member

evverx commented Jul 25, 2016

Many thanks!
Works fine:

-bash-4.3# kill -ABRT $(systemctl show --property MainPID --value systemd-journald); sh -c 'kill -ABRT $$'; kill -ABRT 1; sh -c 'kill -ABRT $$'

strace: Process 1 attached
pause(strace: Process 1 detached
 <detached ...>

-bash-4.3# ls /var/lib/systemd/coredump/
core.sh.0.3de40e6f57144d7b88d57703f2767157.252.1469345710000000000000.xz
core.systemd-journal.0.3de40e6f57144d7b88d57703f2767157.132.1469345710000000.xz
core.systemd.0.3de40e6f57144d7b88d57703f2767157.257.1469345711000000.xz

bash-4.3# dmesg
...
[   87.507118] systemd-coredump[259]: Due to PID 1 having crashed coredump collection will now be turned off.
[   90.603437] systemd-coredump[254]: Failed to log coredump: Connection refused
[   99.963005] systemd-coredump[259]: Detected coredump of the journal daemon or PID 1, diverted to /var/lib/systemd/coredump/core.systemd.0.3de40e6f57144d7b88d57703f2767157.257.1469345711000000.xz.
[  100.200219] systemd-coredump[251]: Detected coredump of the journal daemon or PID 1, diverted to /var/lib/systemd/coredump/core.systemd-journal.0.3de40e6f57144d7b88d57703f2767157.132.1469345710000000.xz.

@evverx evverx merged commit c8091d9 into systemd:master Jul 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

2 participants