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
6
votes
3 answers

Useful things to put in the user stream segment of minidumps

I am interested in what useful things developers put in the user stream data structure that can be embedded in minidumps. MSDN describes the parameter for MiniDumpWriteDump as such: PMINIDUMP_USER_STREAM_INFORMATION UserStreamParam and describes…
Michael Labbé
  • 12,017
  • 4
  • 27
  • 36
5
votes
1 answer

Hang in COM application with C# plugin

I've got a problem where our application hangs on our customers' machines that I've been on for days now without solving. The problem arises quite randomly from what we've seen, even though that may not be the true case. The customer also reports…
lbergnehr
  • 1,578
  • 11
  • 15
5
votes
3 answers

First-chance exception at 0x782260ec in xxx.exe: 0xC0000005: Access violation

My application crashes after some time but I can't find any pattern. I was able to get my hands on crash dump. Application runs on Windows Mobile 6.5. It is written in C#. It uses Imaging API, PInvoks and lots of threads. When I debugged that dump…
5
votes
4 answers

Catching exit(1);

I have a MFC SDI application which during startup loads a DLL. I am only able to view the source code and use the DLL but not changing & recompiling it. The situation now is that, whenever the DLL encouner an error it will call exit() such as…
innocentz
5
votes
2 answers

What is minimum MINIDUMP_TYPE set to dump native C++ process that hosts .net component to be able to use !clrstack in windbg

There is native C++ application that hosts several .net components. When some error occurs this application creates mini dump using MiniDumpWriteDump function. Question here what is minimum set of [Flags ]enum MINIDUMP_TYPE { MiniDumpNormal =…
Stanislav Berkov
  • 5,929
  • 2
  • 30
  • 36
5
votes
2 answers

How do I get the "bucket id" that winqual uses if I have a minidump file or exception structure? (Windows c++)

There are a few related questions on SO - but have not found the answer - I would like to generate a "signature"/bucket id to report a minidump/crash back to our issue tracking system. Since MS already does this with "bucket ids" I figured I could…
Tim
  • 20,184
  • 24
  • 117
  • 214
5
votes
4 answers

How can I create objects based on dump file memory in a WinDbg extension?

I work on a large application, and frequently use WinDbg to diagnose issues based on a DMP file from a customer. I have written a few small extensions for WinDbg that have proved very useful for pulling bits of information out of DMP files. In my…
pj4533
  • 1,701
  • 4
  • 17
  • 38
5
votes
3 answers

printing stack trace for windows coredump without needing to enter windbg/visual studio interactively

I would like to get a stack trace of thread which is causing the crash by invoking predefined commands written in a script, so that I run script and I get a log file containing the back trace of all threads. I can then parse this log file to see if…
user1527651
  • 395
  • 1
  • 6
  • 11
5
votes
1 answer

Minidump creates empty dump file

We have an in-proc crash handler which is using MiniDumpWriteDump() from DbgHelp to write a minidump is case of a process crash. I know its not the best way to do it, however, at the moment we do not have other option. The problem is: one certain…
CsTamas
  • 4,103
  • 5
  • 31
  • 34
5
votes
3 answers

Call MiniDumpWriteDump with callback

I want to use the MiniDumpWriteDump function to create some custom dump files (mainly, i want to export a dump file that contains the minimum amount of information for the thread callstacks), but i am having difficulties defining the structures that…
anchandra
  • 1,089
  • 12
  • 23
5
votes
2 answers

How to Inspect COM Objects From Visual Basic Dump File?

Background We have a .NET WinForms application written in C# that interfaces to a handheld store scanner via a console application. The console application is written in good ol' VB6-- no managed code there. The VB6 application consists of several…
Paul Williams
  • 16,585
  • 5
  • 47
  • 82
4
votes
2 answers

windbg dump command fails with error 0x8007012b

A customer is attempting to capture a minidump of a hang. He fires up WindDbg and successfully attaches to the process. WinDbg displays its header: Microsoft (R) Windows Debugger Version 6.11.0001.404 AMD64 Copyright (c) Microsoft Corporation. All…
sean e
  • 11,792
  • 3
  • 44
  • 56
4
votes
1 answer

Post-mortem .NET debugging with SOS.dll

I am working on a mixed-mode app (C++/CLI, C++, some C#) and when it crashes in the field a memory dump gets created. I usually get these dumps from the customer and try to figure out what went wrong. The question is - how to handle post-mortem…
Filip Frącz
  • 5,881
  • 11
  • 45
  • 67
4
votes
3 answers

Trouble debugging minidump in VS 2010

I'm calling MiniDumpWriteDump from .NET to generate a minidump, and that works fine. However, when I load the resulting dump into VS 2010, I don't see any useful info. In particular, the Call Stack window looks something like this: It doesn't…
Stefan Monov
  • 11,332
  • 10
  • 63
  • 120
4
votes
1 answer

Loading dump file; VS doesn't find my source code

I'm developing a .NET 4.0 app in VS 2010. I'm trying to use dump files for the first time, but when loading the minidump into VS, I can't debug it, since VS doesn't find the source files. Here's what I did: In Options -> Debugging -> Symbols I…
Stefan Monov
  • 11,332
  • 10
  • 63
  • 120
1 2
3
12 13