From owner-freebsd-sparc64@FreeBSD.ORG Wed Oct 13 12:45:10 2004 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1EF7516A4CE for ; Wed, 13 Oct 2004 12:45:10 +0000 (GMT) Received: from mp2.macomnet.net (mp2.macomnet.net [195.128.64.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id D59B343D1D for ; Wed, 13 Oct 2004 12:45:06 +0000 (GMT) (envelope-from maxim@macomnet.ru) Received-SPF: pass (mp2.macomnet.net: domain of maxim@macomnet.ru designates 127.0.0.1 as permitted sender) receiver=mp2.macomnet.net; client_ip=127.0.0.1; envelope-from=maxim@macomnet.ru; Received: from localhost (9css57cz@localhost [127.0.0.1]) by mp2.macomnet.net (8.12.11/8.12.11) with ESMTP id i9DCj5du091893; Wed, 13 Oct 2004 16:45:05 +0400 (MSD) (envelope-from maxim@macomnet.ru) Date: Wed, 13 Oct 2004 16:45:05 +0400 (MSD) From: Maxim Konovalov To: Andrew Belashov In-Reply-To: <416D2143.3080306@orel.ru> Message-ID: <20041013164334.F91691@mp2.macomnet.net> References: <20041012154552.E60900@mp2.macomnet.net> <416CC9D4.3050904@orel.ru> <20041013114636.V82232@mp2.macomnet.net> <416CF4CD.4040708@orel.ru> <20041013154019.U91086@mp2.macomnet.net> <416D2143.3080306@orel.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-sparc64@freebsd.org Subject: Re: sparc64 kernel dump debug X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Oct 2004 12:45:10 -0000 On Wed, 13 Oct 2004, 16:36+0400, Andrew Belashov wrote: > Maxim Konovalov wrote: > > On Wed, 13 Oct 2004, 13:26+0400, Andrew Belashov wrote: > > > > > > > Maxim Konovalov wrote: > > > > panic: trap: fast data access mmu miss > > > > cpuid = 0 > > > > boot() called on cpu#0 > > > > Uptime: 11d1h56m16s > > > > Dumping 2048 MB (1 chunks) > > > > chunk at 0: 2147483648 bytes |\^H/\^H > > > > --- > > > > #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:233 > > > > 233 savectx(&dumppcb); > > > > doadump () at /usr/src/sys/kern/kern_shutdown.c:233 > > > > 233 savectx(&dumppcb); > > > > (kgdb) bt f > > > > #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:233 > > > > No locals. > > > > #1 0x00000000c01193c0 in boot (howto=260) > > > > at /usr/src/sys/kern/kern_shutdown.c:385 > > > > first_buf_printf = 1 > > > > #2 0x00000000c0119ccc in panic (fmt=0xc02d1138 "trap: %s") > > > > at /usr/src/sys/kern/kern_shutdown.c:541 > > > > _tid = (struct thread *) 0xfffff80039daea00 > > > > td = (struct thread *) 0xfffff80039daea00 > > > > bootopt = 260 > > > > newpanic = 1 > > > > buf = "trap: fast data access mmu miss", '\0' > > > times> > > > > #3 0x00000000c022e8c4 in trap (tf=0xff9e51c0) > > > > at /usr/src/sys/sparc64/sparc64/trap.c:370 > > > > td = (struct thread *) 0xfffff80039daea00 > > > > p = (struct proc *) 0xc033f398 > > > > sticks = 3223512960 > > > > error = -1070788296 > > > > sig = -6401600 > > > > #4 0x00000000c0038fe0 in tl1_trap () > > > > No symbol table info available. > > > > #5 0x00000000c0038fe0 in tl1_trap () > > > > > > > > > > > > ? > > > > > > > > > > Hmm... Stack corrupted? > > > > > > Please show tf[0], td[0], p[0] from frame #3. > > > > > > (kgdb) p tf[0] > > $2 = {tf_global = {0, 0, 0, 0, 0, 3224533928, 4288567680, 3224630168}, > > tf_out = {0, 0, 0, 0, 0, 6, 4288563905, 3222336224}, > > tf_fprs = 18446735279716060000, tf_fsr = 0, tf_gsr = 0, tf_level = 0, > > tf_pil = 14, tf_sfar = 0, tf_sfsr = 8, tf_tar = 0, tf_tnpc = > > 3222336148, > > tf_tpc = 3222336144, tf_tstate = 597000459783, tf_type = 99, tf_y = 0, > > tf_wstate = 18446735278587177472, tf_pad = {1, 0}} > > Please show trapped instruction: > > (kgdb) x/10i tf[0].tf_tpc > (kgdb) info line *tf[0].tf_tpc > > Show also: > > (kgdb) x/10i tf[0].tf_out[7] > (kgdb) info line *tf[0].tf_out[7] (kgdb) x/10i tf[0].tf_out[7] 0xc010f2e0 <_mtx_lock_sleep+192>: call 0xc01429a0 0xc010f2e4 <_mtx_lock_sleep+196>: mov %i0, %o0 0xc010f2e8 <_mtx_lock_sleep+200>: ldx [ %i0 + 0x38 ], %g2 0xc010f2ec <_mtx_lock_sleep+204>: cmp %g2, 4 0xc010f2f0 <_mtx_lock_sleep+208>: bne %xcc, 0xc010f260 <_mtx_lock_sleep+64> 0xc010f2f4 <_mtx_lock_sleep+212>: mov %o0, %g3 0xc010f2f8 <_mtx_lock_sleep+216>: call 0xc0142a60 0xc010f2fc <_mtx_lock_sleep+220>: mov %i0, %o0 0xc010f300 <_mtx_lock_sleep+224>: mov 4, %g1 0xc010f304 <_mtx_lock_sleep+228>: mov %i1, %g2 (kgdb) info line *tf[0].tf_out[7] Line 470 of "/usr/src/sys/kern/kern_mutex.c" starts at address 0xc010f2e0 <_mtx_lock_sleep+192> and ends at 0xc010f2e8 <_mtx_lock_sleep+200>. I guess I need to rebuild the kernel with INVARIANTS and stuff. -- Maxim Konovalov