diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-12-03 09:44:11 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-12-03 09:44:11 +0000 |
commit | 4ec04015295308c728d57e8a52f0b68189d69f94 (patch) | |
tree | 020395cb38ea479716b9b3bc13d0d797fa6ae7dc | |
parent | 61e6554b7fb84a2a6355ff5f3d8819091f2b3a56 (diff) |
modified the stack trace section slightly
-rw-r--r-- | docs/BUGS | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -1,3 +1,4 @@ +$Id$ _ _ ____ _ ___| | | | _ \| | / __| | | | |_) | | @@ -35,23 +36,24 @@ BUGS The address and how to subscribe to the mailing list is detailed in the MANUAL file. - HOW TO GET A STACK TRACE with a common unix debugger - ==================================================== + How To Get A Stack Trace + ======================== First, you must make sure that you compile all sources with -g and that you - don't 'strip' the final executable. + don't 'strip' the final executable. Try to avoid optimizing the code as + well, remove -O, -O2 etc from the compiler options. - Run the program until it bangs. + Run the program until it dumps core. Run your debugger on the core file, like '<debugger> curl core'. <debugger> should be replaced with the name of your debugger, in most cases that will be 'gdb', but 'dbx' and others also occur. When the debugger has finished loading the core file and presents you a - prompt, you can give the compiler instructions. Enter 'where' (without the - quotes) and press return. + prompt, enter 'where' (without the quotes) and press return. The list that is presented is the stack trace. If everything worked, it is supposed to contain the chain of functions that were called when curl - crashed. + crashed. Include the stack trace with your detailed bug report. It'll help a + lot. |