#include #include #include void my_handler (int sig) { printf ("sig %d\n", sig); } int main( int argc, char** argv ) { signal (SIGSEGV, my_handler); *(volatile unsigned int *)0; void* dll = dlopen( "mutex.dll", RTLD_NOW ); dlclose( dll ); }