How do I get a backtrace from a crashing program ?

Here's how to get a backtrace from a crashing program :

 ./configure --enable-debug ; make clean ; make 

Or simply add "-g" to the compiler options (these options are usually contained in an environment variable called CFLAGS for C or CXXFLAGS for C++).

  gdb ./program
  run

FAQ_Getting_a_backtrace (last edited 2008-04-17 08:18:26 by localhost)