LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 02-03-2007, 10:20 PM   #1
lostinvietnam
LQ Newbie
 
Registered: Sep 2006
Posts: 12

Rep: Reputation: 0
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.
 
Old 02-03-2007, 11:03 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
Old 02-04-2007, 06:20 PM   #3
jacobselvin
Member
 
Registered: May 2005
Location: Australia
Distribution: SUSE 10.1
Posts: 62

Rep: Reputation: 15
Use coreadm command to enable the core file generation
 
Old 02-09-2007, 01:15 AM   #4
ChiefGuo
LQ Newbie
 
Registered: Feb 2007
Posts: 5

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
random core dumps, please help troubleshoot whysyn Linux - Software 4 05-08-2006 12:56 PM
Ps dumps core in linux 2.4.22 rbecker Linux - General 2 01-04-2006 11:43 AM
Does limewire cause x server core dumps, or have I been hacked? cyberdwarf Linux - Software 0 07-01-2004 01:52 PM
Reading Core Dumps bru Linux - General 3 05-07-2004 07:19 PM
Disabling core dumps in mandrake pshepperd Linux - Software 2 09-26-2003 09:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration