Re: How to make a core dump?
Scott Gifford <[email protected]>
| Newsgroups | gmane.comp.security.linux |
|---|---|
| Message-ID | <[email protected]> |
Alexander Morozov <[email protected]> writes: [...] > it would be helpful to make its core dump, but i couldn't figure out > how to do this. On my Fedora Core 2 system, SIGABRT and SIGSEGV both cause a process to dump core, but by default the system is configured to prohibit coredumps (ulimit -c 0). If I increase these limits before starting the process I want to get a coredump from (ulimit -c 10000000) I get the dumps fine. This assumes the process you want to get a dump from isn't intercepting SIGABRT or SIGSEGV. If you can't set the limits beforehand, you might be able to attach with gdb, use setrlimit to eliminate the coredump restriction, then send an ABRT or SEGV signal. ----ScottG.