Bug 33492 - Wayland clients immediately segfaulting starting with 731ec60da3ccb92f5bfb4d6f1bc3c8e712751376
Summary: Wayland clients immediately segfaulting starting with 731ec60da3ccb92f5bfb4d6...
Alias: None
Product: Mesa
Classification: Unclassified
Component: Other (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: mesa-dev
QA Contact:
Depends on:
Reported: 2011-01-25 11:06 UTC by Darxus
Modified: 2011-01-25 11:25 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Description Darxus 2011-01-25 11:06:49 UTC
Wayland clients start segfaulting immediately for me as of this commit (while using nouveau):

$ git bisect bad
731ec60da3ccb92f5bfb4d6f1bc3c8e712751376 is the first bad commit
commit 731ec60da3ccb92f5bfb4d6f1bc3c8e712751376
Author: Dimitry Andric <dimitry@andric.com>
Date:   Tue Jan 25 09:22:12 2011 -0700

    glapi: adding missing @GOTPCREL qualifer in glapi_x86-64.S

$ libtool --mode=execute gdb wayland/clients/terminal
GNU gdb (GDB) 7.2-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
Reading symbols from /home/darxus/wayland/wayland/clients/.libs/lt-terminal...done.
(gdb) run
Starting program: /home/darxus/wayland/wayland/clients/.libs/lt-terminal 
[Thread debugging using libthread_db enabled]
 -> display@1.range(1280)
 -> display@1.global(new id 1, "display", 1)
 -> display@1.global(new id 2, "drm", 1)
 -> display@1.global(new id 3, "compositor", 1)
 -> display@1.global(new id 4, "visual", 1)
 -> display@1.global(new id 5, "visual", 1)
 -> display@1.global(new id 6, "visual", 1)
 -> display@1.global(new id 7, "shm", 1)
 -> display@1.global(new id 8, "shell", 1)
 -> display@1.global(new id 9, "screenshooter", 1)
 -> display@1.global(new id 10, "output", 1)
 -> display@1.global(new id 11, "input_device", 1)
 -> drm@2.device("/dev/dri/card0")
 -> output@10.geometry(0, 0, 1024, 640)
 -> drm@2.authenticated()
libEGL debug: EGL search path is /home/darxus/install/lib/egl
libEGL debug: added /home/darxus/install/lib/egl/egl_gallium.so to module array
libEGL debug: added egl_dri2 to module array
libEGL debug: added egl_glx to module array
libEGL debug: dlopen(/home/darxus/install/lib/egl/egl_gallium.so)
libEGL info: use DRM for display 0x6
libEGL debug: searching for pipe module nouveau
libEGL debug: loaded /home/darxus/install/lib/egl/pipe_nouveau.so
libEGL debug: Failed to get KMS resources.  Disable modeset.
libEGL debug: the best driver is Gallium
libEGL debug: searching for st module GL
libEGL debug: loaded /home/darxus/install/lib/egl/st_GL.so
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn compression/decompression unavailable
nv50_screen_get_param:135 -  Unknown PIPE_CAP 43

Program received signal SIGSEGV, Segmentation fault.
glGetString () at glapi_x86-64.S:9876
9876		movq	2200(%rax), %r11
(gdb) backtrace
#0  glGetString () at glapi_x86-64.S:9876
#1  0x00007ffff74f5cb8 in _cairo_gl_get_version () at cairo-gl-info.c:39
#2  0x00007ffff74f458c in _cairo_gl_dispatch_init (dispatch=0x1f02, get_proc_addr=0x7ffff79c07f0 <eglGetProcAddress>)
    at cairo-gl-dispatch.c:127
#3  0x00007ffff74f9c00 in cairo_egl_device_create (dpy=0x620a70, egl=0x6381f0) at cairo-egl-context.c:182
#4  0x0000000000409d01 in init_drm (argc=<value optimized out>, argv=0x7fffffffdce0, 
    option_entries=<value optimized out>) at window.c:1615
#5  display_create (argc=<value optimized out>, argv=0x7fffffffdce0, option_entries=<value optimized out>)
    at window.c:1674
#6  0x0000000000407804 in main (argc=1, argv=0x7fffffffde08) at terminal.c:2385
Comment 1 Darxus 2011-01-25 11:08:34 UTC
The last wayland commit useful for testing this is:
commit e4762a6ac1801ab1887c56e0051fa6335ba50ae2                                                                       
Date:   Fri Jan 14 14:59:13 2011 -0500 

Due to a current requirement for BGRA8888 which was only committed to mesa yesterday.
Comment 2 Brian Paul 2011-01-25 11:13:26 UTC
I've reverted the bad patch.
Comment 3 Darxus 2011-01-25 11:25:31 UTC
Confirmed working as of ba0953da5b2440ba19f427ed82266f0dd0cdf96a, thanks.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.