Date: Wed, 13 Oct 2004 16:45:05 +0400 (MSD) From: Maxim Konovalov <maxim@macomnet.ru> To: Andrew Belashov <bel@orel.ru> Cc: freebsd-sparc64@freebsd.org Subject: Re: sparc64 kernel dump debug Message-ID: <20041013164334.F91691@mp2.macomnet.net> In-Reply-To: <416D2143.3080306@orel.ru> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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' <repeats 224 > > > > 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 <turnstile_lookup> 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 <turnstile_release> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041013164334.F91691>