Re: Dumping Core on Purpose
Brian White wrote:
> > Assuming that forking a "kamakazi" child is not an acceptable
> > solution, is there some way of capturing the image of the process from
> > the kernal?
> Hmmm... That's interesting. Assuming there is no library/system call
> to force a core dump, I could fork a child and then make the child access
> mem at 0xFFFFFFFF to cause a segfault and dump core. Would that work?
There is a library call which forces a core dump, it's abort().
Jens B. Jorgensen
Unsubscribe? mail -s unsubscribe firstname.lastname@example.org < /dev/null