[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Dumping Core on Purpose



On Thu, 16 Jul 1998, 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?

Couldn't you send the child a SIGABRT?  Stevens's APUE seems to indicate
this is the way to go, or call the abort() functionB 
-- 
Nathan Norman
MidcoNet - 410 South Phillips Avenue - Sioux Falls, SD 57104
mailto://finn@midco.net http://www.midco.net finger
finn@kepler.midco.net for PGP Key: (0xA33B86E9) 
	


--  
Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null


Reply to: