Hi all,
I would like to know if there is a way to
control the core files naming scheme.
More precisely, the pid of the process is appended
at the end of the file name and i wish to avoid that, so
that newer core files overwrite previous ones.
(I use Mandrake 9.1 if this info is relevant)
Thanks in advance
Yves
|
|
0
|
|
|
|
Reply
|
Tux
|
10/14/2003 5:08:06 PM |
|
in comp.unix.programmer i read:
> I would like to know if there is a way to
>control the core files naming scheme.
hack your kernel.
--
a signature
|
|
0
|
|
|
|
Reply
|
those
|
10/15/2003 2:03:51 AM
|
|
On Tue, 14 Oct 2003 19:08:06 +0200, Tux wrote:
> Hi all,
>
> I would like to know if there is a way to
> control the core files naming scheme.
> More precisely, the pid of the process is appended
> at the end of the file name and i wish to avoid that, so
> that newer core files overwrite previous ones.
> (I use Mandrake 9.1 if this info is relevant)
echo 0 > /proc/sys/kernel/core_uses_pid
It will be set on reboot via. /etc/sysctl.conf
--
James Antill -- james@and.org
Need an efficient and powerful string library for C?
http://www.and.org/vstr/
|
|
0
|
|
|
|
Reply
|
James
|
10/15/2003 3:51:19 AM
|
|
On Tue, 14 Oct 2003 23:51:19 -0400, James Antill
<james-netnews@and.org> wrote:
>On Tue, 14 Oct 2003 19:08:06 +0200, Tux wrote:
>
>> Hi all,
>>
>> I would like to know if there is a way to
>> control the core files naming scheme.
>> More precisely, the pid of the process is appended
>> at the end of the file name and i wish to avoid that, so
>> that newer core files overwrite previous ones.
>> (I use Mandrake 9.1 if this info is relevant)
>
>echo 0 > /proc/sys/kernel/core_uses_pid
>
> It will be set on reboot via. /etc/sysctl.conf
And kernel 2.6 has /proc/sys/kernel/core_pattern -- see the proc(5)
man page for details.
Cheers,
Michael
|
|
0
|
|
|
|
Reply
|
Michael
|
10/15/2003 5:38:00 AM
|
|
Michael Kerrisk wrote:
> On Tue, 14 Oct 2003 23:51:19 -0400, James Antill
> <james-netnews@and.org> wrote:
>
>>On Tue, 14 Oct 2003 19:08:06 +0200, Tux wrote:
>>
>>> Hi all,
>>>
>>> I would like to know if there is a way to
>>> control the core files naming scheme.
>>> More precisely, the pid of the process is appended
>>> at the end of the file name and i wish to avoid that, so
>>> that newer core files overwrite previous ones.
>>> (I use Mandrake 9.1 if this info is relevant)
>>
>>echo 0 > /proc/sys/kernel/core_uses_pid
>>
>> It will be set on reboot via. /etc/sysctl.conf
>
> And kernel 2.6 has /proc/sys/kernel/core_pattern -- see the proc(5)
> man page for details.
>
I have kernel 2.4, so i will try James Antill's solution.
Thanks for your answers.
|
|
0
|
|
|
|
Reply
|
Tux
|
10/15/2003 1:26:14 PM
|
|
|
4 Replies
195 Views
(page loaded in 0.073 seconds)
Similiar Articles: Fishing information from Core file - comp.unix.programmer ...My question is, can I capture that text info (i.e. the file name and path for ... Fishing information from Core file - comp.unix.programmer ... How do i get information ... HP-UX 11.11 overwriting core file(s) - How to prevent? - comp.sys ...Seems there should be a more elegant scheme of saving core files than having them all use the same name and overwrite the last one. Is there a better way? dbx : Interpreting stack history of core - comp.unix.solaris ...... piece of stack dump of a core file ? what's in the First column ? Second column, I think can be interpreted by demanglers - which will turn out to be function names ! take core dump from gdb of running process? - comp.unix.solaris ...analyze core files - comp.unix.solaris take core dump from gdb of running process? - comp.unix.solaris ... Argument is core file name (defaults to core.<pid>). Anyone used the Xilinx' floating point core? - comp.arch.fpga ...A pin name misspelling can cause this, a missing edif or ngc file, or the ... All generated FP Core files are in the ISE project directory (also the .ngc file), the ... Solaris Core --Signal 9 --not able to find anything useful - comp ...>I think i faced signal 9 -core file first time. ? Is it ok to have core >with Signal 9 ? Yes. > >( i am very much sure none has used kill -9 prog_name) "Nobody", maybe ... Project including MIG core problems with Chipscope - comp.arch ...... m debugging the old design which now has been complemented with the MIG core ... or ngc file, case mismatch between the block name and the edif or ngc file name, or ... Bash: strip file path and file extension from a file name in a ...... and probably faster) way would be [rw@sapphire]~ $echo $a /home/rw/core.1 ... It would be great if it was possible to strip a file name from it's full path and ... Sun's paper about use of pstack, dbx etc? - comp.unix.solaris ...... tips how to decipher the output of the type: $ pstack core core 'core' of 28144: <my program name ... analyze core files - comp.unix.solaris Sun's paper about use of ... How to find memory corruption when malloc is not the cause? - comp ...... blogs.sun.com/hema/entry/libumem_for_detecting_memory_corruption > > on the core file ... libumem.so.1 libc.so.1 libuutil.so.1 ld.so.1 ] >> ::umem_verify > Cache Name ... Linux core dump file name control - Michael, Theresa, Jenna ...Overview. This patch provides for a way to securely move where core files show up and to set the name pattern for core files to include the UID ... Core dump - Wikipedia, the free encyclopediaA core dump gets its name from an old memory technology using tiny magnetic cores, shown ... systems, each process had a contiguous address-space, so a core dump file was ... 7/24/2012 2:07:22 PM
|