LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 05-07-2004, 06:23 PM   #1
bru
Member
 
Registered: Sep 2003
Location: South Carolina
Distribution: Ubuntu, CentOS, BT4, Debian
Posts: 132

Rep: Reputation: 15
Reading Core Dumps


Quick question, how do you read a Core Dump?? I have a program that I just created but when I run it, it crashes and creates a core dump. I think it might be helpfull in debuging the program if I could read the core dump file.

Thanks for the help in advance!
 
Old 05-07-2004, 07:11 PM   #2
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
you need to look at the core dump with a debugger... on linux it's usually "gdb"...

http://www.gnu.org/software/gdb/gdb.html
 
Old 05-07-2004, 07:13 PM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,060

Rep: Reputation: 295Reputation: 295Reputation: 295
Usually you use a debugger to read them. The standard debugger with Linux is gdb. So to debug program1 with its core file your would type 'gdb program1 core'. Note that you may not get all the info you want if you didn't compile the program with debugging support (-g flag to gcc).
 
Old 05-07-2004, 07:19 PM   #4
bru
Member
 
Registered: Sep 2003
Location: South Carolina
Distribution: Ubuntu, CentOS, BT4, Debian
Posts: 132

Original Poster
Rep: Reputation: 15
Thank you very much win32sux & btmiller
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem reading arabic file names in fedora core 3 Yaan Linux - Newbie 1 05-21-2005 01:44 PM
Reading Windows partitions on Fedora Core 3 HeLGeNx Linux - Newbie 5 04-11-2005 04:32 PM
Does limewire cause x server core dumps, or have I been hacked? cyberdwarf Linux - Software 0 07-01-2004 01:52 PM
Disabling core dumps in mandrake pshepperd Linux - Software 2 09-26-2003 09:16 PM
Upgraded glibc to 2.3; now rpm segfaults/dumps core nfisk Linux - Software 0 08-26-2003 04:50 PM


All times are GMT -5. The time now is 03:20 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration