From owner-freebsd-current@FreeBSD.ORG Fri Aug 4 19:55:50 2006 Return-Path: X-Original-To: current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 64DC716A4DE; Fri, 4 Aug 2006 19:55:50 +0000 (UTC) (envelope-from jasone@FreeBSD.org) Received: from lh.synack.net (lh.synack.net [204.152.188.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 08AD643D45; Fri, 4 Aug 2006 19:55:50 +0000 (GMT) (envelope-from jasone@FreeBSD.org) Received: by lh.synack.net (Postfix, from userid 100) id D4BC05E4906; Fri, 4 Aug 2006 12:55:49 -0700 (PDT) Received: from [192.168.168.201] (coeur_dalene_cuda1_id-eacb02-00-crdlid-70-36-10-195.losaca.adelphia.net [70.36.10.195]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lh.synack.net (Postfix) with ESMTP id 2CFE85E48C9; Fri, 4 Aug 2006 12:55:48 -0700 (PDT) Message-ID: <44D3A642.1000905@FreeBSD.org> Date: Fri, 04 Aug 2006 12:55:46 -0700 From: Jason Evans User-Agent: Thunderbird 1.5.0.5 (X11/20060726) MIME-Version: 1.0 To: Peter Grehan References: <44D12AC0.90009@sippysoft.com> <20060802230803.GA32778@troutmask.apl.washington.edu> <44D13BC7.8010309@FreeBSD.org> <44D168A8.1060201@freebsd.org> <44D173B7.6040302@FreeBSD.org> <44D1757D.4010103@ptree32.com.au> In-Reply-To: <44D1757D.4010103@ptree32.com.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.0.6 (2005-12-07) on lh.synack.net X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=RCVD_IN_SORBS_DUL autolearn=no version=3.0.6 Cc: Maxim Sobolev , "current@freebsd.org" , Peter Grehan , Steve Kargl , freebsd-ppc@FreeBSD.org Subject: Re: Looks like threading is b0rken on FreeBSD/powerpc X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Aug 2006 19:55:50 -0000 Peter Grehan wrote: >> But libpthread works in 6.0. What's the difference? > > jemalloc. From the backtrace, t's doing a TLS allocation, where I'm > certain phkmalloc didn't do anything like that. Indeed, jemalloc does add a dependency on TLS for PIC versions, though it can be configured to run (more slowly) without TLS, as Marcel pointed out. This appears to be a bug in the TLS implementation, rather than in jemalloc; the appropriate fix is to make TLS work. Jason