Link to home
Start Free TrialLog in
Avatar of elsdon
elsdon

asked on

how to do a stack trace

Hi,

I need to do a stack trace to report a problem with open office, and have never done this before.  Figured out that I probably need to use gdb.  So, if I'm in the program directory, and the binary is called soffice, I type 'gdb soffice' just to see what happens, but gdb complains that it doesn't recognise the format of the binary.  What do I do in such a case, or is there an alternative program I should be trying?

Thanks
Avatar of fremsley
fremsley

Sorry, I can't help you with your unrecognised binary
format.

Hoever, gdb is a very powerfull and complicated tool; so
since you never have worked with gdb before, it might be
a good idea to use one of the confortable front-ends for
it -- my favorite is GNU ddd (see http://www.gnu.org/),
you'll find the stack trace under Status/Backtrace.

Hope it helps

If soffice is crashing it should create a core file. This can be opened with the gdb debugger (or via one of the gui front ends such as ddd gvd etc.) and then you can display the call stack at the point of failure.
ASKER CERTIFIED SOLUTION
Avatar of Sixpax
Sixpax

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of elsdon

ASKER

That sorted it out - 'soffice' is a script file that calls soffice.bin - 'file soffice' pointed that out. Thanks.