Folder AVG Forums » Other topics » How-Tos » How To Create A Process Crash Dump (Post-Mortem)
June 22, 2010 13:54 How To Create A Process Crash Dump (Post-Mortem) #94161
Top
jirka82

Avatar

Administrator
Join Date: 19.6.2009
Posts: 3892
How to create a process crash dump (post-mortem):

In the event of a process crash, a crash dump file is often required for proper analysis. To create a crash dump file, please follow these steps:

Windows XP

1. Press the Windows logo key+R.
2. Type drwtsn32 and then click OK. The Dr. Watson for Windows application window will be displayed.
3. Please note file paths displayed by the Log file path and Crash dump captions. The drwtsn32.log and user.dmp files will be created in these locations.
4. Please select the Full option as the Crash dump type, and then click OK.
5. Press the Windows logo key+R.
6. Type drwtsn32 -i and then click OK. An information window about registering the default debugger will be displayed.
7. Restart your computer.
8. Induce the crash again.

The drwtsn32.log and user.dmp debug files will be created in the folders mentioned in step 3 (as defined in the Dr. Watson application).

Windows Vista/7

Modern Windows operating systems do not feature the Dr. Watson utility. It is necessary to install and configure a debugger application. We recommend using Debugging Tools for Windows by following these steps:
1. Download the Debugging Tools for Windows here
2. Click the Download button .
3. Run the downloaded Windows SDK installation package.
4. Follow the installation wizard.
5. Select only the Debugging Tools for Windows check box in the Installation Options window (clear all other check boxes).
6. Finish the installation wizard (it may take several minutes depending on your Internet connection speed; about 70 megabytes will be downloaded).
7. Launch the command line as administrator and run the following command (including quotes):

"C:\Program Files\Windows Kits\8.0\Debuggers\x86\windbg.exe" -I

or (for 64-bit systems):

"C:\Program Files (x86)\Windows Kits\8.0\Debuggers\x64\windbg.exe" -I

(There is a capital i at the end of the line)
Please note that windbg.exe might be placed in different folder in future versions, try search it and use correct path.

These steps will register the Debugging Tools for Windows as the default post-mortem debugger on your system. If the tools were not installed in default folder, it is necessary to change the application path (typed in green) before running the above-mentioned command.

1. Restart your computer after the default debugger is registered.
2. Create a temp folder on your C: drive (C:\temp\).
3. Induce the crash again.
4. When a WinDbg console window appears, please type the following command (including the dot in the beginning):

.dump /ma C:\temp\crash.dmp

- A crash.dmp dump file will be created in the above mentioned folder,

5. Please compress the dump file(s) created and provide us with the archive.

Linux

1. Set ulimit to unlimited by running this command in console:

#ulimit -c unlimited

2. Install GDB: The GNU Project Debugger.
3. Induce the crash by running the task from console.
4. A dump file will be created in the current directory.
5. Provide forum moderators with the dump file.
drwtsn32.pngwindbg_reg.PNGWinDbg2.png