Mesa 9.2.3 - Segmentation fault on DRI or GALLIUM for i915
Submitted by Alexander Pannwitz
Assigned to Ian Romanick
Description
Upgrading from Mesa8.x to any version of 9.x (or 10.x-devel) results in a segmentation fault in dri/gallium. Following all details:
OS: Fedora 18 CPU: Intel Atom N450 (integrated GMA 3150 GPU)
Build with: [root@localhost Mesa-9.2.3]# ./autogen.sh --prefix=/usr --libdir=/usr/lib --enable-gles1 --enable-gles2 --enable-opengl --enable-shared-glapi --with-egl-platforms=drm,fbdev --with-dri-drivers=i915 --enable-gbm --enable-gallium-gbm --enable-gallium-egl --with-gallium-drivers=i915 --enable-debug ... Build overview:
prefix: /usr
exec_prefix: ${prefix}
libdir: /usr/lib
includedir: ${prefix}/include
OpenGL: yes (ES1: yes ES2: yes)
OpenVG: no
OSMesa: no
DRI drivers: i915
DRI driver dir: ${libdir}/dri
GLX: DRI-based
EGL: yes
EGL platforms: drm fbdev
EGL drivers: builtin:egl_dri2 egl_gallium
EGL Gallium STs: $(GL_LIB)
llvm: yes
llvm-config: /usr/bin/llvm-config
llvm-version: 3.3
Gallium: yes
Target dirs: dri-i915 egl-static gbm pipe-loader
Winsys dirs: i915/drm i915/sw sw sw/dri sw/null
Driver dirs: galahad i915 identity llvmpipe noop rbug softpipe trace
Trackers dirs: dri egl gbm
Shared libs: yes
Static libs: no
Shared-glapi: yes
CFLAGS: -g -O2 -DDEBUG -Wall -std=c99 -Werror=implicit-function-declaration -Werror=missing-prototypes -fno-strict-aliasing -fno-builtin-memcmp -g -O0
CXXFLAGS: -g -O2 -Wall -fno-strict-aliasing -fno-builtin-memcmp -g -O0
Macros: -D_GNU_SOURCE -DHAVE_PTHREAD -DDEBUG -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -DHAVE_DLOPEN -DHAVE_POSIX_MEMALIGN -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DUSE_EXTERNAL_DXTN_LIB=1 -DHAVE_ALIAS -DHAVE_MINCORE -DHAVE_LIBUDEV -DMESA_EGL_NO_X11_HEADERS -DHAVE_LLVM=0x0303
LLVM_CFLAGS: -I/usr/include -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
LLVM_CXXFLAGS: -I/usr/include -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -fvisibility-inlines-hidden -fno-exceptions -fPIC -Woverloaded-virtual -Wcast-qual
LLVM_CPPFLAGS: -I/usr/include -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
PYTHON2: python2
Run 'gmake' to build Mesa
[root@localhost Mesa-9.2.3]#
...
Run egl example (that runs under 8.x, but not under any version of 9.x or 10.x-devel) on console (with no X at all!!!)
[root@localhost opengles2]# MESA_DEBUG=1 EGL_LOG_LEVEL=debug LIBGL_DEBUG=verbose EGL_PLATFORM=drm ./es2gears_screen libEGL debug: Native platform type: drm (environment overwrite) libEGL debug: EGL search path is /usr/lib/egl libEGL debug: added /usr/lib/egl/egl_gallium.so to module array libEGL debug: added egl_dri2 to module array libEGL debug: dlopen(/usr/lib/egl/egl_gallium.so) libEGL info: use DRM for display (nil) Segmentation fault [root@localhost opengles2]#
Version: 9.2