From owner-cvs-all@FreeBSD.ORG Fri Nov 9 21:15:59 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 2D95C16A418; Fri, 9 Nov 2007 21:15:59 +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 27E5913C48D; Fri, 9 Nov 2007 21:15:59 +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 lA9LFwSj034286; Fri, 9 Nov 2007 21:15:58 GMT (envelope-from marius@repoman.freebsd.org) Received: (from marius@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id lA9LFwCw034285; Fri, 9 Nov 2007 21:15:58 GMT (envelope-from marius) Message-Id: <200711092115.lA9LFwCw034285@repoman.freebsd.org> From: Marius Strobl Date: Fri, 9 Nov 2007 21:15:58 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_7 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: Fri, 09 Nov 2007 21:15:59 -0000 marius 2007-11-09 21:15:58 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) lib/libthr/thread thr_spec.c Log: MFC: 1.7 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. Approved by: re (kensmith) Revision Changes Path 1.6.2.1 +5 -1 src/lib/libthr/thread/thr_spec.c