Package: mtpfs
Version: 1.1-4
Severity: important

I'm unable to use mtpfs to reach any of my MTP devices.

I have two different errors. The first is the most recent; I mount the file system by

"mtptfs -d /media/mtp"

and then execute, in another window,

"echo xxx > /media/mtp/Phones/Ringtones/xxx.mp3"

I get a rather large crash dump in the mount window:

unique: 270, opcode: LOOKUP (1), nodeid: 16, insize: 48, pid: 7483
LOOKUP /Phone/Ringtones/xxx.mp3
getattr /Phone/Ringtones/xxx.mp3
*** Error in `mtpfs': free(): invalid next size (fast): 0x00007fef64000c10 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7aac6)[0x7fef73541ac6]
/lib/x86_64-linux-gnu/libc.so.6(+0x7b843)[0x7fef73542843]
mtpfs[0x403844]
mtpfs[0x4043b2]
mtpfs[0x404481]
/lib/x86_64-linux-gnu/libfuse.so.2(+0x11578)[0x7fef751fe578]
/lib/x86_64-linux-gnu/libfuse.so.2(+0x12141)[0x7fef751ff141]
/lib/x86_64-linux-gnu/libfuse.so.2(+0x179a7)[0x7fef752049a7]
/lib/x86_64-linux-gnu/libfuse.so.2(+0x145bb)[0x7fef752015bb]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x7e0e)[0x7fef7387be0e]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7fef735af95d]
======= Memory map: ========
00400000-00407000 r-xp 00000000 fd:02 1313193 /usr/bin/mtpfs 00607000-00608000 rw-p 00007000 fd:02 1313193 /usr/bin/mtpfs 023b9000-02426000 rw-p 00000000 00:00 0 [heap]
7fef58000000-7fef58021000 rw-p 00000000 00:00 0
7fef58021000-7fef5c000000 ---p 00000000 00:00 0
7fef5c000000-7fef5c021000 rw-p 00000000 00:00 0
7fef5c021000-7fef60000000 ---p 00000000 00:00 0
7fef637ff000-7fef63800000 ---p 00000000 00:00 0
7fef63800000-7fef64000000 rw-p 00000000 00:00 0 [stack:17869]
7fef64000000-7fef64021000 rw-p 00000000 00:00 0
7fef64021000-7fef68000000 ---p 00000000 00:00 0
7fef68000000-7fef68021000 rw-p 00000000 00:00 0
7fef68021000-7fef6c000000 ---p 00000000 00:00 0
7fef6c000000-7fef6c021000 rw-p 00000000 00:00 0
7fef6c021000-7fef70000000 ---p 00000000 00:00 0
7fef70377000-7fef7038c000 r-xp 00000000 fe:1f80 2892 /lib/x86_64-linux-gnu/libgcc_s.so.1 7fef7038c000-7fef7058c000 ---p 00015000 fe:1f80 2892 /lib/x86_64-linux-gnu/libgcc_s.so.1 7fef7058c000-7fef7058d000 rw-p 00015000 fe:1f80 2892 /lib/x86_64-linux-gnu/libgcc_s.so.1
7fef705bf000-7fef705c0000 ---p 00000000 00:00 0
7fef705c0000-7fef70dc0000 rw-p 00000000 00:00 0 [stack:17868]
7fef70dc0000-7fef70dc1000 ---p 00000000 00:00 0
7fef70dc1000-7fef715c1000 rw-p 00000000 00:00 0 [stack:17854]
7fef715c1000-7fef715c2000 ---p 00000000 00:00 0
7fef715c2000-7fef71dc2000 rw-p 00000000 00:00 0 [stack:17850]
7fef71dc2000-7fef71dc3000 ---p 00000000 00:00 0
7fef71dc3000-7fef725c3000 rw-p 00000000 00:00 0 [stack:17849] 7fef725c3000-7fef725c6000 r-xp 00000000 fe:1f80 2445 /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0 7fef725c6000-7fef727c5000 ---p 00003000 fe:1f80 2445 /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0 7fef727c5000-7fef727c6000 rw-p 00002000 fe:1f80 2445 /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0 7fef727c6000-7fef72840000 r-xp 00000000 fe:1f80 4444 /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0 7fef72840000-7fef72a40000 ---p 0007a000 fe:1f80 4444 /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0 7fef72a40000-7fef72a41000 r--p 0007a000 fe:1f80 4444 /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0 7fef72a41000-7fef72a44000 rw-p 0007b000 fe:1f80 4444 /lib/x86_64-linux-gnu/libgcrypt.so.11.7.0 7fef72a44000-7fef72a82000 r-xp 00000000 fe:1f80 29391 /lib/x86_64-linux-gnu/libpcre.so.3.13.1 7fef72a82000-7fef72c81000 ---p 0003e000 fe:1f80 29391 /lib/x86_64-linux-gnu/libpcre.so.3.13.1 7fef72c81000-7fef72c82000 rw-p 0003d000 fe:1f80 29391 /lib/x86_64-linux-gnu/libpcre.so.3.13.1 7fef72c82000-7fef72c89000 r-xp 00000000 fd:02 267425 /usr/lib/x86_64-linux-gnu/libffi.so.6.0.1 7fef72c89000-7fef72e88000 ---p 00007000 fd:02 267425 /usr/lib/x86_64-linux-gnu/libffi.so.6.0.1 7fef72e88000-7fef72e89000 r--p 00006000 fd:02 267425 /usr/lib/x86_64-linux-gnu/libffi.so.6.0.1 7fef72e89000-7fef72e8a000 rw-p 00007000 fd:02 267425 /usr/lib/x86_64-linux-gnu/libffi.so.6.0.1 7fef72e8a000-7fef72e9d000 r-xp 00000000 fe:1f80 51112 /lib/x86_64-linux-gnu/libresolv-2.17.so 7fef72e9d000-7fef7309d000 ---p 00013000 fe:1f80 51112 /lib/x86_64-linux-gnu/libresolv-2.17.so 7fef7309d000-7fef7309e000 r--p 00013000 fe:1f80 51112 /lib/x86_64-linux-gnu/libresolv-2.17.so 7fef7309e000-7fef7309f000 rw-p 00014000 fe:1f80 51112 /lib/x86_64-linux-gnu/libresolv-2.17.so
7fef7309f000-7fef730a1000 rw-p 00000000 00:00 0
7fef730a1000-7fef730c0000 r-xp 00000000 fe:1f80 6275 /lib/x86_64-linux-gnu/libselinux.so.1 7fef730c0000-7fef732c0000 ---p 0001f000 fe:1f80 6275 /lib/x86_64-linux-gnu/libselinux.so.1 7fef732c0000-7fef732c1000 r--p 0001f000 fe:1f80 6275 /lib/x86_64-linux-gnu/libselinux.so.1 7fef732c1000-7fef732c2000 rw-p 00020000 fe:1f80 6275 /lib/x86_64-linux-gnu/libselinux.so.1
7fef732c2000-7fef732c3000 rw-p 00000000 00:00 0
7fef732c3000-7fef732c6000 r-xp 00000000 fd:02 268893 /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0.3600.1 7fef732c6000-7fef734c5000 ---p 00003000 fd:02 268893 /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0.3600.1 7fef734c5000-7fef734c6000 r--p 00002000 fd:02 268893 /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0.3600.1 7fef734c6000-7fef734c7000 rw-p 00003000 fd:02 268893 /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0.3600.1 7fef734c7000-7fef7366b000 r-xp 00000000 fe:1f80 13654 /lib/x86_64-linux-gnu/libc-2.17.so 7fef7366b000-7fef7386a000 ---p 001a4000 fe:1f80 13654 /lib/x86_64-linux-gnu/libc-2.17.so 7fef7386a000-7fef7386e000 r--p 001a3000 fe:1f80 13654 /lib/x86_64-linux-gnu/libc-2.17.so 7fef7386e000-7fef73870000 rw-p 001a7000 fe:1f80 13654 /lib/x86_64-linux-gnu/libc-2.17.so
7fef73870000-7fef73874000 rw-p 00000000 00:00 0
7fef73874000-7fef7388b000 r-xp 00000000 fe:1f80 4739 /lib/x86_64-linux-gnu/libpthread-2.17.so 7fef7388b000-7fef73a8a000 ---p 00017000 fe:1f80 4739 /lib/x86_64-linux-gnu/libpthread-2.17.so 7fef73a8a000-7fef73a8b000 r--p 00016000 fe:1f80 4739 /lib/x86_64-linux-gnu/libpthread-2.17.so 7fef73a8b000-7fef73a8c000 rw-p 00017000 fe:1f80 4739 /lib/x86_64-linux-gnu/libpthread-2.17.so
7fef73a8c000-7fef73a90000 rw-p 00000000 00:00 0
7fef73a90000-7fef73aa7000 r-xp 00000000 fe:1f80 84777 /lib/x86_64-linux-gnu/libz.so.1.2.8Aborted


Surprisingly, according to mount, I'm still connected:

mtpfs on /media/mtp type fuse.mtpfs (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)

I then unmount and try again to replicate the other error.

"mtpfs -d -f /media/mtp"

(this time running in foreground; I've tried this both ways).

The other error happens when I try a copy:

"cp ~/personal/music/ringtomes/Bosun56.mp3 /media/mtp/Phones/Ringtones/"

The size of the file I'm trying to copy is 11592 bytes.

unique: 243, opcode: LOOKUP (1), nodeid: 1, insize: 46, pid: 18248
LOOKUP /Phone
getattr /Phone
   NODEID: 10
   unique: 243, success, outsize: 144
unique: 244, opcode: LOOKUP (1), nodeid: 10, insize: 50, pid: 18248
LOOKUP /Phone/Ringtones
getattr /Phone/Ringtones
   NODEID: 11
   unique: 244, success, outsize: 144
unique: 245, opcode: LOOKUP (1), nodeid: 11, insize: 52, pid: 18248
LOOKUP /Phone/Ringtones/Bosun56.mp3
getattr /Phone/Ringtones/Bosun56.mp3
   unique: 245, error: -2 (No such file or directory), outsize: 16
unique: 246, opcode: LOOKUP (1), nodeid: 11, insize: 52, pid: 18248
LOOKUP /Phone/Ringtones/Bosun56.mp3
getattr /Phone/Ringtones/Bosun56.mp3
   unique: 246, error: -2 (No such file or directory), outsize: 16
unique: 247, opcode: FORGET (2), nodeid: 12, insize: 48, pid: 0
FORGET 12/1
DELETE: 12
unique: 248, opcode: LOOKUP (1), nodeid: 11, insize: 52, pid: 18248
LOOKUP /Phone/Ringtones/Bosun56.mp3
getattr /Phone/Ringtones/Bosun56.mp3
   unique: 248, error: -2 (No such file or directory), outsize: 16
unique: 249, opcode: MKNOD (8), nodeid: 11, insize: 68, pid: 18248
mknod /Phone/Ringtones/Bosun56.mp3 0100644 0x0 umask=0002
getattr /Phone/Ringtones/Bosun56.mp3
   NODEID: 13
   unique: 249, success, outsize: 144
unique: 250, opcode: OPEN (14), nodeid: 13, insize: 48, pid: 18248
open flags: 0x8001 /Phone/Ringtones/Bosun56.mp3
   open[8] flags: 0x8001 /Phone/Ringtones/Bosun56.mp3
   unique: 250, success, outsize: 32
unique: 251, opcode: WRITE (16), nodeid: 13, insize: 4176, pid: 18248
write[8] 4096 bytes to 0 flags: 0x8001
   write[8] 4096 bytes to 0
   unique: 251, success, outsize: 24
unique: 252, opcode: WRITE (16), nodeid: 13, insize: 4176, pid: 18248
write[8] 4096 bytes to 4096 flags: 0x8001
   write[8] 4096 bytes to 4096
   unique: 252, success, outsize: 24
unique: 253, opcode: WRITE (16), nodeid: 13, insize: 3480, pid: 18248
write[8] 3400 bytes to 8192 flags: 0x8001
   write[8] 3400 bytes to 8192
   unique: 253, success, outsize: 24
unique: 254, opcode: RELEASE (18), nodeid: 13, insize: 64, pid: 0
release[8] flags: 0x8001
   unique: 254, success, outsize: 16


But the file is not on the phone, at least when I try to look for it using

"ls /media/mtp/Phones/Ringtones"

and when I look for it on the phone itself.

If I mount using

"mtpfs -d /media/mtp"

and try the same operation, I get:


unique: 236, opcode: LOOKUP (1), nodeid: 1, insize: 46, pid: 18413
LOOKUP /Phone
getattr /Phone
   NODEID: 10
   unique: 236, success, outsize: 144
unique: 237, opcode: LOOKUP (1), nodeid: 10, insize: 50, pid: 18413
LOOKUP /Phone/Ringtones
getattr /Phone/Ringtones
   NODEID: 11
   unique: 237, success, outsize: 144
unique: 238, opcode: LOOKUP (1), nodeid: 11, insize: 52, pid: 18413
LOOKUP /Phone/Ringtones/Bosun56.mp3
getattr /Phone/Ringtones/Bosun56.mp3
   unique: 238, error: -2 (No such file or directory), outsize: 16
unique: 239, opcode: LOOKUP (1), nodeid: 11, insize: 52, pid: 18413
LOOKUP /Phone/Ringtones/Bosun56.mp3
getattr /Phone/Ringtones/Bosun56.mp3
   unique: 239, error: -2 (No such file or directory), outsize: 16
unique: 240, opcode: CREATE (35), nodeid: 11, insize: 68, pid: 18413
   unique: 240, error: -38 (Function not implemented), outsize: 16
unique: 241, opcode: MKNOD (8), nodeid: 11, insize: 68, pid: 18413
mknod /Phone/Ringtones/Bosun56.mp3 0100644 0x0 umask=0002
getattr /Phone/Ringtones/Bosun56.mp3
   NODEID: 12
   unique: 241, success, outsize: 144
unique: 242, opcode: OPEN (14), nodeid: 12, insize: 48, pid: 18413
open flags: 0x8001 /Phone/Ringtones/Bosun56.mp3
   open[8] flags: 0x8001 /Phone/Ringtones/Bosun56.mp3
   unique: 242, success, outsize: 32
unique: 243, opcode: GETXATTR (22), nodeid: 12, insize: 68, pid: 18413
   unique: 243, error: -38 (Function not implemented), outsize: 16
unique: 244, opcode: WRITE (16), nodeid: 12, insize: 4176, pid: 18413
write[8] 4096 bytes to 0 flags: 0x8001
   write[8] 4096 bytes to 0
   unique: 244, success, outsize: 24
unique: 245, opcode: WRITE (16), nodeid: 12, insize: 4176, pid: 18413
write[8] 4096 bytes to 4096 flags: 0x8001
   write[8] 4096 bytes to 4096
   unique: 245, success, outsize: 24
unique: 246, opcode: WRITE (16), nodeid: 12, insize: 3480, pid: 18413
write[8] 3400 bytes to 8192 flags: 0x8001
   write[8] 3400 bytes to 8192
   unique: 246, success, outsize: 24
unique: 247, opcode: FLUSH (25), nodeid: 12, insize: 64, pid: 18413
   unique: 247, error: -38 (Function not implemented), outsize: 16
unique: 248, opcode: RELEASE (18), nodeid: 12, insize: 64, pid: 0
release[8] flags: 0x8001
   unique: 248, success, outsize: 16

What I see here is something that looks like a copy, apparently for the correct number of bytes, but the actual file is not created.

Note that "adb" works to contact the device:

# adb -d push ~/personal/music/ringtones/Bosun56.mp3 storage/sdcard0/Ringtones/Bosun56.mp3
150 KB/s (11592 bytes in 0.074s)
# adb shell ls storage/sdcard0/Ringtones
Bosun56.mp3

Thanks in advance. Please let me know if you require any more information.


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.8-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages mtpfs depends on:
ii  fuse          2.9.2-4
ii  libc6         2.17-3
ii  libfuse2      2.9.2-4
ii  libglib2.0-0  2.36.1-2build1
ii  libid3tag0    0.15.1b-10
ii  libmad0       0.15.1b-8
ii  libmtp9       1.1.6-2
ii  libusb-1.0-0  2:1.0.15-1
ii  zlib1g        1:1.2.8.dfsg-1

mtpfs recommends no packages.

mtpfs suggests no packages.

-- no debconf information

--
Moshe Yudkowsky * mo...@pobox.com * www.pobox.com/~moshe
 "The seconds marched past, transversing that mysterious boundary that
  separates the future from the past."
                        -- Jack Vance, "The Face"


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to