GNU bug report logs - #25024
build: adjust for ASAN/UBSAN

Previous Next

Package: coreutils;

Reported by: Marcel Böhme <boehme.marcel <at> gmail.com>

Date: Fri, 25 Nov 2016 06:19:02 UTC

Severity: wishlist

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Pádraig Brady <P <at> draigBrady.com>, Marcel Böhme <boehme.marcel <at> gmail.com>, 25024 <at> debbugs.gnu.org
Subject: bug#25024: Bug in Sort
Date: Fri, 25 Nov 2016 10:50:06 -0800
Pádraig Brady wrote:
> for UBSAN we should probably build with
> _STRING_ARCH_unaligned defined globally
> to avoid warning for the cases we already handle.

Yes. Translating this for non-experts: the problem here is a bug in the 
bug-finding procedure, not a bug in GNU coreutils or in Gnulib.

Recent glibc (since 2016-02-18) does not define _STRING_ARCH_unaligned, which 
means that this code in gnulib md5.c etc. is no longer exercised on recent 
platforms. So in some sense the originally-reported bug is already fixed (via an 
unexpected glibc change), though this does mean Gnulib md5 etc. is now slower on 
x86-64 etc., which is a performance bug on newer platforms. If we fix the 
performance bug I suppose we'll start getting false alarms from UBSAN again.




This bug report was last modified 6 years and 236 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.