100% CPU Usage with iPod Touch
Reported by Geoff Paul | January 9th, 2012 @ 06:12 PM
When I connect my iPod Touch to my laptop running Linux Mint 11 (Katya), everything seems to work fine. However, I found that /usr/lib/upower/upowerd and /lib/udev/iphone-set-info both go off the charts at 95-100% CPU each. The only way to solve this is to kill the processes and reboot the machine. This same problem has been reported by others using stock Ubuntu and Red Hat Linux. (See bug reports below)
https://bugs.launchpad.net/ubuntu/+source/libgpod/+bug/611020
https://bugzilla.redhat.com/show_bug.cgi?id=674702
I installed various sets of debug symbols and managed to find the problem in idevice.c:internal_ssl_write. For some unknown reason, the SSL write encounters a problem, but when it returns 0 bytes, this triggers an infinite loop in libgnutls. I developed a small patch which prevents an infinite loop and allows the error to be handled gracefully. I have tested the patch extensively for the past several days, and everything seems to be working. I posted it to the bug reports and figured I might as well submit it to the main developers, too. The patch has been attached.
GP
Comments and changes to this ticket
-
Nikias Bassen January 12th, 2012 @ 12:34 AM
- State changed from new to resolved
- Tag set to gnutls
Thanks, committed.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
A project around supporting the iPhone in Linux.
See http://libimobiledevice.org