From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27143 invoked by alias); 24 Jun 2013 21:12:21 -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 Received: (qmail 26317 invoked by uid 48); 24 Jun 2013 21:12:09 -0000 From: "carlos at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug nptl/12310] pthread_exit() in main thread segfaults when statically-linked Date: Mon, 24 Jun 2013 21:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: nptl X-Bugzilla-Version: 2.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: carlos at redhat dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-06/txt/msg00195.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=12310 Carlos O'Donell changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #10 from Carlos O'Donell --- Fixed. commit 963509c045d192b5a27891617b907fb857042f36 Author: Vladimir Nikulichev Date: Mon Jun 24 17:08:07 2013 -0400 BZ #12310: pthread_exit in static app. segfaults Static applications that call pthread_exit on the main thread segfault. This is because after a thread terminates __libc_start_main decrements __nptl_nthreads which is only defined in pthread_create. Therefore the right solution is to add a requirement to pthread_create from pthread_exit. ~~~ nptl/ 2013-06-24 Vladimir Nikulichev [BZ #12310] * pthread_exit.c: Add reference to pthread_create. --- -- You are receiving this mail because: You are on the CC list for the bug.