LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Not able to get the debug symbols when process crashes (https://www.linuxquestions.org/questions/programming-9/not-able-to-get-the-debug-symbols-when-process-crashes-656124/)

meganath831 07-16-2008 07:48 AM

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

clvic 07-18-2008 03:00 AM

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.


All times are GMT -5. The time now is 05:41 PM.