NCSA Home
Contact Us | Intranet | Search

Purify Memory Allocation Debugger

The Purify memory allocation debugger is available on tungsten and works with statically linked gcc compiled c code.  A sample session is shown below with commands in bold and a screen shot of the GUI is displayed.  The GUI is drawn up when you execute a program compiled with Purify, so your desktop system must have X-windows capability.

[arnoldg@tune ~/debug]$ source /usr/apps/rational/purifyplus_setup.csh
purify added to path
purecov added to path
quantify added to path
[arnoldg@tune ~/debug]$ purify gcc -static -g serial_memcorrupt.c
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
Purify 2003a.06.13 Linux (32-bit) (c) Copyright IBM Corp. 1992, 2004 All rights reserved.
Instrumenting: ccyMB0I1.o Linking
[arnoldg@tune ~/debug]$ a.out
Hello world! I'm 1 of 1
Segmentation fault (core dumped)

# a.out [your executable] brings up the GUI for purify
#
# click on the small boxes to expand sections and see explanations of
# purify results
#
# selecting the pencil & paper icon at the top will open an editor
# for the source code near the area where a problem was detected

image of Purify GUI