Support LQ: Use code LQ3 and save $3 on Domain Registration
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 05-07-2004, 07:23 PM   #1
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, 08:11 PM   #2
LQ 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"...
Old 05-07-2004, 08:13 PM   #3
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,265

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
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, 08:19 PM   #4
Registered: Sep 2003
Location: South Carolina
Distribution: Ubuntu, CentOS, BT4, Debian
Posts: 132

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


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 02:44 PM
Reading Windows partitions on Fedora Core 3 HeLGeNx Linux - Newbie 5 04-11-2005 05:32 PM
Does limewire cause x server core dumps, or have I been hacked? cyberdwarf Linux - Software 0 07-01-2004 02:52 PM
Disabling core dumps in mandrake pshepperd Linux - Software 2 09-26-2003 10:16 PM
Upgraded glibc to 2.3; now rpm segfaults/dumps core nfisk Linux - Software 0 08-26-2003 05:50 PM

All times are GMT -5. The time now is 04:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration