Bug#541365: libsdl1.2: SDL_SetVideoMode segfault if GLX extension are missing

Gonéri Le Bouder goneri at rulezlan.org
Thu Aug 13 17:18:13 UTC 2009


Package: libsdl1.2
Severity: important

Hi,

If the X server has no GLX extension, SDL_SetVideoMode() segfault. Please
see
#537487.

To reproduct the problem you can do something like:
 rm -rf /usr/lib/dri

Restart X and enjoy:

linda:~/public_html/oscs.git/app/models (master)$glxinfo
name of display: :0.0
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Error: couldn't find RGB GLX visual or fbconfig

Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".

Then you can try to start opencity.

The attached patch fix the issue.

Cheers,

     Gonéri Le Bouder



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.31-rc3-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored:
LC_ALL set to fr_FR.UTF-8)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-sdl-maintainers/attachments/20090813/22ee15b3/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 310_segfault_no-GLX.diff
Type: text/x-diff
Size: 454 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-sdl-maintainers/attachments/20090813/22ee15b3/attachment.diff>


More information about the Pkg-sdl-maintainers mailing list