Subject: Re: 4.99.36 instability on amd64
To: None <>
From: Paul Goyette <>
List: current-users
Date: 11/15/2007 20:17:14
On Thu, 15 Nov 2007, Paul Goyette wrote:

> panic: kernel diagnostic assertion "amap == NULL || 
> mutex_owned(&amap->amap_l)" failed: file "/usr/src/sys/uvm/uvm_fault.c", 
> line 896
> kernel: protection fault trap, code=0
> Stopped in pid 7904.1 (xterm) at netbsd:sme_events_worker + 0x111: andl 
> $-0x2, 0x9c(%r13)
> With some helpful clues from Quentin Gardner, I got a core dump file. It sure 
> takes a long time to dump 4GB of memory!  Savecore takes quite some time to 
> compress it, too, and it saves only about 10% (the .core.gz file ended up at 
> 3.6GB).  Then I gotta uncompress it, too!  Maybe I should just turn off 
> compression in the first place?  :)
Here's the backtrace, this time using the netbsd.gdb file that just 
happened to be lying around in my .../compile directory!

GNU gdb 6.5
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64--netbsd"...(no debugging symbols found)

(gdb) target kvm netbsd.4.core
#0  0xffffffff802e2ae5 in cpu_reboot ()
(gdb) symbol /usr/obj/objdir/amd64/sys/arch/amd64/compile/QUICKY/netbsd.gdb
Reading symbols from /usr/obj/objdir/amd64/sys/arch/amd64/compile/QUICKY/netbsd.gdb...done.
(gdb) bt
#0  0xffffffff802e2ae5 in cpu_reboot (howto=260, bootstr=<value optimized out>)
     at /usr/src/sys/arch/amd64/amd64/machdep.c:541
#1  0xffffffff80269e1e in panic (fmt=0xffffffff80423980 "trap")
     at /usr/src/sys/kern/subr_prf.c:246
#2  0xffffffff802e45be in trap (frame=0xffff80004eab47f0)
     at /usr/src/sys/arch/amd64/amd64/trap.c:255
#3  0xffffffff80100e22 in calltrap ()
#4  0x000000ffffffff80 in ?? ()
#5  0xffffffff8024e25e in doshutdownhooks ()
     at /usr/src/sys/kern/kern_subr.c:491
#6  0xffffffff802e29e1 in cpu_reboot (howto=260,
     bootstr=0xffff80004d24e000 <Address 0xffff80004d24e000 out of bounds>)
     at /usr/src/sys/arch/amd64/amd64/machdep.c:544
#7  0xffffffff80269e1e in panic (fmt=0xffffffff804197f5 "lock error")
     at /usr/src/sys/kern/subr_prf.c:246
#8  0xffffffff80262afd in lockdebug_abort (id=<value optimized out>,
     lock=0xffffffff805eb920, ops=0xffffffff805a9f60,
     func=<value optimized out>, msg=<value optimized out>)
     at /usr/src/sys/kern/subr_lockdebug.c:752
#9  0xffffffff802419f6 in mutex_vector_exit (mtx=0x0)
     at /usr/src/sys/kern/kern_mutex.c:703
#10 0xffffffff8024d387 in sleepq_remove (sq=<value optimized out>,
     l=0xffff80004f05e8a0) at /usr/src/sys/sys/lwp.h:376
#11 0xffffffff8024d620 in sleepq_unsleep (l=0xffff80004f05e8a0)
     at /usr/src/sys/kern/kern_sleepq.c:360
#12 0xffffffff802511c2 in suspendsched () at /usr/src/sys/kern/kern_synch.c:726
#13 0xffffffff802a0353 in vfs_shutdown () at /usr/src/sys/kern/vfs_subr.c:1618
#14 0xffffffff802e2abf in cpu_reboot (howto=<value optimized out>,
     bootstr=0xffff80004d24e000 <Address 0xffff80004d24e000 out of bounds>)
     at /usr/src/sys/arch/amd64/amd64/machdep.c:528
#15 0xffffffff80269e1e in panic (
     fmt=0xffffffff80450128 "kernel %sassertion \"%s\" failed: file \"%s\", line %d") at /usr/src/sys/kern/subr_prf.c:246
#16 0xffffffff803712dd in __kernassert (
     t=0xffff80004d24e000 <Address 0xffff80004d24e000 out of bounds>,
     f=0xffff800008f58200 "", l=3, e=0xffff800008f580e0 "")
     at /usr/src/sys/lib/libkern/__assert.c:50
#17 0xffffffff801ec181 in uvm_fault_internal (orig_map=<value optimized out>,
     vaddr=<value optimized out>, access_type=2, fault_flag=0)
     at /usr/src/sys/uvm/uvm_fault.c:896
#18 0xffffffff802e4a9c in trap (frame=0xffff80004eab4f20)
     at /usr/src/sys/arch/amd64/amd64/trap.c:488
#19 0xffffffff80100e22 in calltrap ()

|   Paul Goyette   | PGP DSS Key fingerprint: |  E-mail addresses:   |
| Customer Service | FA29 0E3B 35AF E8AE 6651 |   |
| Network Engineer | 0786 F758 55DE 53BA 7731 | |