3 ms·
What did you figure out as a solution? I've previously configured `/proc/sys/kernel/core_pattern` to generate core dumps by default (and not pipe them to a cor
by mark_undoio 5y ago
What did you figure out as a solution?
I've previously configured `/proc/sys/kernel/core_pattern` to generate core dumps by default (and not pipe them to a core dump collection program, which may be useful for error reporting but is rarely what I want).
There's also `gcore` for doing on-demand core dumps.
I wish it were possible to configure core dump behaviour per-process (or something similar).
- jmclnx 5y agoThis is what I did: ulimit -S -c unlimited sudo sysctl -w kernel.core_pattern=core took me a while to figure this out, HTH
- mark_undoio 5y agoThanks! I also see there's a `/proc/sys/kernel/core_uses_pid` that will make you get `core.PID` files, without having to mess around with core patterns - seems useful.