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: Thomas Deutschmann
Subject: bug#29886: tests/rm/rm-readdir-fail is failing with SIGBUS on Gentoo sparc
Date: Tue, 10 Jul 2018 23:46:25 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:21.0) Gecko/20100101 Thunderbird/52.8.0

Hi,

a Gentoo sparc user proposed the following fix:

From: Rolf Eike Beer <address@hidden>
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:52:06.000000000 +0200
+++ b/lib/fts.c 2018-07-10 14:08:32.382614958 +0200
@@ -1551,7 +1551,7 @@ mem1:                           saved_er
 
                 /* Store dirent.d_ino, in case we need to sort
                    entries before processing them.  */
-                p->fts_statp->st_ino = D_INO (dp);
+                memcpy(&p->fts_statp->st_ino, &dp, 
sizeof(p->fts_statp->st_ino));
 
                 /* Build a file name for fts_stat to stat. */
                 if (ISSET(FTS_NOCHDIR)) {



-- 
Regards,
Thomas Deutschmann / Gentoo Linux Developer
C4DD 695F A713 8F24 2AA1 5638 5849 7EE5 1D5D 74A5

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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