GNU bug report logs - #17793
Gentoo gcc 4.8.3 build problem: -fstack-protector [also, Re: bug#17754]

Previous Next

Package: grep;

Reported by: behoffski <behoffski <at> grouse.com.au>

Date: Tue, 17 Jun 2014 10:48:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 17793-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: behoffski <behoffski <at> grouse.com.au>, 17793-done <at> debbugs.gnu.org
Subject: Re: bug#17793: Gentoo gcc 4.8.3 build problem: -fstack-protector
 [also, Re: bug#17754]
Date: Tue, 17 Jun 2014 12:28:54 -0700
[Message part 1 (text/plain, inline)]
behoffski wrote:

>          In file included from mbsstr.c:32:0:
>          str-kmp.h: In function 'knuth_morris_pratt':
>          str-kmp.h:35:1: error: stack protector not protecting local
> variables: variable length buffer [-Werror=stack-protector]
>           knuth_morris_pratt (const UNIT *haystack,
>           ^

These warnings don't indicate any bugs in the code; they're merely about 
incomplete run-time checking in the underlying implementation.  I was 
particularly amused by a refusal to compile a function on the grounds 
that its code doesn't use the stack!

So let's just disable the warnings.  I pushed the attached patch.

> Valgrind and -fsanitize=address are incompatible

Thanks, I didn't know that.  Too bad, but understandable.  Neither tool 
dominates the other, so I guess we'll have to use them separately.
[0001-build-avoid-Wstack-protector.patch (text/plain, attachment)]

This bug report was last modified 11 years and 35 days ago.

Previous Next


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