Hello everyone,
I'm implementing a crash reporting tool for a game I'm writing, and I'd like to provide a (fairly) detailed native stack trace for the report. I've already implemented this on GNU/Linux, but I'm having trouble on Windows. Here's some sample code I tried to get working:
Each time I call SymFromAddr, I get the error "Attempt to access invalid address." Does anyone have experience with using StackWalk64/SymFromAddr and their kin?
Thanks, Rob
-
Why not just capture a minidump and send that along with the report? You can rebuild the stack trace yourself in the debugger and you'll get all of your local variables as well as all of the stacks for the other threads.
Also, I think that error is because you're missing the symbols(PDB) for your program.
-
See here http://stackoverflow.com/questions/301892/printing-the-stack-trace-in-c-msvc for an answer StackWalker by Jochen Kalmbach [MVP VC++] as it does all the complicated stuff to get the StackWalk64 API working for you.
-
large link reference :
Mixing SEH and C++ Exceptions
Getting the Stack from a .DMP File (Automating Crash Dump Analysis Part 2)
Stack Trace Exceptions in Win32
Multi-Threading: Deadlock Tracer Utility
Stack overflow (stack exhaustion) not the same as stack buffer overflow
How to release memory pages occupied by the thread stack when possible
How to check whether the Pointer is allocated in Stack or Heap in Debug?
A Flexible Framework for Error Reporting
xtk::xStackTrace Class Reference
How To Find Memory Leaks
All the Ways to Capture a Dump...
How to install Windbg and get your first memory dump
Crash Dump Analysis and Debugging Portal
Windows feature lets you generate a memory dump file by using the keyboard
How to generate a dump file when ASP.NET deadlocks in IIS 6.0
Prolific Usage of MiniDumpWriteDump (Automating Crash Dump Analysis Part 0)
Crash Dump Analysis
Debugging Script: Dumping out ASP.NET Session Contents
mozilla tools trace-malloc lib
Faster Method to Enumerate Heaps on Windows
0 comments:
Post a Comment