LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 07-16-2008, 07:48 AM   #1
meganath831
LQ Newbie
 
Registered: Jul 2008
Posts: 1

Rep: Reputation: 0
Question Not able to get the debug symbols when process crashes


Hi,

I am trying to get the back trace information through backtrace() and backtrace_symbols() API's when the process crashes due to segmentation fault. Iam compiling with options as
CXXFLAGS = -Wall -g -ftemplate-depth-64 -rdynamic
Only getting the backtrace in the form like: process[address]. But normal format of the backtrace should be process(function+offset) [address]. Am i missing something in compilation options or any thins else? Please suggest me. Thanks in advance.

MMC
 
Old 07-18-2008, 03:00 AM   #2
clvic
Member
 
Registered: Feb 2008
Location: Rome, Italy
Distribution: OpenSuSE 11.x, vectorlinux, slax, Sabayon
Posts: 206
Blog Entries: 2

Rep: Reputation: 44
I would try running gdb or some other debugger on your process, so that you can check whether the problem is in the executable itself or in the way you're using the backtrace APIs.
 
  


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
Building with debug symbols? Omni Programming 3 08-29-2006 08:11 AM
How to Debug Linux Kernel Boot process kushalkoolwal Linux - Kernel 4 06-22-2006 06:30 PM
How to use gdb to debug child process? ariana Programming 2 05-03-2005 01:50 PM
UT2004 Missing Symbols - Crashes jwoair23 Linux - Games 40 08-08-2004 06:33 PM
How to debug a child process? koyi Programming 3 09-11-2003 05:23 AM


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