Bug with viewing files with ls and nautilus on iPhone

Bug #1051675 reported by Raymond Brun
36
This bug affects 6 people
Affects Status Importance Assigned to Milestone
gvfs (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I'm running Ubuntu 12.04 64bit as of 14/9-12 "latest" version.

Connected my iPhone to export/import music, pictures, video and whatnot. Most things work swell, but accessing the directories to many of the apps does not work well at all.

The phone is mounted in a .gvfs directory, phone is named "Raymonds Telegrafverk".

Plain attempt to ls the directory
raymond@Bruno:~/.gvfs/Documents on Raymonds Telegrafverk$ ls no.vg.snarvei/
ls: reading directory no.vg.snarvei/: Invalid argument

Trying ls with the -d flag
raymond@Bruno:~/.gvfs/Documents on Raymonds Telegrafverk$ ls -d no.vg.snarvei/
no.vg.snarvei/
raymond@Bruno:~/.gvfs/Documents on Raymonds Telegrafverk$

Going into the directory and trying more
raymond@Bruno:~/.gvfs/Documents on Raymonds Telegrafverk$ cd no.vg.snarvei/
raymond@Bruno:~/.gvfs/Documents on Raymonds Telegrafverk/no.vg.snarvei$ ls
ls: reading directory .: Invalid argument
raymond@Bruno:~/.gvfs/Documents on Raymonds Telegrafverk/no.vg.snarvei$ ls -al
ls: reading directory .: Invalid argument
total 0
raymond@Bruno:~/.gvfs/Documents on Raymonds Telegrafverk/no.vg.snarvei$

Nautilus tells me this:
The folder contents could not be displayed.
Sorry, could not display all the contents of "Skype": Unhandled Apple File Control error (7)

Now weirdest thing, I had problems with no.vg.e24.snarvei/ earlier, but now all of a sudden it works.
As mentioned above, no.vg.snarvei/ is now the actual problem.
The word "snarvei" is norwegian for "shortctu", not that it matters.

Here's a strace ls report
raymond@Bruno:~/.gvfs/Documents on Raymonds Telegrafverk$ strace ls no.vg.e24.snarvei/
execve("/bin/ls", ["ls", "no.vg.e24.snarvei/"], [/* 49 vars */]) = 0
brk(0) = 0x17fd000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fcd41e70000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=118584, ...}) = 0
mmap(NULL, 118584, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fcd41e53000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libselinux.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20T\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=121936, ...}) = 0
mmap(NULL, 2221680, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fcd41a31000
mprotect(0x7fcd41a4e000, 2093056, PROT_NONE) = 0
mmap(0x7fcd41c4d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1c000) = 0x7fcd41c4d000
mmap(0x7fcd41c4f000, 1648, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fcd41c4f000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340!\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=31752, ...}) = 0
mmap(NULL, 2128984, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fcd41829000
mprotect(0x7fcd41830000, 2093056, PROT_NONE) = 0
mmap(0x7fcd41a2f000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7fcd41a2f000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libacl.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\33\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=31096, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fcd41e52000
mmap(NULL, 2126312, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fcd41621000
mprotect(0x7fcd41628000, 2093056, PROT_NONE) = 0
mmap(0x7fcd41827000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7fcd41827000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\30\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1802936, ...}) = 0
mmap(NULL, 3917016, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fcd41264000
mprotect(0x7fcd41417000, 2093056, PROT_NONE) = 0
mmap(0x7fcd41616000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b2000) = 0x7fcd41616000
mmap(0x7fcd4161c000, 17624, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fcd4161c000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\r\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=14768, ...}) = 0
mmap(NULL, 2109704, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fcd41060000
mprotect(0x7fcd41062000, 2097152, PROT_NONE) = 0
mmap(0x7fcd41262000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7fcd41262000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200l\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=135366, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fcd41e51000
mmap(NULL, 2212904, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fcd40e43000
mprotect(0x7fcd40e5b000, 2093056, PROT_NONE) = 0
mmap(0x7fcd4105a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7fcd4105a000
mmap(0x7fcd4105c000, 13352, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fcd4105c000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libattr.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\17\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=18552, ...}) = 0
mmap(NULL, 2113736, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fcd40c3e000
mprotect(0x7fcd40c42000, 2093056, PROT_NONE) = 0
mmap(0x7fcd40e41000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7fcd40e41000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fcd41e50000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fcd41e4e000
arch_prctl(ARCH_SET_FS, 0x7fcd41e4e7c0) = 0
mprotect(0x7fcd41616000, 16384, PROT_READ) = 0
mprotect(0x7fcd40e41000, 4096, PROT_READ) = 0
mprotect(0x7fcd4105a000, 4096, PROT_READ) = 0
mprotect(0x7fcd41262000, 4096, PROT_READ) = 0
mprotect(0x7fcd41827000, 4096, PROT_READ) = 0
mprotect(0x7fcd41a2f000, 4096, PROT_READ) = 0
mprotect(0x7fcd41c4d000, 4096, PROT_READ) = 0
mprotect(0x618000, 4096, PROT_READ) = 0
mprotect(0x7fcd41e72000, 4096, PROT_READ) = 0
munmap(0x7fcd41e53000, 118584) = 0
set_tid_address(0x7fcd41e4ea90) = 10372
set_robust_list(0x7fcd41e4eaa0, 0x18) = 0
futex(0x7fff9f0b37fc, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1, NULL, 7fcd41e4e7c0) = -1 EAGAIN (Resource temporarily unavailable)
rt_sigaction(SIGRTMIN, {0x7fcd40e49750, [], SA_RESTORER|SA_SIGINFO, 0x7fcd40e52cb0}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x7fcd40e497e0, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x7fcd40e52cb0}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
statfs("/selinux", {f_type="EXT2_SUPER_MAGIC", f_bsize=4096, f_blocks=10079070, f_bfree=8227426, f_bavail=7715426, f_files=2564096, f_ffree=2201955, f_fsid={1079584592, -141423653}, f_namelen=255, f_frsize=4096}) = 0
brk(0) = 0x17fd000
brk(0x181e000) = 0x181e000
open("/proc/filesystems", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fcd41e6f000
read(3, "nodev\tsysfs\nnodev\trootfs\nnodev\tb"..., 1024) = 322
read(3, "", 1024) = 0
close(3) = 0
munmap(0x7fcd41e6f000, 4096) = 0
open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=8468592, ...}) = 0
mmap(NULL, 8468592, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fcd4042a000
close(3) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, TIOCGWINSZ, {ws_row=57, ws_col=102, ws_xpixel=0, ws_ypixel=0}) = 0
stat("no.vg.e24.snarvei/", {st_mode=S_IFDIR|0700, st_size=0, ...}) = 0
openat(AT_FDCWD, "no.vg.e24.snarvei/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
getdents(3, 0x1803bc8, 32768) = -1 EINVAL (Invalid argument)
open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=2570, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fcd41e6f000
read(4, "# Locale name alias data base.\n#"..., 4096) = 2570
read(4, "", 4096) = 0
close(4) = 0
munmap(0x7fcd41e6f000, 4096) = 0
open("/usr/share/locale/en_US/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en_US/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en/LC_MESSAGES/coreutils.mo", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=619, ...}) = 0
mmap(NULL, 619, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7fcd41e6f000
close(4) = 0
write(2, "ls: ", 4ls: ) = 4
write(2, "reading directory no.vg.e24.snar"..., 36reading directory no.vg.e24.snarvei/) = 36
open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, ": Invalid argument", 18: Invalid argument) = 18
write(2, "\n", 1
) = 1
close(3) = 0
close(1) = 0
close(2) = 0
exit_group(2) = ?
raymond@Bruno:~/.gvfs/Documents on Raymonds Telegrafverk$

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1051675/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Revision history for this message
Raymond Brun (raymond-brun) wrote :

I tried to figure out the package but to avail. Maybe I suck, maybe I dont.

Bug while using ls command, Im guessing due to the error report that /usr/share/locale/en/LC_MESSAGES/libc.mo is having problems. Maybe in conjunction with apple filesystem (hfs ?)

Revision history for this message
Fabio Marconi (fabiomarconi) wrote :

Hallo
Is this issue reproducible with the latest updates ?
Thanks
fabio
---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

Changed in ubuntu:
status: New → Incomplete
Revision history for this message
Marcel (marcel-vd-berg) wrote :

I'm also running Ubuntu 12.04 LTS 64bit with Nautilus 3.4.2

My iPad 3 iOS 6.0.1 is automatically mounted on /home/marcel/.gvfs
In Nautilus sidebar tree-view is the device and the documents mounted twice (as duplicates). Browsing into the documents folders will show just 1 folder and opening will result almost always in:

  The folder contents could not be displayed.
  Sorry, could not display all the contents of "<app-name>": Unhandled Apple File Control error (7)

Browsing in the device folders does not give this error. Switching to Nautilus places-view and back to tree-view will remove the duplicate devices.

marcel@marcel-desktop:~/.gvfs/Documents on marcel-ipad$ ls -al
total 0
drwx------ 1 marcel marcel 0 Jan 1 1970 .
dr-x------ 4 marcel marcel 0 Jan 30 13:55 ..
drwx------ 1 marcel marcel 0 Jan 1 1970 au.com.onereddog.ArcticKeys
drwx------ 1 marcel marcel 0 Jan 1 1970 com.8player.lite
drwx------ 1 marcel marcel 0 Jan 1 1970 com.affinityblue.nodebeat
drwx------ 1 marcel marcel 0 Jan 1 1970 com.algoriddim.djay-ios
drwx------ 1 marcel marcel 0 Jan 1 1970 com.amidio.seline.hd
drwx------ 1 marcel marcel 0 Jan 1 1970 com.apple.iBooks
[...]

marcel@marcel-desktop:~/.gvfs/marcel-ipad$ ls -al
total 0
drwx------ 1 marcel marcel 476 Oct 28 23:45 .
dr-x------ 4 marcel marcel 0 Jan 30 13:55 ..
drwx------ 1 marcel marcel 102 Oct 11 11:31 AirFair
drwx------ 1 marcel marcel 68 Jan 28 02:37 Airlock
drwx------ 1 marcel marcel 272 Oct 26 18:53 Books
-rwx------ 1 marcel marcel 0 Oct 11 11:04 com.apple.itunes.lock_sync
[...]

Revision history for this message
Fabio Marconi (fabiomarconi) wrote :

Hallo
Are you having the same behaviour runing nautilus under root ?
in terminal
sudo nautilus and try to browse your device.
---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

Revision history for this message
Marcel (marcel-vd-berg) wrote :

Running nautilus under root does not auto-mount the ipad under /root/.gvfs!
Since I needed to lookup how to mount AFP and/or AFC, i guess using ifuse might be a better solution!?

Changed in ubuntu:
status: Incomplete → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in nautilus (Ubuntu):
status: New → Confirmed
affects: ubuntu → nautilus (Ubuntu)
Changed in ubuntu:
status: New → Confirmed
affects: nautilus (Ubuntu) → ubuntu
Changed in gvfs (Ubuntu):
status: New → Confirmed
affects: ubuntu → gvfs (Ubuntu)
Changed in gvfs (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.