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

Bug#855095: gcc-6: [hppa] regression: trivial program segfaults



On 2017-02-13, at 7:44 PM, Andreas Cadhalpun wrote:

> Package: gcc-6
> Version: 6.3.0-6
> Severity: important
> Control: affects -1 ffmpeg
> X-Debbugs-Cc: debian-hppa@lists.debian.org
> 
> Dear Maintainer,
> 
> ffmpeg 7:3.2.4-1 failed to build on hppa, because configure's C compiler test failed [1]:
> BEGIN /tmp/ffconf.JlfWXo0F.c
>    1	int main(void){ return 0; }
> END /tmp/ffconf.JlfWXo0F.c
> gcc -Wdate-time -D_FORTIFY_SOURCE=2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -Wformat -Werror=format-security -fno-strict-overflow -fstack-protector-all -fPIE -c -o /tmp/ffconf.vzRvJxAo.o /tmp/ffconf.JlfWXo0F.c
> cc1: warning: -fstack-protector not supported for this target
> gcc -Wl,-z,relro -Wl,-z,now -fPIE -pie -o /tmp/ffconf.lZtBYrZt /tmp/ffconf.vzRvJxAo.o
> Segmentation fault
> 
> It looks like gcc miscompiles the most trivial program, so that it segfaults when run,
> but gcc-6 6.3.0-3 worked fine three weeks ago [2].


Essentially, the problem is caused by the switch to using hardening options.  The problem isn't gcc.  It's
binutils and possibly glibc.

https://sourceware.org/bugzilla/show_bug.cgi?id=21132
https://sourceware.org/bugzilla/show_bug.cgi?id=21000
https://sourceware.org/bugzilla/show_bug.cgi?id=21131

Until these issues are resolved, the hardening options aren't going to work on hppa.

Dave
--
John David Anglin	dave.anglin@bell.net


Reply to: