Subject: kern/14853: [rkb] panic `uvm_fault_unwire_locked: unwiring non-wired memory' on shutdown on sgimips
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rafal@mediaone.net>
List: netbsd-bugs
Date: 12/06/2001 09:15:39
>Number:         14853
>Category:       kern
>Synopsis:       panic: uvm_fault_unwire_locked: unwiring non-wired memory
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 06 06:16:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Rafal Boni
>Release:        NetBSD 1.5Z
>Organization:
Me organized? Ha!
>Environment:
System: NetBSD 1.5Z (BABYLON_SOUND_SYSTEM) #26: Mon Dec  3 09:58:28 EST 2001
    rafal@babylon-sound-system:/extra/src/sys/arch/sgimips/compile/BABYLON_SOUND_SYSTEM
Architecture: mips
Machine: sgimips
>Description:
	In the recent past 3/4 reboots/powerdowns have ended in the above
	panic.  A trace from DDB and some more info included below.

panic: uvm_fault_unwire_locked: unwiring non-wired memory
Stopped in pid 4 (reaper) at    cpu_Debugger+0x4:       jr      ra
                bdslot: nop
db> tr
cpu_Debugger+4 (8ffff000,d,0,0) ra 8809bb40 sz 0
panic+124 (881b0314,79,0,0) ra 8814a970 sz 40
uvm_fault_unwire_locked+e8 (881b0314,79,0,0) ra 8814ed20 sz 56
uvm_unmap_remove+168 (881b0314,79,0,0) ra 88152038 sz 64
uvmspace_free+120 (881b0314,79,0,0) ra 8814aeac sz 48
uvm_exit+24 (881b0314,79,0,0) ra 88083f18 sz 32
reaper+a4 (881b0314,79,0,0) ra 8806a950 sz 56
mips3_proc_trampoline+8 (881b0314,79,0,0) ra 0 sz 0
User-level: pid 4
db> ps
 PID             PPID       PGRP        UID S   FLAGS          COMMAND    WAIT
 21130              1       9267          0 3  0x4006             halt biowait
 20149              1      20149       1000 3     0x4        ssh-agent biowait
 9267               1       9267          0 3  0x4086              csh   ttyin
 163                1        163          0 3     0x4             sshd biowait
 79                 1         79          0 3     0x4          syslogd  vnlock
 6                  0          0          0 3 0x20204         aiodoned aiodone
 5                  0          0          0 3 0x20204          ioflush  syncer
>How-To-Repeat:
	Shutdown a box after some activity.  I had done a complete `make
	build' on this system before shutting it down... Another (maybe)
	relevant bit is that the disk with the source/build tree was on
	the edge of running out of space (ran into the minfree area).

>Fix:
	Unknown

>Release-Note:
>Audit-Trail:
>Unformatted:
 		kernel from cvs ~ Dec 3
 >4                  0          0          0 7 0x20204           reaper
  3                  0          0          0 3 0x20204       pagedaemon pgdaemo
  2                  0          0          0 3 0x20204          wdsc0:0  sccomp
  1                  0          1          0 3  0x4004             init biowait
  0                 -1          0          0 3 0x20204          swapper schedul
  143                1        143          0 6  0x2004             ntpd
 db> tr/u 4
 pid 4 at 0xca552000
 cpu_switch+0 (0,0,0,0) ra 88090c8c sz 0
 mi_switch+278 (0,0,0,0) ra 88090258 sz 48
 ltsleep+244 (0,0,0,0) ra 88083edc sz 48
 reaper+68 (0,0,0,0) ra 8806a950 sz 56
 mips3_proc_trampoline+8 (0,0,0,0) ra 0 sz 0
 User-level: pid 4
 db> show r
 at          0x881f0000  arpstat+0xa0
 v0                 0x1
 v1             0x63061
 a0          0x8ffff000  end+0x7e08964
 a1                 0xd
 a2                   0
 a3                   0
 t0          0xca553e60
 t1                 0x1
 t2                 0x8
 t3                   0
 t4             0x10000
 t5                 0x1
 t6                   0
 t7              0xffff
 s0          0xca553e4c
 s1               0x100
 s2          0x88cbb060  end+0xac49c4
 s3          0x5ffed000
 s4              0xd000
 s5          0x8a27c518  end+0x2085e7c
 s6          0x88cba280  end+0xac3be4
 s7          0xca553ed8
 t8          0x51eb851f
 t9          0x3011ffa0
 k0                   0
 k1                   0
 gp          0x881dd0e0  _gp
 sp          0xca553e20
 fp          0x881bd284  ffs_fifoop_opv_desc+0x14ac
 ra          0x8809bb40  panic+0x124
 sr             0x4ff03
 mdlo             0x12c
 mdhi                 0
 bad                  0
 cs                   0
 pc          0x88160324  cpu_Debugger+0x4
 cpu_Debugger+0x4:       jr      ra
                 bdslot: nop
 db> show uvmexp
 Current UVM status:
   pagesize=4096 (0x1000), pagemask=0xfff, pageshift=12
   31481 VM pages: 5406 active, 6 inactive, 546 wired, 22604 free
   min  10% (25) anon, 10% (25) vnode, 5% (12) vtext
   pages  791 anon, 3704 vnode, 1441 vtext
   freemin=64, free-target=85, inactive-target=9139, wired-max=10493
   faults=25893896, traps=25593027, intrs=12203024, ctxswitch=2350158
   softint=1985239, syscalls=39953912, swapins=0, swapouts=0
   fault counts:
     noram=8, noanon=0, pgwait=0, pgrele=0
     ok relocks(total)=43254(43254), anget(retrys)=3212468(450), amapcopy=1956442
     neighbor anon/obj pg=1709753/33003335, gets(lock/unlock)=8888427/42805
     cases: anon=2435686, anoncow=776782, obj=7866515, prcopy=1021911, przero=12923949
   daemon and swap counts:
     woke=485, revs=470, scans=262180, obscans=128194, anscans=837
     busy=0, freed=0, reactivate=124176, deactivate=258645
     pageouts=60, pending=60, nswget=450
     nswapdev=1, nanon=62272, nanonneeded=62272 nfreeanon=61437
     swpages=32767, swpginuse=101, swpgonly=44 paging=0