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
2
votes
2 answers

creating CLR dumps with breakpad

I am using Google Breakpad to generate crash dumps for my windows application when it crashes. My application mixes C++ native code with C# CLR code. The dumps that breakpad produces don't include any CLR information. Is it possible to turn CLR dump…
Aviad Rozenhek
  • 2,259
  • 3
  • 21
  • 42
2
votes
2 answers

How to open a C# crash dump (Minidump)

Our C# application calls MinidumpWriteDump upon an unhandled exception. I have received some crash dumps from users where i cannot seem to open the crash dump with SOS and see the exception that caused the crash. The dump type we're taking is…
lysergic-acid
  • 19,570
  • 21
  • 109
  • 218
2
votes
0 answers

Application crashes with no dump file

I've written an unhandled exception handler for my application to create a minidump file. But I just got an user report of my application "disappearing" and no dump file was created. What class of error could cause my application to crash without…
2
votes
2 answers

Where's the application crash dump on an XP SP3 machine?

It used to be that an application crash (unhandled exception) would create a mini dump in the %TEMP% folder on an XP machine, but it looks like Microsoft has changed this logic - maybe with an update. When a user level application or a service…
Charles
  • 2,642
  • 3
  • 33
  • 53
2
votes
1 answer

How can I solve the error "Can't switch processors on a single processor kernel triage dump" in WinDbg?

I have a mini dump generated with the default parameters described at Collecting User-Mode Dumps. The dump was generated when the system was hanging through right CTRL+SCROLL LOCK+SCROLL LOCK as set in the following register…
Alessandro Jacopson
  • 18,047
  • 15
  • 98
  • 153
2
votes
1 answer

Google crashpad on a cross-compilation platform application. Cannot read dmp file in Ubuntu

I have a small qt project with a segmentation fault that I want to track (this is an example and the segmentation fault is manually added for testing purposes, in the real project I do not know the segfaults left there). I decided to use google…
apalomer
  • 1,895
  • 14
  • 36
2
votes
0 answers

minidump stackwalk vs gdb backtrace

I have a vulnerability trigger (CVE-2018-18492) in Firefox, which crashes and gives SIGSEGV. I used breakpad minidump_stackwalk to get its stack trace from the minidump file produced with the crash. I got something like below: Thread 0 (crashed) 0 …
Clover Ye
  • 253
  • 3
  • 8
2
votes
2 answers

WinDbg does not show full stack trace for some minidump-files

I'm trying to set up a crashdump system to better be able to debug errors that I can't replicate easily on my own system Here's my test program (Compiled with Release x64 Configuration with Visual Studio 2017): #include "pch.h" #include…
Silverlan
  • 2,783
  • 3
  • 31
  • 66
2
votes
2 answers

My minidumps are getting too big to be loaded by Visual Studio, how do I solve this?

When my application crashes it generates a minidump to allow post mortem debugging. I use the options MiniDumpWithIndirectlyReferencedMemory and MiniDumpWithPrivateReadWriteMemory. It all worked great until recently when the dumpfiles started…
Pieter
  • 1,191
  • 1
  • 11
  • 29
2
votes
0 answers

Investigating minidump without having all binaries from process

Our company provides set of dll's to customers, and from time to time there is a need to fix some completely rare unknown exception, or crash, which we can't reproduce on our machine. Now I'm thinking if I should use simple stacktraces, or dump more…
Ibraim Ganiev
  • 8,934
  • 3
  • 33
  • 52
2
votes
2 answers

MongoDB minidump file path is wrong

I recently uninstalled MongoDB 3.2 to install MongoDB 3.6. Since then, every time I try to launch mongod, I get the following error: failed to open minidump file C:\Program Files\MongoDB\Server\3.2018-02-18T17-02-35.mdmp : Access is denied. I'm not…
Gaboik1
  • 353
  • 3
  • 15
2
votes
1 answer

breakpad not generate minidump on erase iterator twice

I find breakpad does not handle sigsegv sometimes. and i wrote a simple example to reproduce it: #include #include int InitBreakpad() { char core_file_folder[] = "/tmp/cores/"; …
Zendo June
  • 91
  • 1
  • 3
2
votes
1 answer

Question about memory dump

I am currently trying to design a memory dump tool that could get the memory dump of a crashed process from another process. But I am totally new to this and I want to take this as an opportunity to get a solid understanding of memory dump…
smwikipedia
  • 61,609
  • 92
  • 309
  • 482
2
votes
2 answers

How can I debug a dump file for an ASPNET worker process in Visual Studio 2010?

I've run into a particularly nasty bug where an ASP.NET website attempts to make a call to a WCF service method that sends IIS into a death spiral...that ultimately brings down the associated app pool. It never gets to our log4net code that outputs…
2
votes
1 answer

Stack information disappears when I add exception information to my minidump

I'm writing an out of process minidump for a child process. Here is the relevant code snippet: CONTEXT thread_context{}; thread_context.ContextFlags = CONTEXT_FULL; assert(GetThreadContext(child_thread_handle, &thread_context)); EXCEPTION_POINTERS…
Marc Aldorasi
  • 698
  • 7
  • 13