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
Opened by Kevin (prurigro) - Saturday, 04 August 2012, 04:18 GMT
Last edited by Tom Gundersen (tomegun) - Saturday, 04 August 2012, 22:07 GMT
|
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
Comment by Kevin (prurigro) -
Saturday, 04 August 2012, 04:25 GMT
Comment by Tom Gundersen (tomegun) -
Saturday, 04 August 2012, 09:04 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-
ioni: I'll fix this.