From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31069 invoked by alias); 22 Feb 2011 20:44:26 -0000 Received: (qmail 31061 invoked by uid 22791); 22 Feb 2011 20:44:25 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 22 Feb 2011 20:44:21 +0000 From: "bugzilla-gcc at thewrittenword dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug driver/47852] New: crash with g++ -lpthread on irix X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: driver X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bugzilla-gcc at thewrittenword dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Tue, 22 Feb 2011 22:47:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-02/txt/msg02620.txt.bz2 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