LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 04-23-2013, 01:58 AM   #1
Raghu140
LQ Newbie
 
Registered: Oct 2009
Posts: 20

Rep: Reputation: 0
GDB debugging trace with no relevant info (#0 0x2e6e6f69 in ??) on RHEL


I am facing a specific challenge while debugging with GDB. My binary is generating core. When i am debugging it GDB. I am not getting relevant debugging information.

GDB stack trace (bt):-

# gdb pull core.11328
GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-23.el5)
Reading symbols from /home/abc/xyz/bin/pull...done.
[New Thread 11379]
[New Thread 11378]
[New Thread 11377]
[New Thread 11376]
Reading symbols from /lib/libpthread.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /opt/septel/lib32/libgctlib.so.1...(no debugging symbols found)...done.
Loaded symbols for /opt/septel/lib32/libgctlib.so.1
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libnss_files.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_files.so.2
Core was generated by `./pull -c /home/abc/xyz/conf/Common.cfg -g /home/abc/xyz/'.
Program terminated with signal 11, Segmentation fault.
#0 0x2e6e6f69 in ?? ()
(gdb) bt
#0 0x2e6e6f69 in ?? ()
#1 0x40310738 in ?? ()
#2 0x20459102 in menu_table ()
#3 0x31073900 in ?? ()
#4 0x35910240 in ?? ()
#5 0x01530084 in ?? ()
#6 0x00000052 in ?? ()
#7 0x00000000 in ?? ()
(gdb) q

bt and bt full is not showing any useful info. I have complied my binary -g flag. The same binary had generated normal core (core with proper debugging info) that had i have fixed.

I have also cross checked, space was sufficient. My development and production environments are same. I am not able to find the solution. The code access the same function many a times but some how it generated segmentation fault after 3-4 day and core has not relevant info except menu_table function.

In this particular case i am not able to identify any issue. Please suggest how i can debug and resolve the issue.
 
Old 04-26-2013, 08:17 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 1,335

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
System libraries are usually stripped (symbol tables removed) to save space. The topmost non-stripped line is

Code:
#2 0x20459102 in menu_table ()
This may be be the only line of your code in the stack. See if you can list the relevant lines with:
Code:
l * 0x20459102
 
  


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
debugging with GDB jone kim Linux - General 2 04-13-2010 12:22 AM
Making use of debugging info in gdb? CoderMan Programming 3 05-14-2009 05:48 PM
Debugging Problem in Gdb akm3 Programming 5 01-01-2009 10:03 AM
How to interpret Stack trace from gdb out put NeoMagic Linux - Desktop 1 12-28-2006 11:52 PM
Relevant Info for Faster Answers PatrickNew Linux - Newbie 0 10-30-2006 09:41 AM


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