V Wed, Jan 31, 2024 at 11:08:16AM +0100, Milan Crha napsal(a):
Hi,
I tried to investigate a rawhide bug:
https://bugzilla.redhat.com/show_bug.cgi?id=2253099
which is about Evolution being killed "by something". That's the thing,
I do not know what killed it, thus even why it had been killed. It's
even not killed after certain steps, it's killed "randomly", on various
occasions.
I did search the internet, but they usually expect the killer is the
OOM service, which logs about the action either in the dmesg or in the
journal, but in this case there is no sign about whom killed it in
either of these logs.
This procedure works for me
<
https://stackoverflow.com/questions/2827877/tracing-unix-signal-origins>. The
tracefs file system has a nice log. An example of /usr/bin/sleep receiving
SIGKILL from bash:
root@fedora-40:/sys/kernel/debug/tracing # cat trace
# tracer: nop
#
# entries-in-buffer/entries-written: 1/1 #P:4
#
# _-----=> irqs-off/BH-disabled
# / _----=> need-resched
# | / _---=> hardirq/softirq
# || / _--=> preempt-depth
# ||| / _-=> migrate-disable
# |||| / delay
# TASK-PID CPU# ||||| TIMESTAMP FUNCTION
# | | | ||||| | |
bash-4867 [002] d..1. 10571.864270: signal_generate: sig=9 errno=0 code=0
comm=sleep pid=4866 grp=1 res=0
-- Petr