tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Tony.McElhill () isma ! co ! uk
To: tru64-unix-managers
Subject: SUMMARY II : core file naming.
Date: Fri, 22 Jun 2001 14:40:54 +0000	[thread overview]
Message-ID: <102653649622026.tru64-unix-managers.marc@archive.invalid> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: multipart/mixed; boundary="------_=_NextPart_001_01C0FB29.57A0A2B0", Size: 4414 bytes --]

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 <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
Content-Type: text/html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2448.0">
<TITLE>SUMMARY II : core file naming.</TITLE>
</HEAD>
<BODY>

<P><FONT FACE="Arial">Re. generating coredump:</FONT>
<BR><FONT FACE="Arial">Thanks to:</FONT>
<BR><FONT FACE="Arial">Dave Simmonds: - kill -3 pid</FONT>
<BR><FONT FACE="Arial">Joe Fletcher : - run Netscape ;-)</FONT>
<BR><FONT FACE="Arial">Michael Maxie : - </FONT>
<BR><FONT SIZE=2 FACE="Arial">name the program core.c</FONT>
<BR><FONT SIZE=2 FACE="Arial">--------------8&lt;-----------------------------</FONT>
<BR><FONT SIZE=2 FACE="Arial">#include &lt;assert.h&gt;</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">int main(int argc,</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; char **argv)</FONT>
<BR><FONT SIZE=2 FACE="Arial">{</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; assert(1);</FONT>
<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit(0);</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">}</FONT>
</P>
<BR>
<BR>
<BR>

<P><FONT SIZE=2 FACE="Arial">--------------8&lt;-----------------------------</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">$ cc core.c</FONT>
<BR><FONT SIZE=2 FACE="Arial">$ ./a.out</FONT>
</P>
<BR>

<P><FONT FACE="Arial">Thanks to Robert Mulley.</FONT>
</P>

<P><FONT FACE="Arial">Solution:</FONT>
</P>

<P><FONT FACE="Arial">sysconfig -q proc (shows current attribute values)</FONT>
</P>

<P><FONT FACE="Arial">sysconfig -r proc enhanced-core-name=1 (to change it from 0 to 1)</FONT>
<BR><FONT FACE="Arial">enhanced-core-name: reconfigured</FONT>
</P>

<P><FONT FACE="Arial">sysconfig -q proc (shows current attribute values again to confirm)</FONT>
</P>

<P><FONT FACE="Arial">I haven't tested this yet (does anyone know of an easy way to generate a core dump?).</FONT>
</P>

<P><FONT FACE="Arial">Rgds,</FONT>
</P>

<P><FONT FACE="Arial">Tony.</FONT>
</P>
<BR>

<P><FONT FACE="Arial">Original posting:</FONT>
<BR><FONT FACE="Arial">Hi,</FONT>
</P>

<P><FONT FACE="Arial">I recall that there is a way to give unique names to core dumps (kernel attribute?) , but don't remember how.</FONT>
<BR><FONT FACE="Arial">TU4.0Dpk3.</FONT>
</P>

<P><FONT FACE="Arial">TIF,</FONT>
</P>

<P><FONT FACE="Arial">Tony.</FONT>
</P>

</BODY>
</HTML>

 
 
 
 
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--

                 reply	other threads:[~2001-06-22 14:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox