minidump

Is it possible to load mismatched symbols in Visual Studio?

穿精又带淫゛_ 提交于 2019-12-03 11:50:47
I've got a Windows minidump (C code) and a corresponding exe file. Unfortunately, I don't have the exact matching .pdb files, but I do have .pdbs that contain the exact same code just built at a different time. In Windbg, I can use: .symopt+0x40 To tell it to load anything, even mismatched symbol files. This works great in this particular instance, and I'm able to get a proper call stack. I'm just curious as to whether or not Visual Studio has any such feature. We use pretty much every different version of VS here, so it doesn't matter which version it might be in. Thanks. Steve Townsend There

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

て烟熏妆下的殇ゞ 提交于 2019-12-03 03:44:59
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 extension code I find myself dereferencing c++ class objects in the same way, over and over, by hand. For example: Address = GetExpression("somemodule!somesymbol"); ReadMemory(Address, &addressOfPtr, sizeof(addressOfPtr), &cb); // get the actual address ReadMemory(addressOfObj, &addressOfObj, sizeof(addressOfObj), &cb); ULONG offset; ULONG

How to use ADPLUS to _ONLY_ get MiniDumpOnSecond

…衆ロ難τιáo~ 提交于 2019-12-02 15:46:36
问题 For a production Win2003 web server, I'd like to be able to allways log minidumps whenever the w3wp.exe processes crash...I've read the documentation for ADPLUS, and have xcopy-deployed it to the production web server, and have started adplus.exe from the command line as follows: adplus.exe -crash -MiniOnSecond -NoDumpOnFirst -pmn w3wp.exe -o C:\Dumps This does log the "MiniOnSecond," but it is also logging full dumps on first--and I don't want those (they're big fat files, and don't have

How to use ADPLUS to _ONLY_ get MiniDumpOnSecond

泪湿孤枕 提交于 2019-12-02 10:08:09
For a production Win2003 web server, I'd like to be able to allways log minidumps whenever the w3wp.exe processes crash...I've read the documentation for ADPLUS, and have xcopy-deployed it to the production web server, and have started adplus.exe from the command line as follows: adplus.exe -crash -MiniOnSecond -NoDumpOnFirst -pmn w3wp.exe -o C:\Dumps This does log the "MiniOnSecond," but it is also logging full dumps on first--and I don't want those (they're big fat files, and don't have what I need). Has anyone found a way to get the "-NoDumpOnFirst" flag to actually work? Additionally, I'd

minidump vs. fulldump?

此生再无相见时 提交于 2019-11-30 01:15:22
I just recently started looking at dump files to help me analyze crashes of the w3wp process on our production environment at work... And I would like to know, what are the differences between a minidump and a fulldump file ? foxy Differences between full memory dump files and mini memory dump files A memory dump file can collect a variety of information. Typically, a support engineer must have all the contents of virtual memory to troubleshoot a problem. In other cases, you might want to capture less information to focus on a specific problem. The debugger is flexible. This flexibility lets

minidump vs. fulldump?

蓝咒 提交于 2019-11-28 20:52:11
问题 I just recently started looking at dump files to help me analyze crashes of the w3wp process on our production environment at work... And I would like to know, what are the differences between a minidump and a fulldump file ? 回答1: Differences between full memory dump files and mini memory dump files A memory dump file can collect a variety of information. Typically, a support engineer must have all the contents of virtual memory to troubleshoot a problem. In other cases, you might want to

Capturing R6025 pure virtual call

久未见 提交于 2019-11-28 18:52:11
I currently capture MiniDumps of unhandled exceptions using SetUnhandledExceptionFilter however at times I am getting "R6025: pure virtual function". I understand how a pure virtual function call happens I am just wondering if it is possible to capture them so I can create a MiniDump at that point. If you want to catch all crashes you have to do more than just: SetUnhandledExceptionFilter I would also set the abort handler, the purecall handler, unexpected, terminate, and invalid parameter handler. #include <signal.h> inline void signal_handler(int) { terminator(); } inline void terminator() {

Why don't Minidumps give good call stacks?

荒凉一梦 提交于 2019-11-28 17:36:49
I've used minidumps on many game projects over the years and they seem to have about a 50% chance of having a valid call stack. What can I do to make them have better call stacks? I've tried putting the latest dbghelp.dll in the exe directory. That seems to help some. Is Visual Studio 2008 or 2010 any better? (I'm still on VS 2005). The code I use looks like this sample . One thing you can do to improve the accuracy of call stacks found in dumps is to use a debugger other than Visual Studio -- specifically, use WinDbg or another tool that uses the "Windows Debugger" debugging engine found in

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

帅比萌擦擦* 提交于 2019-11-28 10:27:26
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 = 0x00000000, MiniDumpWithDataSegs = 0x00000001, MiniDumpWithFullMemory = 0x00000002, MiniDumpWithHandleData = 0x00000004, MiniDumpFilterMemory = 0x00000008, MiniDumpScanMemory = 0x00000010, MiniDumpWithUnloadedModules = 0x00000020, MiniDumpWithIndirectlyReferencedMemory = 0x00000040, MiniDumpFilterModulePaths = 0x00000080, MiniDumpWithProcessThreadData =

How do I get at the exception information when using MiniDumpWriteDump out-of-process?

自作多情 提交于 2019-11-27 13:48:42
When using the MiniDumpWriteDump function to create a core dump of a process on Windows, it is recommended (e.g. here , and here ) that the MiniDumpWriteDump is run from another "watchdog" process because it may well not work when called from within the same process. At the moment, our application is calling it in-process on an unhandled exception (we do it from a watchdog thread). Since we sometimes have problems with it not working, we'd like to move it to a separate process. Now, signalling the other process to start writing the dump is trivial (just use an event, semaphore, you name it)