http://bugs.winehq.org/show_bug.cgi?id=10184
--- Comment #6 from Ryan Walklin ryanwalklin@gmail.com 2007-11-13 22:00:41 --- Thanks bazoola, that hadn't occured to me at all.
I've just finished building the Crossover wine source, and interestingly the exact symptoms occur. The LDFLAG workaround is required to compile in OpenGL support, and Wine was unable to find the X11 libs without using DYLD_FALLBACK_LIBRARY_PATH. Using the DYLD variable, Wine crashed with the same X error (128, Apple-DRI).
I've been through the source diffs with Wine 0.9.34 (which Crossover is based on), and there doesn't seem to be anything in the dll loader code or elsewhere which would account for this.
At the moment I'm leaning toward this being a Mac OS bug, but I'm not sure how far I'm going to be able to get from that side.
I've attached the crash log from Crossover-wine, you can see the 128 error there.