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

Is a mini dump useful for debugging in .NET

I see some conflicting opinions about mini dumps for .NET debugging, for example; Mini Dump Snapshots and SOS vs Minidumps are all but useless in .NET They seem like would be useful to me, why might they be considered useless by some?
sackoverflow
  • 767
  • 1
  • 6
  • 16
4
votes
1 answer

MiniDumpWriteDump() function's parameters: Why do we need a handle and an ID?

I checked the definition of MiniDumpWriteDump() method on MSDN as below: BOOL WINAPI MiniDumpWriteDump( __in HANDLE hProcess, __in DWORD ProcessId, __in HANDLE hFile, __in MINIDUMP_TYPE DumpType, __in PMINIDUMP_EXCEPTION_INFORMATION…
smwikipedia
  • 61,609
  • 92
  • 309
  • 482
4
votes
1 answer

How to read a Windows 10 BSOD mini dump analysis

I'm hoping someone here can help. I have a new Windows 10 machine (all parts by EVGA). I get random BSOD, so I've grabbed a mini dump, installed the SDK and looked into it. I just don't understand what it is reporting. Can someone point me in the…
jeff porter
  • 6,560
  • 13
  • 65
  • 123
4
votes
2 answers

Can I prevent invalid minidump file names

I have a WinForms (.NET C#) OLTP application based on Oracle. From our support environment we regularly experience loss of connectivity to the database, and a resulting minidump file is generated (by what, i am not entirely certain of) - apparently…
Esben Bach
  • 664
  • 4
  • 23
4
votes
0 answers

No Source Available during Minidump Debugging

I am currently stuck with some debugging issues... hope you guys can help me out! I have developed a software and have given it out to some people. Now if the programm crashes, which has happened a couple of times, the program writes a minidump…
JonathanSchmied
  • 137
  • 1
  • 7
4
votes
2 answers

How can I read a minidump?

I have a minidump written to a file via: MiniDumpWriteDump. The file was sent to me from a client (i.e. I cannot use some sort of just-in-time debugger). My question is: how do I open it? Visual Studio gives the error: "Debugging older format…
chacham15
  • 13,719
  • 26
  • 104
  • 207
4
votes
2 answers

Open Minidump : No native symbols in symbol file

In a C# project, I create minidump at UnhandledException. In my Dev machine, project source and bin are under path K:\projects\*MYPROJECT*, if I manage to let it crash in my Dev machine, everything work perfectly, I can open the minidump file and…
Jamby
  • 1,886
  • 2
  • 20
  • 30
4
votes
2 answers

Analyze crash using minidumps and GDB for mingw compiled executables?

I use Cmake + mingw to compile my project. Since some unknown moment my program started to crash on startup and i figured out how to make windows make minidump for my crashing application. I would use GDB to directly debug my application, but when i…
Fedcomp
  • 2,175
  • 5
  • 21
  • 23
4
votes
3 answers

MiniDumpWriteDump and its MINIDUMP_TYPE type

Not so long time ago we understood that even the release build can function incorrectly - can fall - can hang and etc. So we decided to implement dump creation procedure. All steps rather quickly have been found at Internet. But one - the main thing…
graphElem
  • 123
  • 2
  • 10
4
votes
2 answers

How to read a crash dump file (I have source code and .pdb files)

I have read the questions that already on StackOverflow, but I still can't make it work. I have a mini dump file from a customer the exact same version of our code that the customer has got in the debug directory, .pdb files for the code. I tried…
user1725145
  • 3,993
  • 2
  • 37
  • 58
4
votes
0 answers

What may cause a minidump disassembly to differ from the binary disassembly?

I have a minidump of a crash. At the point of the crash, there is some weird looking code that shouldn't ever run successfully. Something like: call AnObject::AFunction test byte ptr [eax],cl AnObject::AFunction is a member function…
Jimson
  • 41
  • 1
4
votes
1 answer

creating minidump of a 32bit process running in 64 bit OS

I have a .net app which is designed to run in a 32 bit environment and it runs in 64 bit OS in wow64 environment. Now i am creating an utility(32 bit) to create dump for the application. I use the following code to create a…
Rockstart
  • 2,337
  • 5
  • 30
  • 59
4
votes
1 answer

Minidump symbols won't load in release mode

I'm trying to debug minidumps using VS 2010. While minidumps that get generated by my application that was built in "Debug mode" work OK and can be properly debugged, minidumps that were generated by application built in "Release mode" don't work.…
3
votes
2 answers

Write windows mini dumps with Python

I've been trying to create a function that will write a minidump file for a given process ID. So far I have this: import win32con, win32api, win32file, ctypes dbghelp = ctypes.windll.dbghelp def createMiniDump(pid, file_name): # Adjust…
Luiz C.
  • 746
  • 11
  • 22
3
votes
1 answer

Windows: cannot see call stack when opening a minidump

I'm using MiniDumpWriteDump with MiniDumpNormal parameter to dump call stack in SEH exception handler. When I open the dump in VS, I can't see the callstack. I did see it with the same code two days ago when I started experimenting with dumping.…
Violet Giraffe
  • 32,368
  • 48
  • 194
  • 335