hotkeys fails to lock and goes into 100% eating CPU
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hotkeys (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: hotkeys
$ apt-cache policy hotkeys
hotkeys:
Installed: 0.5.7.4-0.1
Candidate: 0.5.7.4-0.1
Version table:
*** 0.5.7.4-0.1 0
500 http://
100 /var/lib/
When hotkeys is started under strace, it goes on to eat 100% of my CPU.
I see the splash screen, then it starts spinning in a tight loop.
$ strace -F -o /dev/null hotkeys
X Error of failed request: 0
Major opcode of failed request: 0 ()
Serial number of failed request: 0
Current serial number in output stream: 11
: Program exiting...Locking assertion failure. Backtrace:
#0 /usr/lib/
#1 /usr/lib/
#2 /usr/lib/
#3 /usr/lib/
#4 /usr/lib/
#5 [0x804b117]
#6 [0x804b775]
#7 [(nil)]
So it seems like hotkeys claims it is exiting due to a failure to lock something. But it doesn't manage to exit.
Now 'top shows this as first entry:
PID USER VIRT RES SHR WCHAN S %CPU %MEM TIME COMMAND
14448 ariel 15228 2216 1324 - R 100 0.1 2:41 hotkeys
The process is in a tight loop with no system calls (neither ltrace nor strace print anything after attaching to Process 14448)
Last open file according to lsof:
hotkeys 14448 ariel 3u unix 0xec498e00 33702 socket
Attaching to the process with gdb shows the stack trace:
$ gdb /usr/bin/hotkeys 14448
...
(no debugging symbols found)
0xb7dce3c1 in _XGetXCBBuffer () from /usr/lib/
(gdb) bt
#0 0xb7dce3c1 in _XGetXCBBuffer () from /usr/lib/
#1 0xb7dcef89 in ?? () from /usr/lib/
#2 0xb7dcf39a in _XReply () from /usr/lib/
#3 0xb7dc2667 in XSync () from /usr/lib/
#4 0xb7da222e in XCloseDisplay () from /usr/lib/
#5 0x0804b117 in ?? ()
#6 0x0804b775 in ?? ()
#7 0x00000000 in ?? ()
I should add that I really don't need hotkeys anymore since Intrepid Ibex seems to recognize my fancy keyboard (Logitech iTouch family) just fine. I just wanted to report this for the sake of documenting all the problem I've seen since upgrading to Ibex.
I did a little playing around with this. It seems to not fail or consume 100% CPU when run as root, but it doesn't recognize keypresses either. This is with a config known to work in Feisty, Gutsy and Hardy.
I noticed when I ran xev that the keycodes for the media keys on my Compaq V6000 (V6215) had changed since installing Intrepid. I changed the keycodes in my keyboard config file, but it still didn't work.