Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 566298 - x11-misc/lightdm-gtk-greeter-2.0.1: Greeter can hangs after getting SIGTERM with Gtk > 3.15.
Summary: x11-misc/lightdm-gtk-greeter-2.0.1: Greeter can hangs after getting SIGTERM w...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Markos Chandras (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-20 07:11 UTC by Mike Hiretsky
Modified: 2015-12-03 21:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Hiretsky 2015-11-20 07:11:36 UTC
1. Lightdm wants to close a greeter and sends SIGTERM to it.
2. Greeter catches that signal and calls gtk_main_quit() to stop main gtk loop.
3. There is a gdk_flush() call inside gtk_main → it calls gdk_display_sync() → XSync() → deadlock.
4. Greeter hangs.

Reproducible: Always

Steps to Reproduce:
1. emerge =x11-libs/gtk+-3.16.7
2. emerge ligthdm-gtk-greeter
3. login by use lightdm
4. lock session by "dm-tool --lock"
5. unlock session by use lightdm
6. ps ax | grep lightdm-gtk-greeter
Actual Results:  
Many lightdm-gtk-greeter process after session lock/unlock.

Expected Results:  
One or no greeter process after login

This problem described at 
https://code.launchpad.net/~lightdm-gtk-greeter-team/lightdm-gtk-greeter/lp-1445461-leave-instance/+merge/258352.

Need to add configure option --enable-kill-on-sigterm.
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2015-12-03 21:44:33 UTC
Fixed in 2.0.1-r1