[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#13516: tests/rm/unread3 fails on Mac OS X 10.8
From: |
Assaf Gordon |
Subject: |
bug#13516: tests/rm/unread3 fails on Mac OS X 10.8 |
Date: |
Tue, 22 Jan 2013 16:26:30 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120510 Icedove/10.0.4 |
Paul Eggert wrote, On 01/22/2013 03:21 PM:
> On 01/22/13 11:22, Assaf Gordon wrote:
>> 3. Running with 'sudo', 'rm' doesn't fail:
>> $ sudo dtruss $D/rm -r $D/a $D/b 2>/tmp/rm_trace.txt
>
> You need a sudo inside dtruss, to, right?
> Something like this
>
> sudo dtruss sudo -u $USER $D/rm -r $D/a $D/b 2>/tmp/rm_trace.txt
>
Sorry, but I can't get sudo+dtruss+sudo to work as expected.
It has some side effects that I do not understand, most likely because dtruss
isn't following forks.
Simple example of the problem:
1. no sudo/dtruss - works:
$ $D/rm foo 2>&1 | grep foo
/Users/admin/Projects/coreutils-8.20.90-e27bfd/src/rm: cannot remove 'foo':
No such file or directory
2. sudo+dtruss - work (but not good enough to reproduce this bug):
$ sudo dtruss $D/rm foo 2>&1 | grep foo
/Users/admin/Projects/coreutils-8.20.90-e27bfd/src/rm: cannot remove 'foo':
No such file or directory
lstat64("foo\0", 0x100100280, 0x100100280) = -1 Err#2
unlink("foo\0", 0x100800000, 0x100800000) = -1 Err#2
write_nocancel(0x2, "cannot remove 'foo'\0", 0x13) = 19 0
3. sudo+dtruss+sudo - doesn't trace "rm", sometimes shows the error message,
sometimes doesn't. Using "-f" has no effect:
$ sudo dtruss sudo -u $USER $D/rm foo 2>&1 | grep foo
/Users/admin/Projects/coreutils-8.20.90-e27bfd/src/rm: cannot remove 'foo':
No such file or directory
$ sudo dtruss sudo -u $USER $D/rm foo 2>&1 | grep foo
$ sudo dtruss -f sudo -u $USER $D/rm foo 2>&1 | grep foo
$ sudo dtruss -f sudo -u $USER $D/rm foo 2>&1 | grep foo
Any help is appreciated.
-gordon
- bug#13516: tests/rm/unread3 fails on Mac OS X 10.8, Assaf Gordon, 2013/01/21
- bug#13516: tests/rm/unread3 fails on Mac OS X 10.8, Pádraig Brady, 2013/01/21
- bug#13516: tests/rm/unread3 fails on Mac OS X 10.8, Paul Eggert, 2013/01/22
- bug#13516: tests/rm/unread3 fails on Mac OS X 10.8, Assaf Gordon, 2013/01/22
- bug#13516: tests/rm/unread3 fails on Mac OS X 10.8, Paul Eggert, 2013/01/22
- bug#13516: tests/rm/unread3 fails on Mac OS X 10.8,
Assaf Gordon <=
- bug#13516: tests/rm/unread3 fails on Mac OS X 10.8, Paul Eggert, 2013/01/23
- bug#13516: tests/rm/unread3 fails on Mac OS X 10.8, Assaf Gordon, 2013/01/23
- bug#13516: tests/rm/unread3 fails on Mac OS X 10.8, Paul Eggert, 2013/01/24
- bug#13516: tests/rm/unread3 fails on Mac OS X 10.8, Assaf Gordon, 2013/01/24
- bug#13516: tests/rm/unread3 fails on Mac OS X 10.8, Paul Eggert, 2013/01/27
- bug#13516: tests/rm/unread3 fails on Mac OS X 10.8, Global Odey, 2013/01/28
- bug#13516: tests/rm/unread3 fails on Mac OS X 10.8, Assaf Gordon, 2013/01/28
- bug#13516: tests/rm/unread3 fails on Mac OS X 10.8, Paul Eggert, 2013/01/28
- bug#13516: tests/rm/unread3 fails on Mac OS X 10.8, Global Odey, 2013/01/29
- bug#13516: tests/rm/unread3 fails on Mac OS X 10.8, Paul Eggert, 2013/01/30