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

2018-07-15 Thread Pádraig Brady
On 15/07/18 07:28, Thomas Deutschmann wrote: > On 2018-07-15 03:21, Pádraig Brady wrote: >> Does this skip the test for you? > rm-readdir-fail.sh: set-up failure: failed to build shared library > ERROR: tests/rm/rm-readdir-fail.sh Thanks for confirming your __LP64__ setting. I'm going to go with

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

2018-07-15 Thread Thomas Deutschmann
On 2018-07-15 03:21, Pádraig Brady wrote: > Does this skip the test for you? No, it doesn't: chroot /var/tmp/portage/sys-apps/coreutils-8.30/work/coreutils-8.30 # make check TESTS=tests/rm/rm-readdir-fail.sh if test -d ./.git \ && git --version >/dev/null 2>

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

2018-07-14 Thread Pádraig Brady
On 11/07/18 10:05, Paul Eggert wrote: > Thomas Deutschmann wrote: > >> Not sure if this is a kernel problem. Isn't test suite using >> LD_PRELOAD to pull in additional libraries which could cause >> such a breakage? > > You're right, it could be a library problem. The test suite's LD_PRELOAD > l

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

2018-07-11 Thread Thomas Deutschmann
On 2018-07-11 19:05, Paul Eggert wrote: > Thomas Deutschmann wrote: > >> Not sure if this is a kernel problem. Isn't test suite using >> LD_PRELOAD to pull in additional libraries which could cause >> such a breakage? > > You're right, it could be a library problem. The test suite's LD_PRELOAD >

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

2018-07-11 Thread Paul Eggert
Thomas Deutschmann wrote: Not sure if this is a kernel problem. Isn't test suite using LD_PRELOAD to pull in additional libraries which could cause such a breakage? You're right, it could be a library problem. The test suite's LD_PRELOAD library just returns what the C library gives it, thoug

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

2018-07-11 Thread Thomas Deutschmann
On 2018-07-11 04:46, Paul Eggert wrote: > 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 p

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

2018-07-10 Thread Paul Eggert
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 th

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

2018-07-10 Thread Thomas Deutschmann
Hi, a Gentoo sparc user proposed the following fix: From: Rolf Eike Beer Date: Tue, 10 Jul 2018 20:14:18 +0200 Subject: [PATCH] fix SIGBUS because of unaligned access in rm This crashes the rm-readdir-fail test on Gentoo Sparc. Bug: https://bugs.gentoo.org/642492 --- a/lib/fts.c 2018-06-24 06

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

2018-07-09 Thread Thomas Deutschmann
Hi, still happening with coreutils-8.30. -- Regards, Thomas Deutschmann / Gentoo Linux Developer C4DD 695F A713 8F24 2AA1 5638 5849 7EE5 1D5D 74A5

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

2017-12-28 Thread Thomas Deutschmann
Hi, a Gentoo SPARC user is reporting that tests/rm/rm-readdir-fail is failing with SIGBUS in coreutils-8.28 and coreutils-8.29: > FAIL: tests/rm/rm-readdir-fail > == > > ++ initial_cwd_=/var/tmp/portage/sys-apps/coreutils-8.29/work/coreutils-8.29 > +++ testdir_prefix