[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#733816: khotkeys launches actions with SIGHUP blocked, leading to unclosable xterms



Anthony DeRobertis wrote, On 12/31/2013 01:02 PM:
> Package: kde-workspace-bin
> Version: 4:4.11.3-2
> Severity: normal
> 
> I have a hotkey to launch an xterm. This worked before the most recent
> aptitude upgrade to track testing, but now when I launch an xterm that
> way, clicking the kwin close button (or picking close from the kwin
> menu) does nothing; the xterm sticks around.
> 
> After searching for a while, I compared an strace of each, and it seems
> that khotkeys is starting xterm with SIGHUP blocked/masked, and that's
> causing the issue. 
> 
> khotkeys probably shouldn't have signals masked when starting commands.
> 
> [Note: see also my question about this on Unix.SE
>        http://unix.stackexchange.com/q/107331/977 ]
> 

Please make sure you are not affected by this recent nVidia driver
signal mask bug.  It's been driving me CRAZY (breaking Akonadi/mysqlcheck,
screenblank/lock recovery, etc)

https://devtalk.nvidia.com/default/topic/633706/linux/recent-drivers-cause-applications-to-hang-not-start-at-all-or-compilation-failures/
https://devtalk.nvidia.com/default/topic/638521/linux/gnome-terminal-problems-ctrl-c-and-exit/

for i in /proc/[0-9]*/status; do
  if sb=$(grep SigBlk ${i}|sed -e 's/^SigBlk:[ \t]//' | grep -v -e '^ffff' -e 00000000000); then
    echo "${sb}" "$(cat ${i%/*}/cmdline)";
  fi
done


If you see many X11/KDE spawned apps running with signal masks that look like
pointer addresses, then that's likely it:

e.g.:

0000000001a12000 kdeinit4: kded4 [kdeinit]
00007fd601bb6e80 kwin-session107a69610000138635311800000285300000_1388190743_313193
00007f847f809af8 /usr/bin/plasma-desktop
00007f847f809a50 /usr/bin/akonadi_control
00007f847f809a50 akonadiserver
00007f847f809a10 /usr/bin/akonadi_contacts_resource--identifierakonadi_contacts_resource_0
00007f847f809a10 /usr/bin/akonadi_ical_resource--identifierakonadi_ical_resource_0
00007f847f809a10 /usr/bin/akonadi_maildir_resource--identifierakonadi_maildir_resource_0
00007f847f809a10 /usr/bin/akonadi_maildispatcher_agent--identifierakonadi_maildispatcher_agent
00007f88024886d0 /usr/bin/krunner
00007f3048d08e80 /usr/bin/kmix-session107a69610000136754935300000070530010_1388190742_119017
00007f7e384a86d0 /usr/bin/lancelot-session107a69610000138782471100000164860042_1388190742_87972-nameQt-subapplication 

--stephen
-- 
Stephen Dowdy  -  Systems Administrator  -  NCAR/RAL
303.497.2869   -  sdowdy@ucar.edu        -  http://www.ral.ucar.edu/~sdowdy/


Reply to: