Bug 68896

Summary: Weston and TTY's hang when weston-launch is SIGKILL'd and weston is SIGTERM'd
Product: Wayland Reporter: U. Artie Eoff <ullysses.a.eoff>
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: Weston hangs in drm_destroy

Description U. Artie Eoff 2013-09-03 16:49:25 UTC
Bug 62910 addressed weston-launch issues with all signals except SIGKILL.  Some of the SIGKILL woes were discussed in https://bugs.freedesktop.org/show_bug.cgi?id=62910#c1.

Killing weston-launch with SIGKILL still hangs the ttys and is an issue that still needs addressed eventually.
Comment 1 U. Artie Eoff 2013-09-03 18:24:54 UTC
Clarification:

If weston-launch is SIGKILL'd, then the Weston process continues to run.  However, when attempting to SIGTERM Weston afterwards, the TTY's hang and Weston does not exit.  A gdb backtrace indicates that Weston is stuck in drm_destroy().

$ weston-launch &
$ killall -SIGKILL weston-launch
$ killall -SIGTERM weston
# observe that "sudo chvt 1" blocks and that weston never exits.  weston-desktop-shell is also <defunct>.
Comment 2 U. Artie Eoff 2013-09-03 18:25:50 UTC
Created attachment 85138 [details]
Weston hangs in drm_destroy
Comment 3 Brian Lovin 2013-09-23 23:18:49 UTC
Tested this on the 1.3RC:
Fedora 19
wayland (HEAD) 1.2.91-0-g4125367
drm (HEAD) libdrm-2.4.46-0-gc6d73cf
mesa (9.2) heads/9.2-0-g2cda3f0
weston (HEAD) 1.2.91-0-g7799385


This issue has been fixed. Weston-launch can be SIGKILL'd and will quit gracefully and Weston will now also quit.
Comment 4 Brian Lovin 2013-09-23 23:19:18 UTC
Verified from previous comment.

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.