From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653649622026.tru64-unix-managers.marc@archive.invalid> From: Tony.McElhill () isma ! co ! uk Date: Fri, 22 Jun 2001 14:40:54 +0000 To: tru64-unix-managers Subject: SUMMARY II : core file naming. X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653649622026 MIME-Version: 1 Content-Type: multipart/mixed; boundary="------_=_NextPart_001_01C0FB29.57A0A2B0" This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C0FB29.57A0A2B0 Content-Type: text/plain Re. generating coredump: Thanks to: Dave Simmonds: - kill -3 pid Joe Fletcher : - run Netscape ;-) Michael Maxie : - name the program core.c --------------8<----------------------------- #include int main(int argc, char **argv) { assert(1); exit(0); } --------------8<----------------------------- $ cc core.c $ ./a.out Thanks to Robert Mulley. Solution: sysconfig -q proc (shows current attribute values) sysconfig -r proc enhanced-core-name=1 (to change it from 0 to 1) enhanced-core-name: reconfigured sysconfig -q proc (shows current attribute values again to confirm) I haven't tested this yet (does anyone know of an easy way to generate a core dump?). Rgds, Tony. Original posting: Hi, I recall that there is a way to give unique names to core dumps (kernel attribute?) , but don't remember how. TU4.0Dpk3. TIF, Tony. This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify us immediately by return e-mail to the originator and then delete this message from your system. Please do not copy it or use it for any purpose, or disclose its contents to any other person: to do so could be a breach of confidence. ------_=_NextPart_001_01C0FB29.57A0A2B0 Content-Type: text/html SUMMARY II : core file naming.

Re. generating coredump:
Thanks to:
Dave Simmonds: - kill -3 pid
Joe Fletcher : - run Netscape ;-)
Michael Maxie : -
name the program core.c
--------------8<-----------------------------
#include <assert.h>

int main(int argc,
        char **argv)
{

        assert(1);
        exit(0);

}




--------------8<-----------------------------

$ cc core.c
$ ./a.out


Thanks to Robert Mulley.

Solution:

sysconfig -q proc (shows current attribute values)

sysconfig -r proc enhanced-core-name=1 (to change it from 0 to 1)
enhanced-core-name: reconfigured

sysconfig -q proc (shows current attribute values again to confirm)

I haven't tested this yet (does anyone know of an easy way to generate a core dump?).

Rgds,

Tony.


Original posting:
Hi,

I recall that there is a way to give unique names to core dumps (kernel attribute?) , but don't remember how.
TU4.0Dpk3.

TIF,

Tony.

This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify us immediately by return e-mail to the originator and then delete this message from your system. Please do not copy it or use it for any purpose, or disclose its contents to any other person: to do so could be a breach of confidence. ------_=_NextPart_001_01C0FB29.57A0A2B0--