System type:
RedHat linux 7.?
LinuxPPC
A simple test program:
#include <stdio.h>
class testException {
};
int main() {
try {
printf( "Throwing\n" );
throw testException();
}
catch( testException ) {
printf( "Catching\n" );
}
}
Compilation:
g++ -g -Wall -o test4 test4.cpp
Execution w/o NJAMD:
huang 18> setenv LD_PRELOAD; test4
Throwing
Catching
huang 18>
Execution with NJAMD:
huang 19> setenv LD_PRELOAD libnjamd.so; test4
Throwing
Segmentation fault (caught by NJAMD)
called from test4[0x8048795]
called from /lib/libc.so.6(__libc_start_main+0x8e)[0x400b3306]
called from test4(__eh_alloc+0x39)[0x8048661]
Cause of fault: Address not mapped
Address of fault is 0x0
huang 20>