From owner-freebsd-amd64@FreeBSD.ORG Tue Feb 24 12:11:41 2004 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 E0CBE16A4CE for ; Tue, 24 Feb 2004 12:11: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 E547F43D46 for ; Tue, 24 Feb 2004 12:11:40 -0800 (PST) (envelope-from adridg@cs.kun.nl) Received: from odin.cs.kun.nl [131.174.33.33] (helo=localhost) by pandora.cs.kun.nl (8.12.10/3.64) with ESMTP id i1OKBdUY024581 for ; Tue, 24 Feb 2004 21:11:39 +0100 (MET) From: Adriaan de Groot To: freebsd-amd64@freebsd.org Date: Tue, 24 Feb 2004 21:11:33 +0100 User-Agent: KMail/1.6.51 References: <200402171129.42641.peter@wemm.org> <200402181230.11078.adridg@cs.kun.nl> In-Reply-To: <200402181230.11078.adridg@cs.kun.nl> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200402242111.39048.adridg@cs.kun.nl> Subject: Re: The return of threading errors in ogg123 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: Tue, 24 Feb 2004 20:11:42 -0000 =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 18 February 2004 12:30, Adriaan de Groot wrote: > libc_r seems solid as a rock; libpthread can play ok for a while but seems > to bail as soon as there is some load on the system. libpth doesn't work = at > all, missing a pthread_push_create symbol. Any gdb trickery I can use on > the core files to get more useful information out of them over the short > bt? ogg123 with libc_r played 1500 tracks without a hitch (all ripped from the = CDs=20 off my self, thanks); with libpthread (ie. kse) it takes a little prodding,= =20 but then it dumps core: Playing: TomCochrane/02-LoveUnderFire.ogg Ogg Vorbis stream: 2 channel, 44100 Hz Title: Love Under Fire Artist: Tom Cochrane Bus error (core dumped)5] of 04:48.17 (119.7 kbps) Output Buffer 96.9% (still with the same FreeBSD beans.ebn.kun.nl 5.2-CURRENT FreeBSD 5.2-CURRE= NT=20 #0: Mon Feb 16 08:12:04 CET 2004 =20 root@beans.ebn.kun.nl:/usr/obj/mnt/sys/CURRENT/src/sys/GENERIC amd64 ) It crashes here: #0 0x0000000200f19320 in pthread_testcancel () from /usr/lib/libpthread.so= =2E1 with this disassembly: 0x0000000200f19307 : nop 0x0000000200f19308 : mov 1085185(%rip),%rcx = =20 # 0x201022210 0x0000000200f1930f : jmpq *%ecx 0x0000000200f19311 : nop 0x0000000200f19312 : nop 0x0000000200f19313 : nop 0x0000000200f19314 : mov $0x17e,%rax 0x0000000200f1931b : mov %rcx,%r10 0x0000000200f1931e : syscall 0x0000000200f19320 : jb 0x200f19308=20 0x0000000200f19322 : retq 0x0000000200f19323 : nop 0x0000000200f19324 : mov 1085157(%rip),%rcx Not a place that looks like erroring. However: (gdb) print $rsp $1 =3D (void *) 0x51eeb8 (gdb) print $rbp $2 =3D (void *) 0x51ef80 looks like the stack-16-alignment has gotten broken again somewhere. =2D --=20 pub 1024D/FEA2A3FE 2002-06-18 Adriaan de Groot Would you like a freem? =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAO6/7dqzuAf6io/4RAumYAJ9+2AblgDOTXG6x1yC9ZH2UJEqvzgCglwiv illIjGyTEEG0FzCtx6WWGrw=3D =3DyCGZ =2D----END PGP SIGNATURE-----