|
From: Dennis L. <pla...@in...> - 2005-11-20 22:19:54
|
Hi, can I somehow to get valgrind to obey the settings of /proc/sys/kernel/core_uses_pid and core_pattern ? greets Dennis Carpe quod tibi datum est |
|
From: Tom H. <to...@co...> - 2005-11-20 23:02:46
|
In message <6.1...@po...>
Dennis Lubert <pla...@in...> wrote:
> can I somehow to get valgrind to obey the settings of
> /proc/sys/kernel/core_uses_pid and core_pattern ?
No. The first could be done, but the second is tricker as we need
to differentiate core dumps from valgrind itself and those from the
client it is running.
Hence the core.<pid> vs vgcore.<pid> differentiation.
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|
|
From: Nicholas N. <nj...@cs...> - 2005-11-20 23:23:14
|
On Sun, 20 Nov 2005, Tom Hughes wrote: >> can I somehow to get valgrind to obey the settings of >> /proc/sys/kernel/core_uses_pid and core_pattern ? > > No. The first could be done, but the second is tricker as we need > to differentiate core dumps from valgrind itself and those from the > client it is running. > > Hence the core.<pid> vs vgcore.<pid> differentiation. Could we just append "vg" in front of whatever name would be used? Ideally any core file for the client would get the normal name, and any core file for Valgrind itself would get a different name (eg. with the "vg" prefix), but I don't see how that's possible. Nick |
|
From: Dennis L. <pla...@in...> - 2005-11-20 23:23:57
|
At 00:02 21.11.2005, Tom Hughes wrote: >In message <6.1...@po...> > Dennis Lubert <pla...@in...> wrote: > > > can I somehow to get valgrind to obey the settings of > > /proc/sys/kernel/core_uses_pid and core_pattern ? > >No. The first could be done, but the second is tricker as we need >to differentiate core dumps from valgrind itself and those from the >client it is running. > >Hence the core.<pid> vs vgcore.<pid> differentiation. maybe vg could be prepended to the actual file name ? Like in my case I have core_pattern = /var/core/core.%p_sig%s_at_%t_from_%e_%u_%g to keep information about the program that crashed in the filename and to have them all at the same location, for easier cleanup. maybe valgrind could rewrite it to /var/core/vgcore.%p_sig%s_at_%t_from_%e_%u_%g and dump it there ? greets Dennis Carpe quod tibi datum est |