lkml.org 
[lkml]   [2000]   [Jan]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: core dump
On Wed Jan 12, 2000 at 12:13:11PM +0100, J.D. Bakker wrote:
> >It would be extremely useful to be able to get a core dump that gdb
> >understands without having the process stall longer than it takes to write
> >the core and have it continue merrily on its way.
>
> Maybe I'm being naive, but isn't it possible to put something like this in
> a signal handler:
>
> if(fork() > 0)
> (volatile int *) 0 = 0;
>
> Assuming you have the source, off course.

A bit less messy:

if (fork() == 0) {
raise(11);
}

-Erik

--
Erik B. Andersen Web: http://www.xmission.com/~andersen/
email: andersee@debian.org
--This message was written using 73% post-consumer electrons--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.029 / U:1.800 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site