Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


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

Rep: Reputation: 0
Forcing gcc to dump the core


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.

Old 10-13-2003, 10:53 AM   #2
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
Registered: Jul 2003
Distribution: Slackware
Posts: 390

Rep: Reputation: 53
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.



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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:04 PM.

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