ROSA Linux Bugzilla – Bug 6185
libgpod segfault when communicating to some iOS devices (Patches included)
Last modified: 2015-09-29 00:53:28 MSD
The fix for libgpod fixes a segfaulting issue where apon connection or access of an iOS device, libgpod will segfault (as well as any program using it) while attempting to parse the playcount.xml file on the device.
I have committed a nukmber of patches to my repo on ABF, theses patches fix the Segfault. Due to issues with Bugzilla I cannot post them here, but they are in the ABF repo.
create mode 100644 github.com-jburton-libgpod-fix-segfault.patch
create mode 100644 libgpod-0.8.2-pkgconfig_overlinking.patch
create mode 100644 libgpod-0.8.3-mono4.patch
create mode 100644 libgpod-fixswig.patch
The issue with gvfs-iPhone (aka gvfs-afc) is that it's not starting when the iOS device is detected by udev. Instead we get the device's PTP mode which only provides access to the device's photos. (We can't access the music / video / apps / database / etc. directories.)
gvfs-afc does not even run when the device is connected. Instead we see this in the system's dmesg:
usb 1-3: new high-speed USB device number 4 using ehci-pci
[ 550.887425] usb 1-3: New USB device found, idVendor=05ac, idProduct=1293
[ 550.887442] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 550.887450] usb 1-3: Product: iPod
[ 550.887457] usb 1-3: Manufacturer: Apple Inc.
[ 551.012633] audit: type=1130 audit(1442464679.381:223): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=usbmuxd comm="systemd" exe="/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
This is a udev rule issue with usbmuxd. the program that is supposed to run is /lib/udev/iphone-setinfo.
he Crux of the problem, is that iOS devices do not show up correctly, they appear as PTP devices rather than MTP devices.
Suggested patches are included in libgpod update handled together with update of other related packages in bug 6187.
*** This bug has been marked as a duplicate of bug 6187 ***