From owner-freebsd-amd64@FreeBSD.ORG Sat Mar 13 13:39:35 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 3C53C16A4CE for ; Sat, 13 Mar 2004 13:39:35 -0800 (PST) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 088C643D1F for ; Sat, 13 Mar 2004 13:39:35 -0800 (PST) (envelope-from peter@evilpete.dyndns.org) Received: from fw.wemm.org (canning.wemm.org [192.203.228.65]) by canning.wemm.org (Postfix) with ESMTP id AC3C12A92B for ; Sat, 13 Mar 2004 13:39:34 -0800 (PST) (envelope-from peter@overcee.wemm.org) Received: from overcee.wemm.org (overcee.wemm.org [10.0.0.3]) by fw.wemm.org (Postfix) with ESMTP id DDD6DE296 for ; Sat, 13 Mar 2004 13:39:33 -0800 (PST) (envelope-from peter@overcee.wemm.org) Received: from overcee.wemm.org (localhost [127.0.0.1]) by overcee.wemm.org (8.12.11/8.12.10) with ESMTP id i2DLcxTM007092; Sat, 13 Mar 2004 13:38:59 -0800 (PST) (envelope-from peter@overcee.wemm.org) Received: from localhost (localhost [[UNIX: localhost]]) by overcee.wemm.org (8.12.11/8.12.10/Submit) id i2DLcwYW007091; Sat, 13 Mar 2004 13:38:58 -0800 (PST) (envelope-from peter) From: Peter Wemm To: freebsd-amd64@freebsd.org Date: Sat, 13 Mar 2004 13:38:56 -0800 User-Agent: KMail/1.6 References: <200402181230.11078.adridg@cs.kun.nl> <200402242111.39048.adridg@cs.kun.nl> In-Reply-To: <200402242111.39048.adridg@cs.kun.nl> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200403131338.57718.peter@wemm.org> cc: Adriaan de Groot 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: Sat, 13 Mar 2004 21:39:35 -0000 On Tuesday 24 February 2004 12:11 pm, Adriaan de Groot wrote: > 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 off my self, thanks); with libpthread (ie. kse) it takes > a little prodding, 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-CURRENT #0: Mon Feb 16 08:12:04 CET 2004 > 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.1 > > with this disassembly: > > 0x0000000200f19307 : nop > 0x0000000200f19308 : mov > 1085185(%rip),%rcx # 0x201022210 > 0x0000000200f1930f : jmpq *%ecx > 0x0000000200f19311 : nop > 0x0000000200f19312 : nop > 0x0000000200f19313 : nop > 0x0000000200f19314 : mov $0x17e,%rax > 0x0000000200f1931b : mov %rcx,%r10 > 0x0000000200f1931e : syscall > 0x0000000200f19320 : jb 0x200f19308 > > 0x0000000200f19322 : retq > 0x0000000200f19323 : nop > 0x0000000200f19324 : mov > 1085157(%rip),%rcx > > > Not a place that looks like erroring. However: > > (gdb) print $rsp > $1 = (void *) 0x51eeb8 > (gdb) print $rbp > $2 = (void *) 0x51ef80 > > looks like the stack-16-alignment has gotten broken again somewhere. Are you still having problems with this? I've been trying to reproduce it for a while, but I'm having no success. I figure the best way to make sure I can see it in action is to make a post saying I can't reproduce it. :-) I'm using SCHED_ULE fwiw. -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5