Bug 53942 - [bug] Weston-DRM segv after start-up from weston_output_finish_frame (in gbm_bo_write)
Summary: [bug] Weston-DRM segv after start-up from weston_output_finish_frame (in gbm_...
Status: VERIFIED FIXED
Alias: None
Product: Wayland
Classification: Unclassified
Component: weston (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium blocker
Assignee: Wayland bug list
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-22 16:06 UTC by U. Artie Eoff
Modified: 2012-08-27 19:42 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
weston drm gdb bt full log (10.31 KB, text/plain)
2012-08-22 16:06 UTC, U. Artie Eoff
Details

Description U. Artie Eoff 2012-08-22 16:06:39 UTC
Created attachment 65967 [details]
weston drm gdb bt full log

Description
-----------

After updating to mesa master c4610e9f92 (~3 new commits from my previous HEAD of 1cb07bd3b8), Weston-DRM crashes with segv after start-up (~5 seconds) with the following error:

[08:46:13.313] caught segv
[08:46:13.314]   [0000000000407701]  --  (weston)
[08:46:13.314]   [0000003d7da0efe0]  --  (/lib64/libpthread.so.0)
[08:46:13.314]   [00007fea17271b50]  gbm_bo_write  (/home/uartie/Work/intel/wayland/efl/install/lib/libgbm.so.1)
[08:46:13.314]   [00007fea152d8f81]  --  (/home/uartie/Work/intel/wayland/efl/install/lib/weston/drm-backend.so)
[08:46:13.314]   [00007fea152d90fd]  --  (/home/uartie/Work/intel/wayland/efl/install/lib/weston/drm-backend.so)
[08:46:13.314]   [000000000040f1bd]  weston_output_finish_frame  (weston)
[08:46:13.314]   [00007fea16e1acd1]  drmHandleEvent  (/home/uartie/Work/intel/wayland/efl/install/lib/libdrm.so.2)
[08:46:13.314]   [00007fea152d9882]  --  (/home/uartie/Work/intel/wayland/efl/install/lib/weston/drm-backend.so)
[08:46:13.314]   [00007fea1748259f]  wl_event_loop_dispatch  (/home/uartie/Work/intel/wayland/efl/install/lib/libwayland-server.so.0)
[08:46:13.315]   [00007fea1747ef3c]  wl_display_run  (/home/uartie/Work/intel/wayland/efl/install/lib/libwayland-server.so.0)
[08:46:13.315]   [0000000000406e33]  --  (weston)
[08:46:13.315]   [0000003d7d621735]  __libc_start_main  (/lib64/libc.so.6)
[08:46:13.315]   [0000000000407001]  --  (weston)
read error: No such file or directory
warn: "weston " failed - exitcode -11

System
------
kernel 3.4.6-2.fc17.x86_64
distro Fedora 17
drm master 3163cfe4db925429760407e77140e2d595338bc2
kbproto master 391a1f6de6315fc0196d407d800597488315cccb
mesa master c4610e9f927caa679f34f0d3135d7b1b8cb8bd29
cairo master 5c77b4df146796d8280a4f5b16949e3db4a1f84a
libX11 master 8042f88ace33573f9d0dfaa21ed54ac7cef266d5
dri2proto master 4eeacce4c4a300b938b7e3fb78a8e443c491780b
libxkbcommon master f491285a5f4b5f680a87e9e3076e8499f3ed2a3b
macros master 0890e4003aacfa7113ab3f4e3ad7c5636f8e922a
pixman master 384846b38cfb5e1895ae49c40adbf72a85b63d95
weston master 5418a904ca007a109f6af8c0c75ca97a134986d9
wayland master c855d6eec4c5e63489da5bc08451a2376e6d2aea
glproto master ec1eec4355ee4a6c5134f2178192f10b6d28a87a
Comment 1 U. Artie Eoff 2012-08-22 18:31:03 UTC
Confirmed that http://cgit.freedesktop.org/mesa/mesa/commit/?id=61e95b8a5f8524c7ff726f92ef6edc6b6bb35196 is the first bad commit
Comment 2 Rob Bradford 2012-08-23 17:47:45 UTC
Here is the patch I sent to mesa to fix
Comment 4 U. Artie Eoff 2012-08-27 19:37:12 UTC
(In reply to comment #3)
> http://lists.freedesktop.org/archives/mesa-dev/2012-August/026053.html

Rob, your patch still has not been pushed upstream.

However, after commit <http://cgit.freedesktop.org/mesa/mesa/commit/?id=a669a5055eadae85ffa000cea19a2241d0699348> Weston-DRM does not SEGV anymore.  That commit introduces a libkms dependency and there has been some chatter on the list with concerns about that.  So not sure how long it'll stick.

But, I'm closing as fixed for now, nonetheless.


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.