Re: core dump

From: Erik Andersen (andersen@xmission.com)
Date: Wed Jan 12 2000 - 17:40:09 EST


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/



This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:21 EST