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

Bug#257329: xlibmesa-gl-dev: Segfaults on Radeon 7500 QW when linked in a special way



Package: xlibmesa-gl-dev
Version: 4.3.0.dfsg.1-5
Severity: important

I'm not entirely sure if this is a SDL or GL bug, but the following
let's me suspect that something is wrong with GL.

$ glxinfo
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
client glx vendor string: SGI
client glx version string: 1.2
client glx extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
GLX extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
OpenGL vendor string: Tungsten Graphics, Inc.
OpenGL renderer string: Mesa DRI Radeon 20020611 AGP 1x x86/MMX/3DNow!/SSE TCL
OpenGL version string: 1.2 Mesa 4.0.4
...

$ cat aa.c
#include "SDL.h"

int main()
{
    SDL_Init(SDL_INIT_VIDEO);
    SDL_SetVideoMode(640,480,24,SDL_OPENGL);
    SDL_Quit();
}
$ gcc aa.c -lGL -lGLU `sdl-config --cflags --libs` && ./a.out
[runs ok]
$ gcc aa.c -lGLU -lGL `sdl-config --cflags --libs` && ./a.out
Fatal signal: Segmentation Fault (SDL Parachute Deployed)

As soon as -lGL is linked in after -lGLU, the program
crashes when using direct rendering (LIBGL_ALWAYS_INDIRECT not set);
without accel (LGL_A_I set), it works fine.

Setting LIBGL_DEBUG for the first program results in no output, the
crashing second program outputs:
GL User Error: calling glGetString(0x1f03); without a current context

The program crashes in the strstr-function, unfortunately, the stack
is corrupted, and I didn't managed to obtain a more helpful
backtrace. 

The installed xlibmesa-dri version is 4.3.0.dfsg.1-5

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.6-2-k7
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE (ignored: LC_ALL set to de_DE)

Versions of packages xlibmesa-gl-dev depends on:
ii  libc6-dev [libc-dev]      2.3.2.ds1-13   GNU C Library: Development Librari
ii  libx11-dev                4.3.0.dfsg.1-5 X Window System protocol client li
ii  libxext-dev               4.3.0.dfsg.1-5 X Window System miscellaneous exte
ii  x-dev                     4.3.0.dfsg.1-5 X protocol development files
ii  xlibmesa-gl               4.3.0.dfsg.1-5 Mesa 3D graphics library [XFree86]

-- no debconf information



Reply to: