#247 ✓resolved
Geoff Paul

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

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.

New-ticket Create new ticket

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

People watching this ticket

Attachments

Tags

Pages