Skip to content

tests/rm/rm-readdir-fail?: strace -o /dev/null -e inject=getdents64:error=EIO rm -rf has wrong error #10272

Open

Description

@oech3
$  mkdir -p a/b
$ strace -o /dev/null -e inject=getdents64:error=EIO rm -rf a
rm: cannot remove 'a': Directory not empty

$  mkdir -p a/b
$ strace -o /dev/null -e inject=getdents64:error=EIO gnu9.9/rm -rf a
rm: cannot remove 'a': Input/output error

Activity

  1. changed the title [-]tests/rm/rm-readdir-fail: strace -o /dev/null -e inject=getdents64:error=EIO rm -rf has wrong error[/-] [+]tests/rm/rm-readdir-fail?: strace -o /dev/null -e inject=getdents64:error=EIO rm -rf has wrong error[/+] on Jan 16, 2026
  2. oech3 commented on Jan 20, 2026

    @oech3
    ContributorAuthor

    @ChrisDryden do you think is this rm-readdir-fail? or something else?

  3. ChrisDryden commented on Jan 20, 2026

    @ChrisDryden
    Collaborator

    There is an underlying issue here: #9604 this PR shows the fix to match the error message.

  4. oech3 commented on Jan 20, 2026

    @oech3
    ContributorAuthor

    It seems you are patching test suite. Can we upstream strace instead?

  5. ChrisDryden commented on Jan 20, 2026

    @ChrisDryden
    Collaborator

    That would be ideal, I was experimenting with this and the issue became that the upstream uses an artifact to prove that the intercepted method was actually called. Is there a way to do that with strace too?

  6. oech3 commented on Jan 20, 2026

    @oech3
    ContributorAuthor

    I 1st considered #10272 (comment) , but it seems error message is different

  7. oech3 commented on Jan 20, 2026

    @oech3
    ContributorAuthor

    Oh artifact... It is why coreutils/coreutils#153 (comment) was happened.

  8. ChrisDryden commented on Jan 20, 2026

    @ChrisDryden
    Collaborator

    I was able to modify a similar test upstream when I found that depending on the version of GLIBC the test was incompatible when running with the original GNU coreutils, I think its likely that the same thing applies here and I can upstream the patch I wrote with sed

  9. oech3 commented on Jan 20, 2026

    @oech3
    ContributorAuthor

    Great. (I don't want to sed too many soure code)

  10. oech3 commented on Oct 11, 2026

    @oech3
    ContributorAuthor

    I found the way to support any C-function at rm-readdir-fail.sh side. I'm trying to upstream it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions