From owner-freebsd-alpha Mon Sep 18 16:38:23 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from feral.com (feral.com [192.67.166.1]) by hub.freebsd.org (Postfix) with ESMTP id 4819437B424; Mon, 18 Sep 2000 16:38:20 -0700 (PDT) Received: from beppo.feral.com (beppo [192.67.166.79]) by feral.com (8.9.3/8.9.3) with ESMTP id QAA02169; Mon, 18 Sep 2000 16:38:19 -0700 Date: Mon, 18 Sep 2000 16:38:19 -0700 (PDT) From: Matthew Jacob Reply-To: mjacob@feral.com To: John Baldwin Cc: alpha@FreeBSD.org Subject: RE: cvs commit: src/sys/boot/alpha/common main.c In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This was the same pattern that got me. It's what had convinced me that libstand was to blame. Gee- I dunno now... On Mon, 18 Sep 2000, John Baldwin wrote: > [ moved to -alpha ] > > On 18-Sep-00 Matthew Jacob wrote: > > > >> > >> On 18-Sep-00 Matthew Jacob wrote: > >> > > >> > Really? > >> > > >> > Hmm. Thought we got this one for the moment. > >> > > >> > Are you sure you remembered to disklabel -B the new boot1? > >> > >> Yep. :( I have the ra's from the old loader that used to > >> work (although I don't have a loader.sym for that) and for > >> the new loader. I'll see what I can do with that. > > > > Does i die in loader or in boot1? > > Loader: > > 0x2001cce0 : mov a0,v0 > 0x2001cce4 : ble a2,0x2001cf34 > 0x2001cce8 : subq a0,a1,t5 > 0x2001ccec : cmpult t5,a2,t5 > 0x2001ccf0 : bne t5,0x2001ce88 > 0x2001ccf4 : addq a1,a2,a3 > 0x2001ccf8 : ldq_u t2,0(a1) > 0x2001ccfc : xor a1,a0,t0 > 0x2001cd00 : and t0,0x7,t0 > 0x2001cd04 : and a0,0x7,t1 > 0x2001cd08 : bne t0,0x2001cd70 > 0x2001cd0c : beq t1,0x2001cd24 > 0x2001cd10 : ldq_u t3,0(a0) > 0x2001cd14 : addq a2,t1,a2 > 0x2001cd18 : mskqh t2,a1,t2 > > It dies with PC = 0 at that last address > > I guess it is dereferencing a NULL pointer or something silly like > that? > > Hmm, looking in src/libc/alpha/string/bcopy.S: > > /* src & dst have same alignment */ > beq t1,bcopy_all_aligned > > ldq_u t3,0(DSTREG) > addq SIZEREG,t1,SIZEREG > mskqh t2,SRCREG,t2 > mskql t3,SRCREG,t3 > or t2,t3,t2 > > So it looks like possibly a NULL source? > > -- > > John Baldwin -- http://www.FreeBSD.org/~jhb/ > "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message