Questions tagged [minidump]

A minidump is a file containing information about the state of a process, generally used for post-mortem debugging on Windows.

Minidumps are a file format invented by Microsoft to capture the state of a process. They often contain a minimal set of useful information (hence the name mini dump), including a list of threads, the stack memory for each thread, the loaded set of modules, and information about any exception that occurred. This is usually enough to get a stack trace from where the process crashed. Minidumps can also contain much more information, including the full heap memory of the process (usually referred to as a "full memory dump"), which can be quite large.

Windows will generate a minidump for a process when it crashes, however the minidump will be sent to Microsoft, and you are required to sign up for a WinQual account to view the reports. To avoid this process, many applications implement their own minidump-writing routines that send the dump directly to the application developers using email or HTTP, using well-known techniques as described in this Code Project article. There are also several libraries available that simplify the process, such as Google Breakpad and CrashRpt.

184 questions
9
votes
6 answers

Debugging a minidump in Visual Studio where the call stack is null

I have a customer who is getting a 100% reproduceable crash that I can't replicate in my program compiled in Visual Studio 2005. I sent them a debug build of my program and kept all the PDB and DLL files handy. They sent me the minidump file, but…
Piers
  • 723
  • 1
  • 6
  • 18
9
votes
5 answers

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…
Edward Brey
  • 40,302
  • 20
  • 199
  • 253
9
votes
1 answer

How to get the EXCEPTION_POINTERS during an EExternal exception?

How do i get the EXCEPTION_POINTERS, i.e. both: PEXCEPTION_RECORD and PCONTEXT data during an EExternal exception? Background When Windows throws an exception, it passes a PEXCEPTION_POINTERS; a pointer to the exception information: typedef…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
9
votes
2 answers

How to create a kernel dump using WinDbg

I'm debugging a kernel-mode device driver for Windows, using WinDbg. Is it possible to create a minidump on-demand? I mean, one of my breakpoints is hit, the system is stopped. I want to create a minidump (let's say stack only). Is there a WinDbg…
valdo
  • 12,632
  • 2
  • 37
  • 67
8
votes
2 answers

How do I get at the exception information when using MiniDumpWriteDump out-of-process?

When using the MiniDumpWriteDump function to create a core dump of a process on Windows, it is recommended (e.g. here, and here) that the MiniDumpWriteDump is run from another "watchdog" process because it may well not work when called from within…
Martin Ba
  • 37,187
  • 33
  • 183
  • 337
7
votes
3 answers

How to create minidump of a .NET process when a certain first chance exception occurs

My application throws InvalidCastException in the QA environment, something I cannot reproduce in development. I wish to obtain the minidump at the exception moment. I know about adplus, but I am not sure how to use it so that it creates the…
mark
  • 59,016
  • 79
  • 296
  • 580
7
votes
1 answer

What settings should I be using with Minidumps?

Currently we call MiniDumpWriteDump with the MiniDumpNormal | MiniDumpWithIndirectlyReferencedMemory flags. That works just fine for internal builds in Debug configuration, but isn't giving as much information as we need in Release configuration. In…
Andy Patrick
  • 280
  • 1
  • 4
  • 11
7
votes
5 answers

installing debugging tools to analyse minidumps on windows 7

I've been trying to install the 'Debugging Tools', in order to try to analyse the dump file a server-crash (Windows Server 2008 R2). I used to do this in the past, but I cannot find how to install / locate the Debugging Tools for Windows 7. I've…
Karl Cassar
  • 6,043
  • 10
  • 47
  • 84
7
votes
1 answer

C++ exception "The thread tried to read from or write to a virtual address for which it does not have the appropriate access."

In an effort to track down some hard to reproduce crashes I've configured the UnhandledExceptionFilter to create mini-dump files as described here: Debugging Custom Filters For Unhandled Exceptions and Effective Minidumps The dumps are being…
chillitom
  • 24,888
  • 17
  • 83
  • 118
6
votes
2 answers

Symbols (pdb) for native dll are not loaded due to post build step

I have a native release dll that is built with symbols. There is a post build step that modifies the dll. The post build step does some compression and probably appends some data. The pdb file is still valid however neither WinDbg nor Visual…
sean e
  • 11,792
  • 3
  • 44
  • 56
6
votes
2 answers

What's in a dump file?

I've been asked by a MS Connect moderator to provide a mini dump file for an issue I'm experiencing with Visual Studio. My business is mildly concerned about what might be contained within the dump file (which is around half a gig in size). By…
m-smith
  • 2,943
  • 4
  • 25
  • 39
6
votes
2 answers

How can I get complete stack traces for mixed-mode minidumps when (WPF) native images are involved?

I have a mixed-mode C++/CLI application which uses WPF. Crashes from our customers are reported as minidumps to our own server. When I try to investigate a minidump using the !pe or !clrstack commands from the windbg sos-extension, I often get…
Peter Schneider
  • 121
  • 1
  • 6
6
votes
2 answers

Is there a way to know the thread id in another process which throws an exception?

I am trying to use MiniDumpWriteDump() API to dump a crashed process B from another process A. I am doing this because MSDN said so: MiniDumpWriteDump should be called from a separate process if at all possible, rather than from within the …
smwikipedia
  • 61,609
  • 92
  • 309
  • 482
6
votes
3 answers

C++: Should I catch all exceptions or let the program crash?

I have a Windows service written in (Visual) C++ with a very detail logging functionality that has often helped me find the cause of errors customers are sometimes experiencing. Basically I check every return value and log what is going on and where…
Helge Klein
  • 8,829
  • 8
  • 51
  • 71
6
votes
4 answers

How do I get a string description of a Win32 crash while in Top level filter (I am looking for the address of the instruction at the top of the stack)

If I use a class/method like the one described here how can I get the description/address of the call at the top of the stack? Basically I want some value I can use in a call to our bug tracking system. I want to "uniquely" identify based on the…
Tim
  • 20,184
  • 24
  • 117
  • 214
1
2
3
12 13