LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-13-2003, 09:51 AM   #1
tim_l
LQ Newbie
 
Registered: Oct 2003
Posts: 18

Rep: Reputation: 0
Forcing gcc to dump the core


Hi:

Is there a way of forcing gcc to dump the core? Currently I'm getting a segmentation fault but the core isn't being dumped. Previously on a different system I've had no trouble in getting the core to dump (!) but the one time I'd actually like it to to help me debug the code gcc isn't playing ball.

Cheers
 
Old 10-13-2003, 10:53 AM   #2
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 31
I think you have to use the abort function for gcc to dump core.

(I am not sure but that is what I had read ...)
 
Old 10-13-2003, 10:42 PM   #3
lyle_s
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 389

Rep: Reputation: 52
It's possible your ulimit setting for core file size is set to zero. Run:

ulimit -Sc unlimited

and see if you get core files.

Lyle
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Core Dump MrPotatoHead AIX 3 01-14-2004 10:42 AM
no core dump with gcc -g -D_GNU_SOURCE cicisbeo Programming 2 11-27-2003 03:38 PM
core dump tomservo Linux - General 4 09-23-2002 06:35 PM
core dump on redhat7.2 but not 6.2 ccjohnny Programming 14 07-25-2002 11:19 PM
core dump lacrimae Linux - General 3 02-19-2002 02:43 PM


All times are GMT -5. The time now is 03:05 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration