FS#31002 - libimobiledevice causes upowerd to crash when iphone/ipod is plugged in

Attached to Project: Arch Linux
Opened by Kevin (prurigro) - Saturday, 04 August 2012, 04:18 GMT
Last edited by Tom Gundersen (tomegun) - Saturday, 04 August 2012, 22:07 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ionut Biru (wonder)
Tom Gundersen (tomegun)
Architecture All
Severity Medium
Priority Normal
Reported Version 1.9.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

If upowerd (/usr/lib/upower/upowerd) is started at boot, it will segfault when an iphone or ipod touch is plugged in due to a bug in libimobiledevice. This causes software that uses upowerd (such as the battery applet and power statistics application in gnome) to stop working until upowerd is started again.

A description of the bug and a patch I've successfully tested are located at: http://libiphone.lighthouseapp.com/projects/27916/tickets/273-patch-fix-segfault-when-running-with-home-unset

In case the above link goes dead, I've attached the patch to this bug report and the description of the bug is the following: "When libimobiledevice is running in environment without $XDG_CONFIG_HOME and $HOME set, segfault happens at src/userpref.c:128 in function userpref_get_config_dir() when calling strcpy(), because variable cdir is set to NULL and strcpy() tries to read from NULL. For example, this situation happens when upowerd starts at boot if iPod touch is plugged into computer. Upowerd runs with clean environment and crashes in libimobiledevice when coldplugs iPod."

Cheers!
This task depends upon

Closed by  Tom Gundersen (tomegun)
Saturday, 04 August 2012, 22:07 GMT
Reason for closing:  Fixed
Comment by Kevin (prurigro) - Saturday, 04 August 2012, 04:25 GMT
Ahh crap, I didn't realize there were different trackers for different categories and this got placed into the one for the AUR when I believe it should go in the one for Arch Linux. Is anyone able to move this to the correct location, or should I request closure and submit a new report? -Thanks-
Comment by Tom Gundersen (tomegun) - Saturday, 04 August 2012, 09:04 GMT
ioni: I'll fix this.

Loading...