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
3
votes
1 answer

How can I watch a process and produce a minidump when it crashes (like PROCDUMP)?

I've found a number of posts on how to create a crash dump manually when required, but what I would like to do is ensure that a crash dump is produced when a monitored application crashes. The TechNet PROCDUMP tool can do this perfectly. What I…
SparkyNZ
  • 6,266
  • 7
  • 39
  • 80
3
votes
1 answer

Firefox connection refused when adding -profile argument to python selenium options

I'm attempting to add options to the startup of my Firefox selenium driver in python to capture crash data. The function I use to startup the driver looks like this: import os from selenium import webdriver from…
Jed
  • 1,823
  • 4
  • 20
  • 52
3
votes
3 answers

After install COM AddIn, test connect in Excel, got bluescreen

COM Excel AddIn, C#, VS 2008, Excel COM Addin, tested on test VM, works fine Customer installed and got blue screen, have no clue why. Following is what customer got. Can someone help? I have no idea what's this, what causes this. not sure if…
susu
  • 31
  • 1
3
votes
0 answers

Extract a call stack from a Windows minidump on linux

I'm writing a crash report system for a medium size application. The applications runs on Windows and generates dmp files when crashing but the crash report system is currently running on Linux. If I open the minidump in Visual Studio with the…
Samuel Leberto
  • 117
  • 1
  • 5
3
votes
1 answer

Create a MiniDump excluding a range of run-time allocated memories

A little bit more info: I wanted to create a MiniDump file using MiniDumpWriteDump but excluding a specific range of memories that I've allocated within the modules. These range of memories aren't important for debugging and they are quite large…
bagelSeed
  • 39
  • 3
3
votes
1 answer

Getting handles data with MiniDump (DbgHelp.h)

I am struggling with getting handles information via Minidump (DbgHelp.h). I am getting a list of MINIDUMP_HANDLE_DESCRIPTOR_2 from mapped file stream.. Then I am getting for each descriptor a MINIDUMP_HANDLE_OBJECT_INFORMATION by using the…
Pavel Durov
  • 1,287
  • 2
  • 13
  • 28
3
votes
1 answer

Are minidump files useful for analysing .NET WinForms app crashes?

Are minidump files useful for analysing .NET WinForms app crashes? I notice that NBug has the option of producting them, but if I was to receive one, I'm not sure how it could help over looking at the stack trace. How would one use this file for…
NickG
  • 9,315
  • 16
  • 75
  • 115
3
votes
3 answers

MiniDumpWriteDump and writing multiple dumps for the same crash?

TL;DR Does it make sense to write multiple dumps for the same crash event, and if yes, what do you need to look out for. We're using MiniDumpWriteDump to write a crash dump when there is a unhandled-exception / abort / younameit in our…
Martin Ba
  • 37,187
  • 33
  • 183
  • 337
3
votes
1 answer

MiniDumpWriteDump from another process

I'm wanting to use MiniDumpWriteDump to generate crash logs for an application of mine. Microsoft recommends performing the dump from another process, which is what I'm trying to do. The issue I'm having is with passing the PEXCEPTION_INFORMATION…
user1520427
  • 1,345
  • 1
  • 15
  • 27
3
votes
1 answer

How to set AeDebug to get a minidump with the name of the process?

I have to perform some post mortem debugging on a C++ project. Known way to perform is to set the cdb debugger as a minidump generator and to process the dumps collects afterwards. I read nearly the whole web and I didn't find a solution to produce…
JC Martin
2
votes
1 answer

Faulting thread stack-trace using IDebugControl::GetStackTrace

I have a minidump of crashed application and I would like to analyse it using DbgEng in my own library. Does anyone now how can I get the stacktrace of the thread that caused the program crash using IDebugControl::GetStackTrace? I appreciate any…
runnydead
  • 618
  • 1
  • 7
  • 17
2
votes
0 answers

Can minidumps immediately reveal where in my own code a failure occurred?

Suppose that my Windows application crashes with some throw std::runtime_error and generates a minidump (.dmp) with WER. When I open this minidump in Visual Studio for debugging, I am not immediately taken to the problematic line in code that threw…
w128
  • 4,680
  • 7
  • 42
  • 65
2
votes
2 answers

WINDBG: Display dump file capture flags

This is a very quick question. I searched and can't seem to find the windbg command that would show what options exist in a minidump file. Additionally, I would like to get back the equivalent argument to the .dump command that would generate the…
Flame
  • 2,166
  • 2
  • 20
  • 40
2
votes
2 answers

Generating Mini Text Dump LInux

Following question describe for windows How to create minidump for my process when it crashes? But how can I create mini crash text dump on linux ?
Vivek Goel
  • 22,942
  • 29
  • 114
  • 186
2
votes
0 answers

Values of locals in minidump with optimizations enabled

I'm working on generating minidumps for my managed app. Here's what I have so far: I've set up an exception filter as in this article. In the filter I call MiniDumpWriteDump. I've been able to load the resulting dump in the VS debugger, browse the…
Stefan Monov
  • 11,332
  • 10
  • 63
  • 120