Bug 50669 - [Regression]Weston failed to start with drm mode based on 64bit OS
Summary: [Regression]Weston failed to start with drm mode based on 64bit OS
Status: VERIFIED FIXED
Alias: None
Product: Wayland
Classification: Unclassified
Component: weston (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: high major
Assignee: Wayland bug list
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-04 01:47 UTC by ZhaoShengyan
Modified: 2012-06-05 20:43 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description ZhaoShengyan 2012-06-04 01:47:52 UTC
System Environment:
--------------------------
Arch:    i386
Libdrm:  (master)2.4.34-2-g481234f2909c0506962a2f42da862da6a9b13fd8
Wayland: (master)0760297633d813c415c068a41558be4ee171d235
Mesa:    (master)8009fca501a021cbaf9b25e01ff3a7793cc2c6cb
Xserver: (master)
xorg-server-1.12.0-194-g78f0d9cdc441a575e15e5f7200ce74750d2f7ad2
Xf86_video_intel: (master) 2.19.0-143-gbc4323558bebd53e474fbc5404e1c41ab16d02e6
Cairo:   (master)dbc0efad7e565558a3abf7f69d7675efddc4688d
Cairo_gl:(master) c0a92bf8329c5a8aee76ac96034435d4fce043dc
Xkbcommon:(master)c87468e926f75fef29e5f6c997d8baa28d8bc8a9
Weston:   (master) 805667388b2f0d0210869daa512598819c7fb1bf
Kernel_unstable: (drm-intel-next-queued)
84bc758124127a5b16b30f9a8bf5f1a981affc6b

Bug detailed description:
-----------------------------
Choose a 64-bit OS, then start weston under drm mode, it will fail with the following info:

./weston
couldn't open /root/.config/weston.ini
compositor: using new vt /dev/tty3
couldn't open /root/.config/weston.ini
caught segv
  [0000000000406213]  --  (./weston)
  [000000337600f4f0]  --  (/lib64/libpthread.so.0)
  [00000000004079f4]  --  (./weston)
  [0000000000407ba8]  weston_compositor_repick  (./weston)
  [000000000040ad9b]  weston_output_finish_frame  (./weston)
  [00007fbfc0a096fc]  wl_event_loop_dispatch  (/opt/X11R7/lib/libwayland-server.     so.0)
  [00007fbfc0a079dd]  wl_display_run  (/opt/X11R7/lib/libwayland-server.so.0)
  [0000000000405cac]  --  (./weston)
  [000000337582169d]  __libc_start_main  (/lib64/libc.so.6)
  [0000000000405db5]  --  (./weston)
couldn't open /root/.config/weston.ini
read error: Broken pipe

However, it is normal with the following combinations:
1. 64bit Linux + X mode.
2. 32bit Linux + (X mode or drm mode).

Reproduce steps:
----------------------------
1. Find a 64bit Linux machine.
2. start weston under drm mode.
Comment 1 ZhaoShengyan 2012-06-04 01:56:24 UTC
(gdb) bt
#0  0x00000000004079f4 in weston_device_repick (seat=0x6273a0) at compositor.c:621
#1  0x0000000000407ba8 in weston_compositor_repick (compositor=0x616940)
    at compositor.c:653
#2  weston_compositor_repick (compositor=0x616940) at compositor.c:645
#3  0x000000000040ad9b in weston_output_repaint (msecs=-1186630941, output=0x6ee230)
    at compositor.c:1056
#4  weston_output_finish_frame (output=0x6ee230, msecs=-1186630941)
    at compositor.c:1089
#5  0x00007ffff71bb6fc in dispatch_idle_sources (loop=0x615900) at event-loop.c:389
#6  wl_event_loop_dispatch (loop=0x615900, timeout=-1) at event-loop.c:401
#7  0x00007ffff71b99dd in wl_display_run (display=0x6158b0) at wayland-server.c:1021
#8  0x0000000000405cac in main (argc=1, argv=<optimized out>) at compositor.c:3133
Comment 2 ZhaoShengyan 2012-06-04 01:59:58 UTC
The first bad commit ID in weston is:

    commit 74419a2237cb24fc99a7db0f012377ff3236040f
    Author: Daniel Stone <daniel@fooishbar.org>
    Date:   Wed May 30 16:32:02 2012 +0100

    Split weston_seat_init up into pointer/keyboard/touch

    So we don't unnecessarily advertise interfaces the seat doesn't support.

    Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Comment 3 ZhaoShengyan 2012-06-05 20:43:02 UTC
This bug has been fixed at:
Arch:               x86_64
Libdrm:             (master) 2.4.34-2-g481234f2909c0506962a2f42da862da6a9b13fd8
Wayland:            (master) 3fd1e128e95770526d2c247aef9544a6abdb7848
Mesa:               (master) 555e00fdc30514b45e9afae18f56a9a4bc65f364
Xserver:            (master)
xorg-server-1.12.0-197-g3476eb38063473a7a5fcd78e2095e284118de839
Xf86_video_intel:   (master)
2.19.0-205-g81f09347f2ab59cf0a3eaca7be83ded555655e93
Cairo:              (master) dbc0efad7e565558a3abf7f69d7675efddc4688d
Cairo_gl:           (master) 9fa047c0ea49d94f9f27947931fe21b70f6463d5
Xkbcommon:          (master) 734be50050601987da680597f5dafc41c6421fbb
Weston:             (master) 6597506ac3926f57bc29bf41219e947a5a826434
Kernel_unstable:   
(drm-intel-next-queued)1523c310b3ed964b71a8db16f70c3bc21cc0642e

Mark the bug as RESOLVED and FIXED.
Comment 4 ZhaoShengyan 2012-06-05 20:43:43 UTC
Mark the bug as VERIFIED and FIXED.


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.