[systemd-devel] How to debug crash of systemd

cee1 fykcee1 at gmail.com
Mon Feb 11 21:43:51 PST 2013


Hi all,

systemd will call crash() if received fatal signals. It will produce a
core dump for analysis.
However, it seems signal handler has a separated stack, so can't back
trace the place where exactly the fatal signal triggered.

Any idea?

BTW,
* It will be helpful if could print /proc/1/maps, more:
https://github.com/cee1/systemd/commit/89d049507734746f6f1100218ca97cc829b05e0a
* Has anyone tried the crash shell? I added a custom sysrq which will
send SEGV to init, hence triggered the crash(). According to the log,
crash shell was called and exited immediately.



-- 
Regards,

- cee1


More information about the systemd-devel mailing list