Seg fault when connecting Android 4 MTP file system on Samsung Galaxy Tab 10.1

Bug #936165 reported by mightymouse2045
236
This bug affects 51 people
Affects Status Importance Assigned to Milestone
mtpfs (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Firstly I would have thought the device would be automatically mounted like it does in windows... but it doesn't so on following the advice\suggestions from here:

http://411technology.wordpress.com/2011/05/14/howto-setup-the-galaxy-tab-or-any-other-mtp-device-for-file-transfers-under-linux/

However once I connect the device i get the following in dmesg:

[ 316.371082] usb 1-1.5: new high speed USB device number 5 using ehci_hcd
[ 316.399316] hub 1-1:1.0: unable to enumerate USB device on port 5
[ 316.819038] usb 1-1.5: new high speed USB device number 6 using ehci_hcd

Then I run mtp-detect and get:

Listing raw device(s)
Device 0 (VID=04e8 and PID=685c) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
   Found 1 device(s):
   04e8:685c @ bus 1, dev 8
Attempting to connect device(s)
Android device detected, assigning default bug flags
Error 1: Get Storage information failed.
Error 2: PTP Layer error 02fe: get_handles_recursively(): could not get object handles.
Error 2: (Look this up in ptp.h for an explanation.)
USB low-level info:
   Using kernel interface "usbfs"
   bcdUSB: 512
   bDeviceClass: 0
   bDeviceSubClass: 0
   bDeviceProtocol: 0
   idVendor: 04e8
   idProduct: 685c
   IN endpoint maxpacket: 512 bytes
   OUT endpoint maxpacket: 512 bytes
   Raw device info:
      Bus location: 1
      Device number: 8
      Device entry info:
         Vendor: (null)
         Vendor id: 0x04e8
         Product: (null)
         Vendor id: 0x685c
         Device flags: 0x00008104
Configuration 0, interface 0, altsetting 0:
   Interface description contains the string "MTP"
   Device recognized as MTP, no further probing.
Device info:
   Manufacturer: samsung
   Model: GT-P7500
   Device version: 1.0
   Serial number: C16903012938C2E
   Vendor extension ID: 0x00000006
   Vendor extension description: microsoft.com: 1.0; android.com: 1.0;
   Detected object size: 64 bits
   Extensions:
        microsoft.com: 1.0
        android.com: 1.0
Supported operations:
   1001: get device info
   1002: Open session
   1003: Close session
   1004: Get storage IDs
   1005: Get storage info
   1006: Get number of objects
   1007: Get object handles
   1008: Get object info
   1009: Get object
   100a: Get thumbnail
   100b: Delete object
   100c: Send object info
   100d: Send object
   1014: Get device property description
   1015: Get device property value
   1016: Set device property value
   1017: Reset device property value
   101b: Get partial object
   9801: Get object properties supported
   9802: Get object property description
   9803: Get object property value
   9804: Set object property value
   9805: Get object property list
   9810: Get object references
   9811: Set object references
   95c1: Unknown (95c1)
   95c2: Unknown (95c2)
   95c3: Unknown (95c3)
   95c4: Unknown (95c4)
   95c5: Unknown (95c5)

Followed by a whole lot of other information.

If I try running gmtp and connecting I get a seg fault:

~$ gmtp
Device 0 (VID=04e8 and PID=685c) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
Android device detected, assigning default bug flags
Error 1: Get Storage information failed.
Error 2: PTP Layer error 02fe: get_handles_recursively(): could not get object handles.
Error 2: (Look this up in ptp.h for an explanation.)
Segmentation fault

in dmesg:
[ 965.433611] gmtp[7404]: segfault at 38 ip 0000000000409e22 sp 00007fff0b9ac280 error 4 in gmtp[400000+27000]

If I try and mount it, it mounts but when i cd into it:

cd: /media/gtab: Transport endpoint is not connected

and this seg fault in dmesg:

[ 1120.520628] mtpfs[7466]: segfault at 10 ip 0000000000402b03 sp 00007f1bdc926c28 error 4 in mtpfs[400000+6000]

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: linux-image-3.0.0-16-generic 3.0.0-16.29
ProcVersionSignature: Ubuntu 3.0.0-16.29-generic 3.0.20
Uname: Linux 3.0.0-16-generic x86_64
NonfreeKernelModules: nvidia
.etc.asound.conf:
 pcm.!default {
 type hw
 card 1
 device 7
 }
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', '/dev/snd/controlC1', '/dev/snd/hwC1D0', '/dev/snd/hwC1D1', '/dev/snd/hwC1D2', '/dev/snd/hwC1D3', '/dev/snd/pcmC1D3p', '/dev/snd/pcmC1D7p', '/dev/snd/pcmC1D8p', '/dev/snd/pcmC1D9p', '/dev/snd/controlC0', '/dev/snd/hwC0D0', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', '/dev/snd/pcmC0D1p', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'PCH'/'HDA Intel PCH at 0xfa120000 irq 65'
   Mixer name : 'Realtek ALC892'
   Components : 'HDA:10ec0892,10438410,00100302'
   Controls : 35
   Simple ctrls : 20
Card1.Amixer.info:
 Card hw:1 'NVidia'/'HDA NVidia at 0xfa080000 irq 17'
   Mixer name : 'Nvidia GPU 16 HDMI/DP'
   Components : 'HDA:10de0016,10de0101,00100100'
   Controls : 16
   Simple ctrls : 4
Date: Sun Feb 19 20:21:53 2012
HibernationDevice: RESUME=UUID=76407339-d14a-46b1-9a6a-83a1f93eb83f
HotplugNewDevices:

HotplugNewMounts:

MachineType: System manufacturer System Product Name
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.0.0-16-generic root=/dev/sda2 ro rootflags=noatime,discard,journal_async_commit,barrier=0,nobh rdblacklist=nouveau nouveau.modeset=0 quiet vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-3.0.0-16-generic N/A
 linux-backports-modules-3.0.0-16-generic N/A
 linux-firmware 1.60.1
RfKill:

SourcePackage: linux
StagingDrivers: mei
Symptom: storage
UdisksMonitorLog: Monitoring activity from the disks daemon. Press Ctrl+C to cancel.
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 09/19/2011
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 0902
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: P8Z68-V PRO
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev 1.xx
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr0902:bd09/19/2011:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKComputerINC.:rnP8Z68-VPRO:rvrRev1.xx:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: System Product Name
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer

Revision history for this message
mightymouse2045 (eagleeyes426) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mtpfs (Ubuntu):
status: New → Confirmed
Revision history for this message
Anthony Borrow (arborrow) wrote :

I read in another bug report (Bug #948621):

This bug was fixed in the package gmtp - 1.3.2-1

so I'm hopeful that may resolve this issue as well.

Revision history for this message
Rafareino (reino) wrote :

Tested in version 1.3.2-1.

Bug is Unchanged.

Revision history for this message
MMaathieu (maaathieu) wrote :

I tried with libmtp 1.1.4-1 and gmtp 1.3.3-1 from quantal, and it still doesn't work...

Revision history for this message
Radheshyam (hsehdar) wrote :

Eagerly waiting for a fix.

To post a comment you must log in.