[Bug driver/47852] New: crash with g++ -lpthread on irix

bugzilla-gcc at thewrittenword dot com gcc-bugzilla@gcc.gnu.org
Tue Feb 22 22:47:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47852

           Summary: crash with g++ -lpthread on irix
           Product: gcc
           Version: 4.4.5
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: driver
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: bugzilla-gcc@thewrittenword.com
                CC: ro@CeBiTec.Uni-Bielefeld.DE
              Host: mips-sgi-irix6.5
            Target: mips-sgi-irix6.5
             Build: mips-sgi-irix6.5


gcc-4.4.5 on IRIX 6.5 produces an executable that crashes at runtime if
-lpthread appears before -lstdc++ on the link line.


% echo 'int main() {}' >a.cpp
% g++ a.cpp -lpthread -pthread; ./a.out; echo $?
zsh: segmentation fault (core dumped)  ./a.out
139


See also the discussion here:

http://gcc.gnu.org/ml/gcc-help/2011-02/msg00335.html

http://gcc.gnu.org/ml/gcc-help/2011-02/msg00368.html



More information about the Gcc-bugs mailing list