Bug 6185

Summary: libgpod segfault when communicating to some iOS devices (Patches included)
Product: [ROSA-based products] ROSA Fresh Reporter: Zombie Ryushu <zombie.ryushu>
Component: Packages from MainAssignee: ROSA Linux Bugs <bugs>
Status: RESOLVED DUPLICATE QA Contact: ROSA Linux Bugs <bugs>
Severity: normal    
Priority: Normal CC: alexey.vokhmin, denis.silakov, eugene.shatokhin
Version: Fresh   
Target Milestone: ---   
Hardware: All   
OS: Linux   
URL: https://bugs.launchpad.net/ubuntu/+source/libgpod/+bug/1381728
See Also: http://bugs.rosalinux.ru/show_bug.cgi?id=6186
http://bugs.rosalinux.ru/show_bug.cgi?id=6187
Whiteboard:
Platform: --- ROSA Vulnerability identifier:
RPM Package: libgpod ISO-related:
Bad POT generating: Upstream:

Description Zombie Ryushu 2015-09-17 08:41:23 MSK
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.
Comment 1 Zombie Ryushu 2015-09-17 09:06:28 MSK
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
Comment 2 Zombie Ryushu 2015-09-17 09:18:04 MSK
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.
Comment 3 Zombie Ryushu 2015-09-17 09:54:08 MSK
he Crux of the problem, is that iOS devices do not show up correctly, they appear as PTP devices rather than MTP devices.
Comment 4 Denis Silakov 2015-09-29 00:53:28 MSK
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 ***