[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#514791: libgl1-mesa-glx: segfault calling glGenLists();



On Wed, 2009-02-11 at 18:44 +0100, Kurt Roeckx wrote:
> On Wed, Feb 11, 2009 at 08:55:44AM +0100, Michel Dänzer wrote:
> > On Tue, 2009-02-10 at 22:18 +0100, Kurt Roeckx wrote:
> > > Package: libgl1-mesa-glx
> > > Version: 7.0.3-7
> > > Severity: important
> > > 
> > > Hi,
> > > 
> > > This little test program causes a segfault on amd64:
> > > #include <GL/gl.h>
> > > 
> > > int main()
> > > {
> > >         glGenLists(1);
> > >         return 0;
> > > }
> > > 
> > > But the same thing works with the version from experimental (7.3-1).
> > 
> > That's purely luck; the result of calling GL functions is undefined
> > without a current GLX context.
> 
> I was trying to use iccexamine which you can get at:
> http://sourceforge.net/project/showfiles.php?group_id=177017&package_id=247078
> 
> But it has a few depedencies that aren't available Debian.
> 
> I have no idea how GLX works, I've never looked at it before.
> 
> iccexamine works with the versions from experimental and segfaults
> with the version from testing/unstable.

Your test program above is definitely incorrect, but that doesn't
necessarily mean anything for iccexamine. You could try running it in
gdb with breakpoints set on glXMakeCurrent and glGenLists. If the latter
is called before the former, iccexamine is broken.


-- 
Earthling Michel Dänzer           |                http://www.vmware.com
Libre software enthusiast         |          Debian, X and DRI developer



Reply to: