Summary: | X server hangs at exit if it's in background | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | xorg | Reporter: | Алексей Шилин <rootlexx> | ||||||||
Component: | Server/General | Assignee: | Xorg Project Team <xorg-team> | ||||||||
Status: | RESOLVED FIXED | QA Contact: | Xorg Project Team <xorg-team> | ||||||||
Severity: | normal | ||||||||||
Priority: | medium | CC: | michalsrb | ||||||||
Version: | git | ||||||||||
Hardware: | x86-64 (AMD64) | ||||||||||
OS: | Linux (All) | ||||||||||
Whiteboard: | |||||||||||
i915 platform: | i915 features: | ||||||||||
Attachments: |
|
Description
Алексей Шилин
2017-11-16 16:15:08 UTC
Please add your Signed-off-by to the commit log and send the patch to the xorg-devel mailing list for review. Created attachment 135533 [details] [review] Proposed patch fixing VT leave lockup Created attachment 135599 [details] [review] os/inputthread: Force unlock when stopping thread. This is alternative fix that I sent few days ago to xorg-devel mailing list. I think that the input mutex is kept locked for a reason (although I do not know the reason), because it is then again unlocked at the end of xf86VTEnter. If you unlock it in xf86VTLeave, you will get a double unlock in xf86VTEnter. commit 71348e99a8e6a95542e483b93839168ca8f51f81 (HEAD -> master, origin/master, origin/HEAD) Author: Michal Srb <msrb@suse.com> Date: Mon Nov 27 09:59:01 2017 +0100 os/inputthread: Force unlock when stopping thread. The inputthread is kept locked all the time while X server's VT is not active. If the X server is terminated while not active, it will be stuck forever in InputThreadFini waiting for the thread to join, but it wouldn't because it is locked. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=103782 Signed-off-by: Michal Srb <msrb@suse.com> Reviewed-by: Adam Jackson <ajax@redhat.com> |
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.