Re: Bug#799811: gcc-5: Segfaults with LD_BIND_NOW set in environment
Control: severity -1 serious
On Wed, 23 Sep 2015 21:59:32 +0200 Aurelien Jarno <aurelien@aurel32.net> wrote:
> It seems the issue, is triggered by the switch to -mplt by default, as
> requested in bug#797971 and implemented in version 5.2.1-17. I haven't
> found any other affected binaries than the gcc related ones, but not
> that many have been rebuilt yet. The issue affects both mips and mipsel,
> but not mips64el.
Raising severity as this breaks the AppArmor parser and its testsuite (thus causing
the apparmor package to FTBFS on mips/mipsel).
Reproducing this issue is very simple (g++-5 5.2.1-21):
> minkus% cat test.cpp
> #include <iostream>
>
> int main() {
> std::string test = "test";
> std::cout << test;
> return 0;
> }
> minkus% g++ -Wl,-z,now -static-libstdc++ test.cpp
> minkus% ./a.out
> zsh: segmentation fault ./a.out
> minkus% g++ -Wl,-z,now -static-libstdc++ -mno-plt test.cpp
> minkus% ./a.out
> test
Felix
Reply to: