Bug 73983

Summary: Weston crashes on hotplug/unplug input device
Product: Wayland Reporter: Anu Reddy <anasuyax.r.nannuri>
Component: westonAssignee: Wayland bug list <wayland-bugs>
Status: VERIFIED FIXED QA Contact:
Severity: critical    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Input device gdb_backtrace
input-touch-gbdbacktrace
input_malloc_gdbbacktrace

Description Anu Reddy 2014-01-23 17:32:52 UTC
Hot unplug and plug input device (mouse, keyboard or touch) multiple times triggers SIGSEGV in wl_list_insert(). Perform a function while unplugging and plugging input device crashes Weston. See attached gdb backtrace for more info. 


Software Stack
Kernel: 3.9.5-301.fc19.x86_64
wayland (HEAD) remotes/origin/master-0-g47bbc6b
drm (HEAD) libdrm-2.4.50-0-g4c5de72
mesa (HEAD) remotes/origin/10.0-0-g3a62718
libva (HEAD) libva-1.2.1-0-g88ed1eb
intel-driver (HEAD) 1.2.1-0-g8f306e3
weston (HEAD) 1.3.93-0-g7cccfca
Comment 1 Anu Reddy 2014-01-23 17:34:52 UTC
Created attachment 92686 [details]
Input device gdb_backtrace
Comment 2 Anu Reddy 2014-01-23 17:52:10 UTC
Created attachment 92688 [details]
input-touch-gbdbacktrace
Comment 3 Anu Reddy 2014-01-23 17:53:40 UTC
Created attachment 92689 [details]
input_malloc_gdbbacktrace
Comment 4 U. Artie Eoff 2014-01-23 20:31:03 UTC
Caused by a corrupted output->destroy_signal list.  The following commit also resolves this issue:

commit 8259728a569e973a8895b919ba057740a813f52a
Author: Kristian Høgsberg <krh@bitplanet.net>
Date:   Wed Jan 22 11:03:50 2014 -0800

    evdev: Remove output destroy notifier on device destroy
    
    Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=73895

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.