Find out which Python program did a core dump
(Updated on Fri Aug 25, 2023)
This morning, while casually looking at my syslogs, I saw a big red stacktrace about a Python process. I got curious and wanted to look at which script crashed like that. However, the name of the faulty script was nowhere to be found in the trace. 09:48:24 kernel: python3[2550364]: segfault at 0 ip 00007fd9f65cb8d9 sp 00007fffc69143d0 error 4 in libgtk-3.so.0.2404.30[7fd9f65ad000+382000] 09:48:24 systemd-coredump[2563786]: [/] Process 2550364 (python3) of user 1000 dumped core.