Date: Wed, 06 Dec 2006 11:56:56 -0800 From: Garrett Cooper <youshi10@u.washington.edu> To: freebsd-hackers@freebsd.org Subject: Re: Forcing C program to core dump Message-ID: <45772088.4090402@u.washington.edu> In-Reply-To: <45771F7D.8070006@gmail.com> References: <457713C8.6020204@u.washington.edu> <45771F7D.8070006@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Niclas Zeising wrote: > Garrett Cooper wrote: >> Hello, >> This may be obvious to some, but after some Googling (apparently >> with the wrong search terms, perhaps) and reading the gcc/gdb >> manpages, I can't seem to find out how to get a program to produce >> core dumps. >> So I was wondering, is there some simple means to produce core >> dumps or a set of conditions that I need to adhere to in order to get >> the OS to core dump the progrdam??? >> Thanks, >> -Garrett > > Just kill it with the abort signal (SIGABRT) or some other signal that > makes the program dump core. Be aware though that if you are catching > or ignoring the signal, this won't work. > Regards! > //Niclas Wow. I got a lot of interesting ways to kill and force a coredump. Haha... Not quite what I had in mind, but I guess that's what I get for improperly wording the question. Thank you all, the information I've gotten recently is definitely educational and it'll probably end up being useful later! -Garrett
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45772088.4090402>