LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-16-2006, 10:38 PM   #1
hedpe
Member
 
Registered: Jan 2005
Location: Boston, MA
Distribution: Debian
Posts: 380

Rep: Reputation: 30
not getting "core" file after segmentation faults


Hi,

I am getting segmentation faults with my program, however I am getting no core dump file.

I compile like:
Code:
gcc  -c -g -Wall -Werror -DDEBUG -pthread caching.c
gcc -g -Wall -Werror -DDEBUG -pthread caching.o -o caching -lm
whenever I do "ulimit", it says "unlimited"

Any ideas?

Thanks!
George
 
Old 01-17-2006, 12:07 AM   #2
eric.r.turner
Member
 
Registered: Aug 2003
Location: Planet Earth
Distribution: Linux Mint
Posts: 216

Rep: Reputation: 31
Quote:
Originally Posted by hedpe
I am getting segmentation faults with my program, however I am getting no core dump file.

whenever I do "ulimit", it says "unlimited"

Any ideas?
Ulimit restricts more than just core file size. If you just type "ulimit" it gives you the maximum allowed size of files created by the shell. What happens when you type "ulimit -c"? I'm guessing it will say "0". What you should do is "ulimit -c unlimited".

Cheers.
 
Old 01-17-2006, 08:10 AM   #3
kshkid
Member
 
Registered: Dec 2005
Distribution: RHEL3, FC3
Posts: 383

Rep: Reputation: 30
Quote:
Originally Posted by hedpe
Hi,

I am getting segmentation faults with my program, however I am getting no core dump file.

I compile like:
Code:
gcc  -c -g -Wall -Werror -DDEBUG -pthread caching.c
gcc -g -Wall -Werror -DDEBUG -pthread caching.o -o caching -lm
whenever I do "ulimit", it says "unlimited"

Any ideas?

Thanks!
George
dumping binary image of the executable as a core file depends upon the default action of the signal the program had received.
 
  


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
Fedora Core 2: Screen Resolution can not change from "800X600" to "1024X 768" suhaimi_sj Fedora - Installation 18 12-17-2009 03:29 AM
Fedora Core 4# (Final) hanging on "Formatting/File System"... TippyToes Fedora - Installation 6 07-04-2005 11:06 PM
Segmentation Faults with "ls" and "mount" Mark007 Slackware 11 03-02-2005 09:45 AM
why iam getting problems like "...too many files opened" or "segmentation fault" naren_0101bits Linux - Newbie 2 07-19-2004 12:20 PM
"segmentation error" when issuing "useradd" command through terminal with RH 9.0 kaihuang Linux - General 0 10-21-2003 11:47 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:33 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