Experiencing the same intermittently on a ThinkPad X300.

The addon-input tool is pretty straightforward:

http://cgit.freedesktop.org/hal/tree/hald/linux/addons/addon-input.c

It's been forever since I've used GIOChannels, but it doesn't look like
the channel might not be getting fully unref'ed the correct number of
times.  A GIOChannel starts off with a refcount of 1 when it's created
and is incremented on a g_io_add_watch_full().  Normally, the event
source should be removed if it's callback returns FALSE.  But if there's
another caller of remove_device(), the channel gets shutdown and
deref'ed once but if the event source is still around the ref count will
still be 1 and might result in the polling on a non-existent fd behavior
that we're seeing.

Then again, I'm totally rusty on GIO and am likely way off. :-)

-- 
hald-addon-inpu making 100%-cpu-usage
https://bugs.launchpad.net/bugs/203679
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to