LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


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

Rep: Reputation: 15
Question : catching cores


Hello,

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

Cheers!
Saeven
 
Old 06-13-2002, 03:36 PM   #2
Mara
Moderator
 
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, 04:29 PM   #3
Saeven
LQ Newbie
 
Registered: Nov 2001
Location: Canada
Distribution: Slackware 8.1
Posts: 26

Original Poster
Rep: Reputation: 15
Well..

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?

Cheers,
Alex
 
  


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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:18 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
Open Source Consulting | Domain Registration