http://bugs.winehq.org/show_bug.cgi?id=27929
--- Comment #8 from camillo.lugaresi+wine@gmail.com 2011-08-01 07:54:46 CDT --- (In reply to comment #7)
create_alpha_bitmap is a red herring, it seems. The real crash occurs while loading libraries, and the signal handlers is not called because it has not even been installed at that point. Unfortunately, this crash does not occur when running with gdb, so it's hard to debug.
Using DYLD_PRINT_LIBRARIES and export DYLD_PRINT_INITIALIZERS, wine built on 10.7 behaves like this:
----8<---- dyld: loaded: /usr/X11/lib/libXdmcp.6.dylib dyld: calling initializer function 0x95667700 in /usr/lib/libSystem.B.dylib Bus error: 10 ----8<----
The one build on 10.6 (but run on the same 10.7 machine) does:
----8<---- dyld: loaded: /usr/X11/lib/libXdmcp.6.dylib dyld: calling initializer function 0x95667700 in /usr/lib/libSystem.B.dylib dyld: calling initializer function 0x957090c0 in /usr/lib/libc++.1.dylib ----8<----
and continues with the other initializers. So it seems that the crash really occurs inside libSystem's initializer, which is the first to be called.