bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#29886: tests/rm/rm-readdir-fail is failing with SIGBUS on Gentoo spa


From: Paul Eggert
Subject: bug#29886: tests/rm/rm-readdir-fail is failing with SIGBUS on Gentoo sparc
Date: Tue, 10 Jul 2018 19:46:16 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

Thomas Deutschmann wrote:
-                p->fts_statp->st_ino = D_INO (dp);
+                memcpy(&p->fts_statp->st_ino, &dp, 
sizeof(p->fts_statp->st_ino));

This looks like a kernel bug, not a coreutils bug. readdir must be returning a pointer to an misaligned struct. Can you look into that? For example, what happens if you insert this:

  if ((intptr_t) (dp) % _Alignof (struct dirent) != 0)
     abort ();

before the memcpy? The 'abort ()' should never happen; if it does, there's a bug in readdir, surely.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]