From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7233 invoked by alias); 11 Dec 2010 23:15:22 -0000 Received: (qmail 7224 invoked by uid 22791); 11 Dec 2010 23:15:21 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,T_HK_NAME_MR_MRS X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 11 Dec 2010 23:15:15 +0000 From: "mrs@mythic-beasts.com" To: glibc-bugs@sources.redhat.com Subject: [Bug nptl/12310] New: pthread_exit() in main thread segfaults when statically-linked X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: nptl X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: mrs@mythic-beasts.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: drepper.fsp at gmail dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Tue, 14 Dec 2010 12:41:00 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2010-12/txt/msg00027.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=12310 Summary: pthread_exit() in main thread segfaults when statically-linked Product: glibc Version: 2.11 Status: NEW Severity: minor Priority: P2 Component: nptl AssignedTo: drepper.fsp@gmail.com ReportedBy: mrs@mythic-beasts.com Calling pthread_exit() in the main thread segfaults in a statically-linked executable. $ cat pthread-exit-main.c #include int main() { pthread_exit(NULL); return 1; } $ gcc -Wall pthread-exit-main.c -o pthread-exit-main $ ./pthread-exit-main $ echo $? 0 $ gcc -Wall pthread-exit-main.c -o pthread-exit-main -static -lpthread $ ./pthread-exit-main Segmentation fault $ gdb ./pthread-exit-main (gdb) run Starting program: /home/mseaborn/test/pthread-exit-main Program received signal SIGSEGV, Segmentation fault. 0x0000000000000000 in ?? () This was with glibc 2.11.1 on Ubuntu Lucid. I have also seen this with glibc 2.9. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.