http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47558
--- Comment #57 from Jack Howarth <howarth at nitro dot med.uc.edu> 2011-02-04 15:16:42 UTC --- For the testcase in Comment 56 using my proposed patch from Comment 45... gcc-4 -dynamiclib -o libtestcall.dylib -flat_namespace -undefined suppress -single_module test_call.c gcc-4 -o PR47558.exe test_main.c ./libtestcall.dylib otool -L ./PR47558.exe ./PR47558.exe: libtestcall.dylib (compatibility version 0.0.0, current version 0.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.10) /sw/lib/gcc4.6/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) gdb ./PR47558.exe Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000010 0x00007fff839d3c35 in _Unwind_Resume () (gdb) bt #0 0x00007fff839d3c35 in _Unwind_Resume () #1 0x0000000100003f75 in unwindcall () #2 0x0000000100000f7b in main ()