Re: Bug#799811: gcc-5: Segfaults with LD_BIND_NOW set in environment

Matthias Klose <[email protected]>
Newsgroups gmane.linux.debian.ports.mips
Message-ID <[email protected]>
Control: severity -1 important
Control: tags -1 + help

On 06.10.2015 21:37, Felix Geyer wrote:
> Control: severity -1 serious

No. It doesn't make it unusable without that option.

Would be nice if the mips c porters could handle this.

> On Wed, 23 Sep 2015 21:59:32 +0200 Aurelien Jarno <[email protected]> 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
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.