On Wed, Apr 10, 2024 at 4:08 PM Alexander Dahl <a...@thorsis.com> wrote:
> Note: platform here is 32 bit arm, namely v5te on Microchip SAM9X60 > SoC. Kernel is 6.6, maybe I did not get the kernelconfig right and > some options are not set correctly? Or maybe those crashes are real? > Then I could need some help how to _really_ enable coredumps for > journald, udevd, and timesyncd. Got a hint off-list to pass > 'systemd.dump_core=true' to kernel cmdline, but that had no effect on > coredump creation. > I would just set kernel.core_pattern to a *file* path, e.g. "/var/log/core.%P". Then use the shell's ulimit command to raise the coredump size limit as it defaults to zero (ulimit -c unlimited), and manually start /usr/lib/systemd/systemd-timesyncd from the shell (timesyncd is the simplest one and doesn't do anything system-critical). Alternatively, run the service under the debugger: `gdb /usr/.../timesyncd`. -- Mantas Mikulėnas