From owner-freebsd-amd64@FreeBSD.ORG Sun Nov 23 06:04:41 2003 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 49A4C16A4CE for ; Sun, 23 Nov 2003 06:04:41 -0800 (PST) Received: from pandora.cs.kun.nl (pandora.cs.kun.nl [131.174.33.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1329A43F93 for ; Sun, 23 Nov 2003 06:04:40 -0800 (PST) (envelope-from adridg@cs.kun.nl) Received: from localhost by pandora.cs.kun.nl via odin.cs.kun.nl [131.174.33.33] with ESMTP for id hANE4bmU009936 (8.12.10/3.58); Sun, 23 Nov 2003 15:04:38 +0100 (MET) From: Adriaan de Groot To: amd64@freebsd.org Date: Sun, 23 Nov 2003 15:04:34 +0100 User-Agent: KMail/1.5.93 References: <200311231347.38353.adridg@cs.kun.nl> In-Reply-To: <200311231347.38353.adridg@cs.kun.nl> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Multipart/Mixed; boundary="Boundary-00=_z5Lw/2I7qZkRQQX" Message-Id: <200311231504.35012.adridg@cs.kun.nl> X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Re: Ports mixing libc and libc_r X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Nov 2003 14:04:41 -0000 --Boundary-00=_z5Lw/2I7qZkRQQX Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Sunday 23 November 2003 13:47, Adriaan de Groot wrote: > ogg123 bus errors on me all the time, in code that looks perfectly > innocuous sprintf(data,"%05li:%05.2f",min,sec); > and i suspect it's because ogg123 links against both libc_r and libc: Duh, that's not a problem at all. However, sprintf() and fprintf() both have trouble printing double arguments from a thread that is not the main thread of control on amd64, as the attached little test program shows. I compile it on 5-CURRENT (well, from last week) with: beans.ebn.kun.nl$gcc -o threadtest t.c -pthread -- pub 1024D/FEA2A3FE 2002-06-18 Adriaan de Groot If the door is ajar, can we fill it with door-jamb? --Boundary-00=_z5Lw/2I7qZkRQQX--