Re: Translation failure

2008-07-19 Thread JackDesBwa
I come back from hollidays.


   - I'm running Ubuntu 8.04, Hardy Heron
   - $ rmdir --version
   rmdir (GNU coreutils) 6.10
   - Have I some other syscall tracer ? Any idea. ktrace and truss aren't in
   my system.
   - The NTFS system is on a local drive
   - I'm usingntfs-3g 1.2216 external FUSE 27 - Third Generation NTFS
   Driver
   - $ uname -a
   Linux iowanet 2.6.24-18-generic #1 SMP Wed May 28 19:28:38 UTC 2008
   x86_64 GNU/Linux


   - I must say that, even if it is displayed in a bad context, it is a very
   strange message ! On which context can we have to say that a file cannot be
   destroyed because it exists ?


   - strace without -c option : (I had read the help too fast)


$ strace rmdir /media/win/System\ Volume\ Information/
execve(/bin/rmdir, [rmdir, /media/win/System Volume Informa...], [/*
31 vars */]) = 0
brk(0)  = 0x607000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7fd9d5379000
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) =
0x7fd9d5377000
access(/etc/ld.so.preload, R_OK)  = -1 ENOENT (No such file or
directory)
open(/etc/ld.so.cache, O_RDONLY)  = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=87722, ...}) = 0
mmap(NULL, 87722, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fd9d5361000
close(3)= 0
access(/etc/ld.so.nohwcap, F_OK)  = -1 ENOENT (No such file or
directory)
open(/lib/libc.so.6, O_RDONLY)= 3
read(3, \177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\0\1\0\0\0\340\342..., 832) =
832
fstat(3, {st_mode=S_IFREG|0755, st_size=1436976, ...}) = 0
mmap(NULL, 3543672, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7fd9d4dfb000
mprotect(0x7fd9d4f53000, 2097152, PROT_NONE) = 0
mmap(0x7fd9d5153000, 20480, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x158000) = 0x7fd9d5153000
mmap(0x7fd9d5158000, 17016, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fd9d5158000
close(3)= 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7fd9d536
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7fd9d535f000
arch_prctl(ARCH_SET_FS, 0x7fd9d535f6e0) = 0
mprotect(0x7fd9d5153000, 12288, PROT_READ) = 0
munmap(0x7fd9d5361000, 87722)   = 0
brk(0)  = 0x607000
brk(0x628000)   = 0x628000
open(/usr/lib/locale/locale-archive, O_RDONLY) = -1 ENOENT (No such file
or directory)
open(/usr/share/locale/locale.alias, O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2586, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7fd9d5376000
read(3, # Locale name alias data base.\n#..., 4096) = 2586
read(3, , 4096)   = 0
close(3)= 0
munmap(0x7fd9d5376000, 4096)= 0
open(/usr/lib/locale/fr_FR.UTF-8/LC_IDENTIFICATION, O_RDONLY) = -1 ENOENT
(No such file or directory)
open(/usr/lib/locale/fr_FR.utf8/LC_IDENTIFICATION, O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=366, ...}) = 0
mmap(NULL, 366, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fd9d5376000
close(3)= 0
open(/usr/lib/gconv/gconv-modules.cache, O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=25700, ...}) = 0
mmap(NULL, 25700, PROT_READ, MAP_SHARED, 3, 0) = 0x7fd9d536f000
close(3)= 0
open(/usr/lib/locale/fr_FR.UTF-8/LC_MEASUREMENT, O_RDONLY) = -1 ENOENT (No
such file or directory)
open(/usr/lib/locale/fr_FR.utf8/LC_MEASUREMENT, O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=23, ...}) = 0
mmap(NULL, 23, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fd9d536e000
close(3)= 0
open(/usr/lib/locale/fr_FR.UTF-8/LC_TELEPHONE, O_RDONLY) = -1 ENOENT (No
such file or directory)
open(/usr/lib/locale/fr_FR.utf8/LC_TELEPHONE, O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=56, ...}) = 0
mmap(NULL, 56, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fd9d536d000
close(3)= 0
open(/usr/lib/locale/fr_FR.UTF-8/LC_ADDRESS, O_RDONLY) = -1 ENOENT (No
such file or directory)
open(/usr/lib/locale/fr_FR.utf8/LC_ADDRESS, O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=157, ...}) = 0
mmap(NULL, 157, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fd9d536c000
close(3)= 0
open(/usr/lib/locale/fr_FR.UTF-8/LC_NAME, O_RDONLY) = -1 ENOENT (No such
file or directory)
open(/usr/lib/locale/fr_FR.utf8/LC_NAME, O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=71, ...}) = 0
mmap(NULL, 71, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fd9d536b000
close(3)= 0
open(/usr/lib/locale/fr_FR.UTF-8/LC_PAPER, O_RDONLY) = -1 ENOENT (No such
file or directory)
open(/usr/lib/locale/fr_FR.utf8/LC_PAPER, O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=34, 

Re: Translation failure

2008-07-12 Thread Jim Meyering
Eric Blake [EMAIL PROTECTED] wrote:
 |  You may
 | also want
 | to use strace to determine what errno the kernel was returning.
 |
 | $ strace -c rmdir /media/win/System\ Volume\ Information/
 |
 | rmdir: échec de suppression de `/media/win/System Volume Information/':
 | Le fichier existe
 | Process 18932 detached
 | % time seconds  usecs/call callserrors syscall
 | -- --- --- - - 
...
 |nan0.00   0 1   arch_prctl
 | -- --- --- - - 
 | 100.000.00   13839 total

 Hmm, this output isn't from Linux strace.  What OS are you using?  Do you
 have ktrace or truss or some other syscall tracer instead?  And is the
 NTFS drive local or is it being accessed over a network?

Please rerun your strace command, but without the -c option.

What version of coreutils is this?  Run rmdir --version to see.


___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils


Re: Translation failure

2008-07-11 Thread Eric Blake

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

[re-adding the list - by sending a private mail, you managed to catch me
at the start of a vacation, hence the delay in replying]

According to JackDesBwa on 6/23/2008 2:00 PM:
| Can you repeat with 'LC_ALL=C rmdir ...' and see what the English
|
| translation was?
|
|
| The translation is correct :
| rmdir: failed to remove `/media/win/System Volume Information/': File exists
|
|
| My guess is that the translation is correct, and that
| the reason the message is less than stellar is because the errno value
| being reported is not very applicable to the situation.

All right - my guess was confirmed - the error is not in the translation,
but either in the kernel's rmdir(2) behavior or in coreutils reaction to
the kernel's behavior.

|  You may
| also want
| to use strace to determine what errno the kernel was returning.
|
|
| $ strace -c rmdir /media/win/System\ Volume\ Information/
|
| rmdir: échec de suppression de `/media/win/System Volume Information/':
| Le fichier existe
| Process 18932 detached
| % time seconds  usecs/call callserrors syscall
| -- --- --- - - 
|nan0.00   0 3   read
|nan0.00   0 4   write
|nan0.00   05435 open
|nan0.00   021   close
|nan0.00   019   fstat
|nan0.00   024   mmap
|nan0.00   0 2   mprotect
|nan0.00   0 2   munmap
|nan0.00   0 3   brk
|nan0.00   0 3 3 access
|nan0.00   0 1   execve
|nan0.00   0 1 1 rmdir
|nan0.00   0 1   arch_prctl
| -- --- --- - - 
| 100.000.00   13839 total

Hmm, this output isn't from Linux strace.  What OS are you using?  Do you
have ktrace or truss or some other syscall tracer instead?  And is the
NTFS drive local or is it being accessed over a network?

- --
Don't work too hard, make some time for fun as well!

Eric Blake [EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEUEARECAAYFAkh3xWUACgkQ84KuGfSFAYBHOwCYtHrfJAAuUwmhMKum4M3y8Y8c
AQCeIAQhEoj43tSJyGRFIOWZ3jgEQXc=
=MY0U
-END PGP SIGNATURE-


___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils