LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Turning on Core dumps (https://www.linuxquestions.org/questions/linux-kernel-70/turning-on-core-dumps-525388/)

lostinvietnam 02-03-2007 10:20 PM

Turning on Core dumps
 
Hi.
I'm using gdb to debug a binary with a stack overflow. The segfault doesn't generate any core file for me to debug against. Does the ulimit command allow me to turn on core dump generation for third party apps or does it just control core dumps generated by the kernel? How can I get my segfault to dump core?

Thanks.
Lostinvietnam.

jschiwal 02-03-2007 11:03 PM

Ulimit will change the core dump size for user shells running the program. You may need to check if there is a PAM imposed limit as well. Check /etc/security/limits.conf.

jacobselvin 02-04-2007 06:20 PM

Use coreadm command to enable the core file generation

ChiefGuo 02-09-2007 01:15 AM

You can use "ulimit -c xxx" to open the core dump. And press "ulimit -a" to have the more help.


All times are GMT -5. The time now is 07:08 AM.