crash-dumps

Debugging dump files in Visual Studio

拟墨画扇 提交于 2019-11-28 03:33:19
I am using Visual Studio 2010 Professional Edition, and Windows Vista. Firstly, I have this code. As you can see, it will crash the program! using System; namespace Crash { class Program { static void Main(string[] args) { string a = null; if (a.Length == 12) { // ^^ Crash } } } } The program will crash on the if statement. Now, I want to find out that it crashed on that if statement. If I "Start without Debugging" from Visual Studio, Crash.exe crashes. It uses 1,356kb of memory. I get the Vista option of Close Program/Debug. If I choose Debug, I can open a new instance of Visual Studio, and

Getting a dump of a process that crashes on startup

浪子不回头ぞ 提交于 2019-11-27 14:14:19
问题 On a customer machine (WinXP SP2) to which I have no access, I have a Win32 EXE (unmanaged C++) that crashes on startup. I guess the best way to troubleshoot this is to obtain a (mini-)dump and analyze it later with windbg or similar. Now, I would normally tell the customer to install Debugging Tools for Windows and run cscript adplus.vbs -crash However, it appears that you can't use adplus for apps that crash on startup (http://support.microsoft.com/kb/q286350/ says that "Do not use ADPlus

how to generate thread dump java on out of memory error

偶尔善良 提交于 2019-11-27 11:46:28
问题 does java 6 generate thread dump in addition to heap dump (java_pid14941.hprof) this is what happened to one of my applications. java.lang.OutOfMemoryError: GC overhead limit exceeded Dumping heap to java_pid14941.hprof ... I did find ava_pid14941.hprof in working directory, but didn't find any file which contains thread dump. I need to know what all the threads were doing when I got this OutOfMemory error. Is there any configuration option which will generate thread dump in addition to heap

How do I use a dump file to diagnose a memory leak?

老子叫甜甜 提交于 2019-11-27 10:01:44
I have a .NET service with a normal private working set of about 80 MB. During a recent load test, the process reached 3.5 GB memory usage causing the whole machine to be low on physical memory (3.9 of 4 GB used), and the memory was not released long after the load test was stopped. Using task manager, I took a dump file of the process and opened it in Visual Studio 2010 SP1, and I am able to start debugging on it. How do I diagnose the memory issue? I have dotTrace Memory 3.x at my disposal, does it support memory profiling on dump files? If not, will the memory profiling features of Visual

Best way to have crash dumps generated when processes crash?

妖精的绣舞 提交于 2019-11-27 08:27:44
In Windows environments ( XP and Win 7 ): What is the best way to automatically have a crash dump generated when processes crash on the system? Can an installer (MSI) package do this? One of the best way to have an automatic dump for any/specific process on Windows is to configure a set of entries in the registry. I tried the below on Windows 7 64 bit. Open notepad.exe, paste the below entry and save it as "EnableDump.reg". You can give any name you wish. Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps] "DumpFolder"=hex(2)

Dump File analysis

自古美人都是妖i 提交于 2019-11-27 05:29:27
Recently I start facing issue on few servers where CPU start consuming more resources than usual trend. I am trying to find out the root cause for this and took the dump of w3wp process from Task Manager(right click on process and took the dump). Now the dmp file size is 14GB and I am trying to analyze it through WinDBG but the tool is not working and getting message: I also took few minidumps but some of them opening fine while few are not so it's not related to confusion between 32bit or 64bit.(The collected dump is 64bit). I am trying to know what causing this issue. Is it file size or I am

Debugging dump files in Visual Studio

纵然是瞬间 提交于 2019-11-27 05:10:03
问题 I am using Visual Studio 2010 Professional Edition, and Windows Vista. Firstly, I have this code. As you can see, it will crash the program! using System; namespace Crash { class Program { static void Main(string[] args) { string a = null; if (a.Length == 12) { // ^^ Crash } } } } The program will crash on the if statement. Now, I want to find out that it crashed on that if statement. If I "Start without Debugging" from Visual Studio, Crash.exe crashes. It uses 1,356kb of memory. I get the

Analyzing Crash dumps in Visual Studio

荒凉一梦 提交于 2019-11-27 03:15:34
问题 I have a *.dmp (dump) file of my crashed application. Now, I want to analyze the crashed process on a different machine. That is, the app crashed on one machine, and I have Visual Studio on other machine. Now, what do I need to be able to see stack trace and all symbols of my app? Is *.exe file and the *.dmp file sufficient? Or do I need also the source code and PDB file? If so, should the source code and executable file be placed in the same directories structure as it is on the machine the

Including custom data into iOS crash dumps

蓝咒 提交于 2019-11-27 00:43:07
Hello Stack Overflow ! A simple question for you : is it possible to embed custom error data into automatically generated iOS crash dumps I get from my users when my app crashed on their device ? For example : My SQlite database won't operate for some reason (say, the database file is corrupted).. I cannot recover from this error, so I throw an exception, and embed in the exception the detailed sqlite error message. The problem is, the crash dump of the application won't contain the exception message, so it's not easy to know under which conditions the application crashed. Does anyone know a

How to use WinDbg to analyze the crash dump for VC++ application?

时光怂恿深爱的人放手 提交于 2019-11-26 23:28:26
How do I use WinDbg for analyzing a dump file? John Dibling Here are some general steps that will get you on your way: First, you must change your compiler's settings so that it creates PDB files, even for release builds. Later versions of the Visual C++ compiler do this by default, but in many versions of Visual C++ you must do this yourself. Create program database files, and then keep an archive of those files along with each build of your application. It is critical that every build of your applications has its own set of PDBs. You can't just reuse the same ones you made with build 10 to