LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-03-2009, 12:22 PM   #1
igalch
LQ Newbie
 
Registered: Feb 2009
Posts: 3

Rep: Reputation: 0
Core dump analyzing by gdb


Hi,

I would like to analyze core dump after Linux user space application crash. In gdb I loaded symbols of executable application via "file" comand and then used "core" command to load and examine core dump file but received output on gdb which does not say a lot:

(gdb) core /home/igal/Android25_2/dbg/core
Error while mapping shared library sections:
/system/bin/linker: No such file or directory.
Error while mapping shared library sections:
libc.so: No such file or directory.
Error while mapping shared library sections:
libstdc++.so: No such file or directory.
Error while mapping shared library sections:
libm.so: No such file or directory.
Symbol file not found for /system/bin/linker
Symbol file not found for libc.so
Symbol file not found for libstdc++.so
Symbol file not found for libm.so
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
Core was generated by `navilink'.
Program terminated with signal 11, Segmentation fault.
#0 0xafe18b88 in ?? ()

Could you advice?

Igal
 
Old 03-02-2009, 06:18 PM   #2
pokemaster
Member
 
Registered: Apr 2005
Location: Massachusetts, USA
Distribution: debian,ubuntu,slackware
Posts: 110

Rep: Reputation: 17
Where was the application running when it crashed? That's the environment that will have the info gdb needs to help you.
 
Old 05-16-2009, 05:37 AM   #3
jbatista
LQ Newbie
 
Registered: Jan 2008
Location: Portugal
Distribution: Ubuntu
Posts: 6

Rep: Reputation: 0
Post

Quote:
Originally Posted by igalch View Post
(gdb) core /home/igal/Android25_2/dbg/core
Error while mapping shared library sections:
/system/bin/linker: No such file or directory.
Error while mapping shared library sections:
libc.so: No such file or directory.
Error while mapping shared library sections:
libstdc++.so: No such file or directory.
Error while mapping shared library sections:
libm.so: No such file or directory.
Symbol file not found for /system/bin/linker
Symbol file not found for libc.so
Symbol file not found for libstdc++.so
Symbol file not found for libm.so
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
Core was generated by `navilink'.
Program terminated with signal 11, Segmentation fault.
#0 0xafe18b88 in ?? ()
Things I can think of:

Did you run a "ldd yourprogram" to find out how/where the libraries are being loaded from?

Did you link with stuff such as "-Wl,-rpath,/path/to/libraryset1 -Wl,-rpath,/path/to/libbraryset2" etc? (Alternatively, use $LD_LIBRARY_PATH for debugging purposes.)

For debugging it's useful to install the libraries' debugging symbols, typically they come in a separate package. E.g., glibc can have a separate glibc-dbg package for its symbols.
 
Old 05-16-2009, 05:51 AM   #4
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253
Blog Entries: 1

Rep: Reputation: 21
Hi does anyone have a good tutorial on the usage of GDB wherein I can quickly pickup the tool and its usage.

Ajit
 
Old 05-16-2009, 03:23 PM   #5
pokemaster
Member
 
Registered: Apr 2005
Location: Massachusetts, USA
Distribution: debian,ubuntu,slackware
Posts: 110

Rep: Reputation: 17
http://www.gnu.org/software/gdb/documentation/

There's some tutorials in GDB's documentation.
 
Old 07-01-2013, 04:04 AM   #6
anish2good
LQ Newbie
 
Registered: Jul 2011
Posts: 15

Rep: Reputation: Disabled
GDB Tutorials video

GDB Tutorials

gdb for pthread debug

gdb core dump analysis for beginners

gdb tutorial how to start with GDB

zariga
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
analyze process dump using GDB kskkumar Linux - Software 2 05-16-2009 05:41 AM
Core dump in Ubuntu 8.04 (Empty core file) vineet7kumar Linux - Newbie 1 01-17-2009 05:52 PM
where are core dump files and how to analyse them using gdb manish.chauhan Linux - Software 1 11-21-2007 01:59 AM
gdb assembly dump centr0 Programming 3 07-07-2003 11:38 AM
gdb assembly dump "i386-slackware-linux" centr0 Linux - General 0 06-11-2003 11:44 AM


All times are GMT -5. The time now is 11:56 PM.

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