postmortem-debugging

Tool for analyzing .Net app memory dumps

Can somebody suggest a good free tool for analyzing .Net memory dumps other than Adplus/windbg/sos ? ...

Configuring Application Verifier to generate a full-memory .DMP file?

Under AppVerifier, one of our apps blows up. I get a DMP file, but it's a minidump. Specifically, while I've got the call stack, I'd also like the user-space memory for the faulting process (it uses a lot of globals). How do I configure App Verifier (or Windows) to give me a full dump file? ...

Including WinDbg in the vsjitdebugger list

Is it possible to include WinDbg in the list of debuggers shown by vsjitdebugger when the latter is configured as the default debuuger in HKLM...\AeDebug? Ideally I would like to be able to include a few more command-lines to the list of choices in vsjitdebugger that are available when a process encounters an unhandled exception: using ...

Help postmorten debugging of a mixed mode Win32 application

Here's the situation: Background I have a mixed mode .NET/Native application developed in Visual Studio 2008. What I mean by mixed mode is that the front end is written in C++ .NET which calls into a native C++ library. The native code does the bulk of the work in the app, including kicking off new threads as it requires. The .NET co...

Accessing Python Objects in a Core Dump

Is there anyway to discover the python value of a PyObject* from a corefile in gdb ...

Cross-platform crash handler

I'm looking for a cross-platform crash handler. Google Breakpad looks promising, but it is sorely lacking any documentation, and requires a reasonable amount of fiddling to actually get going. What is a better alternative? All I need is the ability to reliably record crash dumps, stack traces, and CPU information at the time of a cras...

How to debug a WER minidump of an "ngen"ed image

When ngen is executed on a .NET managed application at installation time, and a crash dump is retrieved from Windows Error Reporting for the app, how can you use it to see a stack trace, variables, etc.? Here's some background related to the question: We have a .NET app that gets ngened at installation. When it crashes due to an unhandl...

Step execution of release code / post-mortem debugging (VS/C++)

Is there any sense to step-execute release code? I noticed that some lines of code are omitted, i.e. some method calls. Also variable preview doesn't show some variables and shows invalid (not real) values for some others, so it's all quite misleading. I'm asking this question, because loading WinDbg crashdump file into Visual Studio br...

WinDbg stacktrace shows wrong values for function arguments (KP command)

I am debugging a minidump in WinDbg and the Visual Studio 2005 debugger and they produce different results. WinDbg gets it wrong When doing KP in WinDbg, the relevant part of the stacktrace is: 0bb6ef30 0a4a25b8 MyModule!SomeClass::methodB( void * buffer = 0x05d8d800, int bufferLen = 1797233953, ...

PDB file from different versions of Visual Studio

I have an old DLL file which was built with VC++ 6. Now I need to investigate the dump file but I don't have its PDB available. The stacktrace reported by WinDbg is also inaccurate. Is it possible to rebuild the project with later versions of Visual Studio i.e. 2003, 2005, 2008, have the PDB generated, and use this to map addresses to ...

Post-mortem crash-dump debugging without having the exact version of a Windows DLL in the Symbol Server

Within my application, I use the MiniDumpWriteDump function (see dbghelp.dll) to write a crash dump file whenever my application crashes. I also use a symbol server to store all my executables and pdb files, so that whenever a customer sends me a crash-dump file, the debugger automatically picks up the correct version of the executable ...

Do minidump files contain the timestamp of the crash?

The MiscInfoStream in a minidump file contains the process create time. I'd like to find out how long the process has been running for before the crash. Does a minidump file contain the exception timestamp anywhere? WinDbg on this dump file displays the following, which implies that it's in there somewhere... Debug session time: Tue De...

What exactly happens if you delete an object? (gcc) (When double-delete crashes?)

Please note that I don't want to solve any problem with my question - I was thinking about probabilities of things to happen and thus was wondering about something: What exactly happens if you delete on object and use gcc as compiler? Last week I was investigating a crash, where a race condition lead to an double delete of an object. ...

grails integration test case preserve data for investigation

We were used to running our grails integration test against in memory HSQLDB database, but at the failure point it was difficult to investigate as the data was lost. We migrated to running the test against the physical database(postgres) and all is well when the tests passes. At any point if the tests fail we want the data to be committe...

.Net 1.1 Application - Stack Overflow - Slient shutdown - Dataset bug?

Im a developer for a major company and we are facing a nasty crash scenario. Some background the application is fundamentally a message processing system. The aplication has a large in memory dataset shared across several threads. Access to the dataset is syncronised (usually) The in memory dataset contains several tables Most message...

GDB: how to see what memory addresses are accessible?

Suppose, in a debugging session I have an address which unfortunately points to some rubbish. And I want to examine memory around it to see what's located near. As expected, the following error occurs: (gdb) x/64 $t5 0x842da7ac: Cannot access memory at address 0x842da7ac So, the question is: is there any way to read a range of add...

Post mortem minidump debugging In windbg -- what causes <memory access error> for heap memory?

I'm looking at a crash dump. Some variables seem perfectly viewable in windbg, while others just say "memory access error". What causes this? Why do some variables have sensical values while others simply list ? It appears that all the problems are associated with following pointers. I'm certain that while many of these pointers are uni...