From owner-cvs-all@FreeBSD.ORG Tue Nov 6 21:50:44 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2BEEF16A46C; Tue, 6 Nov 2007 21:50:44 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 0748B13C4AC; Tue, 6 Nov 2007 21:50:44 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id lA6LohFU030507; Tue, 6 Nov 2007 21:50:43 GMT (envelope-from marius@repoman.freebsd.org) Received: (from marius@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id lA6LohIu030506; Tue, 6 Nov 2007 21:50:43 GMT (envelope-from marius) Message-Id: <200711062150.lA6LohIu030506@repoman.freebsd.org> From: Marius Strobl Date: Tue, 6 Nov 2007 21:50:43 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libthr/thread thr_spec.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2007 21:50:44 -0000 marius 2007-11-06 21:50:43 UTC FreeBSD src repository Modified files: lib/libthr/thread thr_spec.c Log: In _pthread_key_create() ensure that libthr is initialized. This fixes a NULL-dereference of curthread when libstdc+ initializes the exception handling globals on archs we can't use GNU TLS due to lack of support in binutils 2.15 (i.e. arm and sparc64), yet, thus making threaded C++ programs compiled with GCC 4.2.1 work again on these archs. Reviewed by: davidxu MFC after: 3 days Revision Changes Path 1.7 +5 -1 src/lib/libthr/thread/thr_spec.c