Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 06-13-2002, 03:11 PM   #1
LQ Newbie
Registered: Nov 2001
Location: Canada
Distribution: Slackware 8.1
Posts: 26

Rep: Reputation: 15
Question : catching cores


I have this big project I am working on, and sometimes a missed quotation or a %s that gets fed an int causes a segmentation fault you know how it is. I used to code for a mud that had cores dumped each time the program hosed itself, and I could navigate the cores with gdb. If I could catch cores it would save me alot of time.

I'm no linux guru, and I was wondering if anyone could give me some help, a primer even, on how to catch cores. Before you ask, when I check ulimit it says unlimited

Old 06-13-2002, 04:36 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Working on cores isn't the best idea I know. It's much better to include special code (for development versions) to write every program stem to a log file. Then you can easily find out what was wrong. That's a method I use...
Old 06-13-2002, 05:29 PM   #3
LQ Newbie
Registered: Nov 2001
Location: Canada
Distribution: Slackware 8.1
Posts: 26

Original Poster
Rep: Reputation: 15

It's rather big - I have last function log prints in all major parts, but there are about 1500 methods to the program in over 100000 lines of code. It would be quite a spammy log since it's a real-time system. Cores are a must - anyone know how to get them going?



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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
catching signals alaios Programming 3 11-16-2007 06:05 AM
Cores on Fedora jonty_11 Fedora 2 11-05-2004 10:25 AM
Catching a Hacker... Shr00mBoXx Linux - Security 14 06-30-2004 10:59 PM
Catching first letter. TheRealDeal Linux - General 1 03-28-2004 09:50 PM
Netscape/Mozilla dumping cores like mad, WHY? bobthebat Linux - General 3 06-02-2001 07:04 AM > Forums > Linux Forums > Linux - General

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

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
Open Source Consulting | Domain Registration