help , segfault when running weston

microcai microcai at fedoraproject.org
Sat Jul 14 03:57:23 PDT 2012


solved by using EGL_SOFTWARE=1

driver bug I think

2012/7/13 microcai <microcai at fedoraproject.org>:
> hard debug shows it sigfaut at
>
> EGLBoolean EGLAPIENTRY
> eglQueryWaylandBufferWL(EGLDisplay dpy,struct wl_buffer *buffer,
>                         EGLint attribute, EGLint *value)
> {
>    _EGLDisplay *disp = _eglLockDisplay(dpy);
>    _EGLDriver *drv;
>    EGLBoolean ret;
>
>    _EGL_CHECK_DISPLAY(disp, EGL_FALSE, drv);
>    assert(disp->Extensions.WL_bind_wayland_display);
>
>    if (!buffer)
>       RETURN_EGL_ERROR(disp, EGL_BAD_PARAMETER, EGL_FALSE);
>
>    ret = drv->API.QueryWaylandBufferWL(drv, disp, buffer, attribute, value);
>
>    RETURN_EGL_EVAL(disp, ret);
> }
>
> drv->API.QueryWaylandBufferWL is NULL here
>
>
> 2012/7/13 microcai <microcai at fedoraproject.org>
>>
>> the backtrace is:
>>
>> (gdb) backtrace
>> #0  0x0000000000000000 in ?? ()
>> #1  0x00007ffff79b6653 in eglQueryWaylandBufferWL () from /usr/lib64/libEGL.so.1
>> #2  0x0000000000408a7a in weston_surface_attach (surface=0x8c8680, buffer=0x8937c0) at compositor.c:778
>> #3  0x000000000040a79c in surface_attach (client=0x8bde80, resource=0x8c8680, buffer_resource=0x8937c0, sx=0, sy=0) at compositor.c:1399
>> #4  0x00007ffff6109f1c in ffi_call_unix64 () from /usr/lib64/libffi.so.6
>> #5  0x00007ffff61098b4 in ffi_call () from /usr/lib64/libffi.so.6
>> #6  0x00007ffff7bd5633 in ?? () from /usr/lib64/libwayland-server.so.0
>> #7  0x00007ffff7bd26ac in ?? () from /usr/lib64/libwayland-server.so.0
>> #8  0x00007ffff7bd457b in wl_event_loop_dispatch () from /usr/lib64/libwayland-server.so.0
>> #9  0x00007ffff7bd2ee8 in wl_display_run () from /usr/lib64/libwayland-server.so.0
>> #10 0x000000000040f8f9 in main (argc=1, argv=0x7fffffffdf28) at compositor.c:3532
>>
>>
>> mesa weston wayland libdrm libxkbcommon are all currently git master.
>>
>> driver is nouveau and kernel 3.4.4
>>
>>


More information about the wayland-devel mailing list