LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-02-2007, 11:03 PM   #1
kskkumar
Member
 
Registered: Aug 2005
Posts: 40

Rep: Reputation: 15
analyze process dump using GDB


Hi i am having a process dump with me. I wanted to analyze the dumped fie. But when i open it with GDB with -c option, it says "mydump.dump" is not a core dump: File format not recognized

what should i do?
 
Old 12-04-2007, 07:55 AM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Core dumps are almost always just called "core". Run the program "file" on mydump.dump and see if it recognises it as a core dump. Maybe the program has it's own crash parachute and this file is just some debugging information?
 
Old 05-16-2009, 05:41 AM   #3
jbatista
LQ Newbie
 
Registered: Jan 2008
Location: Portugal
Distribution: Ubuntu
Posts: 6

Rep: Reputation: 0
Post

Quote:
Originally Posted by kskkumar View Post
Hi i am having a process dump with me. I wanted to analyze the dumped fie. But when i open it with GDB with -c option, it says "mydump.dump" is not a core dump: File format not recognized

what should i do?
As kskkumar explained, core dumps are files usually named only "core". With gdb you first load the file, then you load the core dump; or from the command line: gdb yourprogram core .

Remember to do a "man gdb" or go the the gnu.org website for documentation.

Also, the "ulimit" command allows to specify the core dump size limit, if my memory doesn't fail me it's "ulimit -c unlimited" for example. Again, check its manual.
 
  


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
where are core dump files and how to analyse them using gdb manish.chauhan Linux - Software 1 11-21-2007 01:59 AM
attach gdb to a running process linwenyuan Linux - Desktop 1 10-15-2006 01:50 AM
gdb - analyze crashes Ephracis Programming 4 08-26-2006 05:11 PM
How can i attach gdb to a daemon process praveengujar Linux - General 0 08-11-2004 06:58 AM
gdb assembly dump centr0 Programming 3 07-07-2003 11:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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