I can confirm this bug. On my machine, it happens exactly like the OP says. Here is the output after I compile the test.cpp program that the OP provided, with gcc-4.1.1-21: wk@ALPHA:~/cprog$ ./tmp 0 allocated 0 tested 1 exception 2 allocated Segmentation fault -Brandon