Results 1 to 2 of 2
Thread: Unknown callstack in KDbg
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Nov 2008
Unknown callstack in KDbg
Every time that my program crashes, KDbg will halt just before shutting the program down, telling me a segmentation fault occurred. However, the callstack for the thread that is causing the problem only holds three lines, which are only filled with question marks. As a result I do not have access to a list of variables and their values or any other guide that can tell me anything that could point to a problem. Does anyone here have any idea why the callstack would seem to be unavailable in KDbg and what I could do to work around this?
- Join Date
- Apr 2009
- I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
This sort of behavior with regard to debugging segfaulted applications is not uncommon when memory problems mung the stack. Because the stack is corrupted, the debugger cannot tell you where it is, or what function was being called when the core dump occurred. This is a good situation to compile the source fully debuggable and with memory checking enabled. Then run it in the debugger directly. It should tell you when you access and write to invalid memory, such as overflowing a buffer.
Alternatively, you can use a commercial memory checker tool like IBM/Rational's Purify.Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!