Hi Mtk,
BTW, if I add "%P-%e-%s.core" every core starts with the same
"P1000-"
The man page shows:
%P PID of dumped process, as seen in the initial PID namespace
(since Linux 3.12)
Do you see similar? I was only needing something to make the filename unique, so %t is enough.
Cheers, Jonny
On 30/05/2020 11:39, Jonny Grant wrote:
Hello mtk
I've noticed "%e-%s.core" often gives something other than the filename and the name is truncated to 16 bytes:-
ThreadPoolServi-5.core
Chrome_InProcUt-5.core
This was set:
sysctl -w kernel.core_pattern="%e-%s.core"
In multithreaded applications it looks like %e is giving something other than the filename, perhaps a thread entry-point
symbol name.
https://www.man7.org/linux/man-pages/man5/core.5.html
%e executable filename (without path prefix)
Could this be updated to:
%e executable filename or thread name truncated to 16 bytes
Cheers, Jonny