Here is the output from GDB and the stack following: This GDB was configured as "powerpc-apple-macos10". Reading symbols for shared libraries . done (gdb) run Starting program: /Developer/sscli/tests/dev/ffi_test [Switching to process 9457 thread 0xb03] Reading symbols for shared libraries . done Reading symbols for shared libraries ......... done
Program received signal EXC_BAD_ACCESS, Could not access memory. 0x90004588 in __sfvwrite () (gdb) bt #0 0x90004588 in __sfvwrite () #1 0x90005424 in fwrite () #2 0x00189804 in PAL_vfprintf (stream=0x223ed8, format=0xbffff170 "??? \200", ap=0xbffff6d0 "") at ../printf.c:1718 #3 0x00189a90 in PAL_fprintf (stream=0x223ed8, format=0x2b88 "PAL_RegisterLibraryW failed\n") at ../printf.c:1773 #4 0x00002600 in main (argc=0, argv=0xbffff170, envp=0x1) at /Developer/sscli/tests/dev/ffitest/ffitest.cpp:37 #5 0x00002500 in _start (argc=1, argv=0xbffff7e4, envp=0xbffff7ec) at /SourceCache/Csu/Csu-45/crt.c:267 #6 0x00002380 in start () (gdb)