Technote (FAQ)
Question
How do you obtain a memory dump from an application that crashes during runtime after being instrumented by IBM Rational PurifyPlus (Purify, Quantify, or PureCoverage)?
Cause
After running an application that was instrumented using PurifyPlus, the application may crash during runtime either unexpectedly or with a specific error message. One way to try to determine the cause of the problem is to get a memory dump. Obtaining the memory dump can allow PurifyPlus support to assist in diagnosing and debugging the error.
Answer
You can obtain a memory dump using WinDbg, which is part of the free debugging tools from Microsoft:
http://www.microsoft.com/whdc/devtools/debugging/default.mspx
After downloading apply the following steps:
- Ensure WinDbg directory is in the system path.
You can do this by right-clicking on My Computer > Properties > Advanced Tab, then click on "Environment Variables" button and then add the path at the end of the PATH variable.
- Open a command prompt (Start > Run > type cmd)
- In the command prompt enter the following commands, where <your_instrumented_exe> is your instrumented application:
gflags -i <your_instrumented_exe> +ust
- Enter the following command:
windbg <your_instrumented_exe>
- When the program stops, hit F5 or type "g" in the debugger command window
- Continue to completion
- In the debugger command window, enter the following commands to save the memory dump to a file, where <filename> is the filename of your choice:
.dump /ma /b <filename>
Note: The debugger will save the memory dump in the file <filename>.cab
- Send the memory dump file to IBM Rational Support
Related information
Exchanging information with IBM Technical Support
| Segment | Product | Component | Platform | Version | Edition |
|---|---|---|---|---|---|
| Software Development | Rational Purify | Documentation | Windows | 7.0.1, 7.0 | |
| Software Development | Rational Quantify | Documentation | Windows | 7.0.1, 7.0 | |
| Software Development | Rational PureCoverage | Documentation | Windows | 7.0.1, 7.0 |
Rate this page:
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.