Hello André Isidoro Fernandes Esteves, one more possibly useful thing to consider:
If you could install a core dump collector like package systemd-coredump, then the system would store a file of each crash for later inspections. Also it would already print a backtrace in the system journal. When then a crash happens these command might be used: coredumpctl list coredumpctl gdb <PID> backtrace Kind regards, Bernhard