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
1
vote
2 answers

Creating a MiniDump of a running process

Im trying to make a tool for my end users that can create a MiniDump of my application if it hangs (i.e. external to the app). Im using the same code as the internal MiniDumper but with the handle and processid of the app but i keep getting error…
Lodle
  • 31,277
  • 19
  • 64
  • 91
1
vote
2 answers

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…
Roger Lipscombe
  • 89,048
  • 55
  • 235
  • 380
1
vote
1 answer

Why aren't mini-dumps being created by Windows?

I have an x64-platform application running on Windows 8.1, x64...it crashes from time to time (its a multibyte, COM+ object hosted in a Windows service). I wanted to get the OS to write mini-dump files whenever an exception happens, so I set the…
Alexandru
  • 12,264
  • 17
  • 113
  • 208
1
vote
1 answer

Is it possible for an application to load both NativeImage and JIT version of .Net dll?

I am investigating some minidumps for our released application. I am unable to repro these crashes locally, but for a large number of reports I'm noticing the list of loaded dll's includes both regular and .ni. versions of some WPF dlls. From the…
FrozenKiwi
  • 1,362
  • 13
  • 26
1
vote
2 answers

How to access the PEB (process environment block) in dump using DbgHelp

I found an example that uses the debugger engine API to get at the PEB in a dump. Is this possible using DbgHelp? Have existing code that uses DbgHelp to pull out comment and exception information. Would like to grab some info from PEB if…
Chuck Kasabula
  • 2,565
  • 1
  • 15
  • 12
1
vote
1 answer

Windows corrupt minidump

When my program crashes it creates a minidump, from the unhandled exception handler. The issue I'm having is that people are sending me crash dumps, but when I try to open them in Visual Studio 2010 it says they're corrupt ("The dump file has an…
user1520427
  • 1,345
  • 1
  • 15
  • 27
1
vote
1 answer

cdb and windbg unable to load MiniDumps, but VS 2008 loads them fine

I am trying to build some automated crash dump analysis, but I cannot get cdb or windbg to load my crash dumps. They load just fine in VS 2008. When I run dumpchk.exe on the file, I get: Loading Dump File [c:\devx86\temp\ErrorDump.mdmp] User Mini…
Ben Harper
  • 2,350
  • 1
  • 16
  • 15
1
vote
0 answers

C++ Disable Buffer Overrun Box

My problem is that during the app crash it's popping up a buffer overrun message, I am using minidumps which sets an unhandled exception filter, which, is enough to make the program simply crash and close instead of popping up messages. I have…
Vinicius Horta
  • 233
  • 2
  • 13
1
vote
1 answer

MinidumpWriteDump from managed code throws an AccessViolationException

I have the basic MiniDumpWriteDump method interop copied off the internet in my C# (3.5) project. Up till now, i have used this code to register on the UnhandledException event, to take a crash dump before the process shuts down. In a particular…
lysergic-acid
  • 19,570
  • 21
  • 109
  • 218
1
vote
0 answers

MiniDumpWriteDump() does not work when Application is running standalone (without debugger)

In my .NET4 application I call MiniDumpWriteDump() on Application.ThreadException and AppDomain.CurrentDomain.UnhandledException. When I run the app in the debugger (VS10) I get a perfect dump, but when I run it standalone the dump file is…
EricSchaefer
  • 25,272
  • 21
  • 67
  • 103
1
vote
1 answer

How to create a minidump for a child process when it crashes?

I have code to output a minidump when my process has an exception, but I'd like to move that code to a parent process so that one doesn't corrupt the other. How would one go about (1.) listening for a child process crash from a wrapper process, and…
Boinst
  • 3,365
  • 2
  • 38
  • 60
1
vote
1 answer

How do you see source code when debugging a native c++ dump file in Visual Studio

I got a minidump from a server on which my native c++ app was running. I also have the exe and pdb files. I am able to open the minidump using Visual Studio 2005 Pro and it correctly loads the symbols from the pdb file. I run the debugger (F5) and…
curlingdude
  • 369
  • 3
  • 8
1
vote
1 answer

Dump Analysis with Source, using Visual Studio 2008 Express?

Is there any way to analyze app-crash minidumps (e.g. created by SetUnhandledExceptionFilter, or minidumpwritedump()) with source, using Visual Studio 2008 Express? I generally do this at work using "real" versions of VS, but when trying to get it…
None
1
vote
1 answer

how to programmatically create dump file using pure C language?

I need to create a dump file for a customer program written in C. I saw that there is a minidump for windows, is it working only on C++ ? Is there any other solution for C language? Thank you for your time.
eladyanai
  • 1,063
  • 2
  • 15
  • 34
0
votes
1 answer

Extracting stack trace from minidump

I'm trying to figure out how can I read a stack trace of the faulting thread from minidump file on windows. Is there an easy solution? I can't find one. Sorry, I forgot to mention, that I need to do it programmaticaly. Should I use DbgEng to do…
runnydead
  • 618
  • 1
  • 7
  • 17