[Xquartz-dev] libGL.1.2.dylib shipped with 2.3.3 RC5 makes applications crash
vmrsss
vmrsss at gmail.com
Wed Apr 22 18:17:41 PDT 2009
Hello
> Changed 3 hours ago by jeremyhu@…
> • status changed from new to closed
> • resolution set to worksforme
> Please bring this up on xquartz-dev for faster iteration and more
> eyes.
>
As required, I am bringing this to the developer list. Please find
below my original report and attachment.
> This bug report is vague and I can't really do anything about it
> without specifics.
>
Yes, that's right and I am aware of it. Unfortunately, I am not
acquainted at all with XQuartz.
> Please give me examples of applications that fail with the new libGL.
>
(OK, but let's postpone this a bit longer)
> mplayer is not a good example as it's not using GLX. It's using
> OpenGL.framework directly.
>
Well, that cannot be, because as I link /usr/X11/lib/libGL.1.2.dylib
to the new (resp old) dylib mplayer keeps crashing (resp works just
fine).
I suppose the key here is to run
mplayer -vo macosx
(as eg mplayer -vo x11 works). Have you tried that? This activates
vo_macosx.m which uses libGL, eg: "nm -a vo_macosx.o" list includes:
> U _glBegin
> U _glBindTexture
> U _glClear
> U _glColor3f
> U _glColor4f
> U _glDepthMask
> U _glDisable
> U _glEnable
> U _glEnd
> U _glFlush
> U _glLoadIdentity
> U _glMatrixMode
> U _glOrtho
> U _glTexCoord2f
> U _glVertex2i
> U _glViewport
Can it be that the dylib system get confused with different versions
of libGL.1.2? I have just noticed something which is likely to be
significant: the old libGL (the one which works) appears to link a
libGL.dylib v1.0 from the OpenGL framework, while the new libGL, doesnt:
> $ otool -L /usr/X11/lib/libGL.1.2.dylib.new
> /usr/X11/lib/libGL.1.2.dylib.new:
> /usr/X11/lib/libGL.1.dylib (compatibility version 1.2.0, current
> version 1.2.0)
> /usr/lib/libXplugin.1.dylib (compatibility version 1.0.0, current
> version 1.0.0)
> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/
> ApplicationServices (compatibility version 1.0.0, current version
> 34.0.0)
> /usr/X11/lib/libXext.6.dylib (compatibility version 11.0.0, current
> version 11.0.0)
> /usr/X11/lib/libX11.6.dylib (compatibility version 9.0.0, current
> version 9.0.0)
> /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
> version 1.0.0)
> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
> version 111.1.3)
> $
> $ otool -L /usr/X11/lib/libGL.1.2.dylib.old
> /usr/X11/lib/libGL.1.2.dylib.old:
> /usr/X11/lib/libGL.1.dylib (compatibility version 1.2.0, current
> version 1.2.0)
> /usr/lib/libXplugin.1.dylib (compatibility version 1.0.0, current
> version 1.0.0)
> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/
> libGL.dylib (compatibility version 1.0.0, current version 1.0.0)
> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/
> ApplicationServices (compatibility version 1.0.0, current version
> 34.0.0)
> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
> (compatibility version 1.0.0, current version 1.0.0)
> /usr/X11/lib/libXext.6.dylib (compatibility version 11.0.0, current
> version 11.0.0)
> /usr/X11/lib/libX11.6.dylib (compatibility version 9.0.0, current
> version 9.0.0)
> /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current
> version 1.0.0)
> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
> version 111.1.3)
>
Regards,
-vmrsss
Begin forwarded message:
> From: "XQuartz" <trac at macosforge.org>
> Date: 22 April 2009 21:51:02 BST
> To: undisclosed-recipients:;
> Subject: [XQuartz] #259: libGL.1.2.dylib shipped with 2.3.3 RC5
> makes applications crash
> Reply-To: noreply at macosforge.org
>
> #259: libGL.1.2.dylib shipped with 2.3.3 RC5 makes applications crash
> ------------------------------
> +---------------------------------------------
> Reporter: vmrsss@… | Owner: jeremyhu@…
> Type: crash | Status: new
> Priority: major | Milestone: 2.3.3
> Component: x11-libs | Version: dev (xorg-server-1.4-
> apple)
> Keywords: |
> ------------------------------
> +---------------------------------------------
> Hello. I am unsure whether to raise a ticket or email xquartz-dev,
> as I
> don't know that the one I am reporting is a bug. Please bear with me.
>
> Is X11-2.3.3 supposed to be backward compatible? I have installed
> it, and
> found that a number of applications which use /usr/X11/lib/libGL.
> 1.dylib
> crash. I have also verified that replacing libGL.1.2.dylib with the
> corresponding file from X11-2.3.2.1, the applications seem to run well
> again (incidentally, I found strange that the two version of the
> library
> are very different in size: 2.3M for 2.3.2.1, against 798K for 2.3.3).
>
> Is this expected? I wouldn't think so, or there would at least have
> been a
> bump version number of GL. So, is it a bug to be fixed in X11-2.3.3?
>
> I attach below the output of GDB in the case of one crash (of the
> open-
> source application mplayer). I don't think it is particularly
> useful, it
> doesn't am happy to help debug, but I need to be instructed about
> what
> information/tests you may need.
>
> Question: is it safe to downgrade to 2.3.2.1 by simply installing
> X11-2.3.2.1 on top of 2.3.3.RC5, or should I remove /usr/X11 entirely
> before reinstalling? Thx
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: errorGLIB.txt
URL: <http://lists.macosforge.org/pipermail/xquartz-dev/attachments/20090423/0bc5a94d/attachment.txt>
-------------- next part --------------
More information about the Xquartz-dev
mailing list