Subject: port-amiga/29019: pmap panic 1: pmap_ptpage_addref
To: None <port-amiga-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: S.P.Zeidler <spz@serpens.de>
List: netbsd-bugs
Date: 01/20/2005 12:18:00
>Number:         29019
>Category:       port-amiga
>Synopsis:       panic pmap
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-amiga-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 20 12:18:00 +0000 2005
>Originator:     S.P.Zeidler
>Release:        NetBSD 2.0
>Organization:
dis-
>Environment:
System: NetBSD serpens.de 2.0 NetBSD 2.0 (SERPENS) #0: Sun Dec 26 10:47:05 CET 2004 spz@aquila:/home/netbsd/obj.amiga/sys/arch/amiga/compile/SERPENS amiga
Architecture: m68k
Machine: amiga
>Description:
	call_sicallback: 58605 more dynamic structures 58633 total

	db> trace
	cpu_Debugger(8,1,ebfec,4effbec,17e09c) + 6
	panic(1be1ca,e,4effc74,17e368,8) + f8
	panictrap(8,1c50200,2c,4effcf8) + 36
	trapmmufault(8,1c50200,2c,4effcf8,49b0f00) + 258
	trap(8,1c50200,2c) + 24a
	pmap_ptpage_addref(2064c000) + 22
	pmap_enter(60a980,8094000,8672000,5,20) + 88
	uvm_fault(49aed98,809a000,0,1,88) + bca
	trapmmufault(88,1429000,809b212,4efffac,49b0f00) + 128
	trap(8,1429000,809b212) + 24a
	faultstkadj() + 0

	db> ps/l
	 PID         LID S     FLAGS       STRUCT LWP *            UAREA * WAIT
	>8276      >   1 7       0x4          0x49b0f00          0x4efc000
	 12582         1 2       0x4          0x49b1d80          0x4f12000
	 16717         1 3      0x84          0x49b0b00          0x4d5c000 wait
	 6748          1 2      0x84          0x49b0980          0x4dc0000
	 849           1 2     0x480          0x49b0a80          0x4ba6000
	 29397         1 2      0x84          0x49b0880          0x4b32000
	 8239          1 3      0x80          0x49b1e80          0x4c48000 pause
	 7146          1 3      0x84          0x49b1b80          0x4c70000 select
	 608           1 3      0x80          0x49b0300          0x4bd4000 netio
	 28802         1 3      0x84          0x58a8288          0x4f1c000 semwait
	 14567         1 3      0x80          0x58a9088          0x50ec000 netio
	 16255         1 3      0x84          0x58a8b88          0x507c000 netio
	 5483          1 3      0x80          0x58a9788          0x4f44000 netio
	 22915         1 2     0x484          0x58a9308          0x4fdc000
	 2576          1 2     0x480          0x58a9288          0x4fb4000
	 12474         1 3      0x80          0x58a9008          0x5030000 wait
	 19603         1 3      0x80          0x58a8e08          0x4fa4000 wait
	 24371         1 3      0x80          0x58a9688          0x4dd8000 wait
	 14097         1 2       0x4          0x58a9708          0x5008000
	 18066         1 2      0x84          0x58a9188          0x4e20000
	 17838         1 3      0x84          0x49b1d00          0x4148000 semwait
	 16249         1 2     0x480          0x49b0e80          0x4d58000
	 18631         1 3      0x80          0x58a8408          0x51c0000 ttyin
	 328           1 2     0x484          0x49b0500          0x4c42000
	 11882         1 3      0x80          0x49b0800          0x4dcc000 pause
	 6501          1 3      0x84          0x49b0480          0x4e1a000 select
	 3112          1 3      0x80          0x49b1380          0x5244000 ttyin
	 2795          1 3      0x80          0x49b1c00          0x53f0000 select
	 24055         1 3      0x80          0x49b1780          0x51c4000 netio
	 14224         1 3      0x84          0x49b0a00          0x4fd4000 semwait
	 23778         1 3      0x84          0x49b1580          0x4db4000 semwait
	 17368         1 2      0x84          0x49b1000          0x4ff0000
	 11958         1 3      0x84          0x49b1280          0x4d68000 semwait
	 26040         1 3      0x84          0x49b1180          0x4df6000 semwait
	 14715         1 3      0x84          0x58a8508          0x501c000 poll
	 10306         1 3      0x84          0x49b0d80          0x4f2c000 semwait
	 25042         1 3      0x84          0x49b1c80          0x4ff8000 semwait
	 6652          1 3      0x84          0x49b1f00          0x4fe0000 semwait
	 100           1 3      0x80          0x58a8808          0x5020000 ttyin
	 26394         1 3      0x80          0x58a8308          0x5018000 select
	 24140         1 3      0x80          0x58a8388          0x5014000 netio
	 13702         1 3      0x80          0x58a8188          0x4fcc000 ttyin
	 4503          1 3      0x80          0x58a8f08          0x4fc8000 select
	 1726          1 3      0x80          0x58a8888          0x4fc4000 netio
	 17774         1 3      0x80          0x58a8d08          0x4db0000 ttyin
	 15041         1 3      0x80          0x58a8f88          0x4d1c000 select
	 21187         1 3      0x80          0x58a9208          0x4cf4000 netio
	 28576         1 2     0x480          0x58a8d88          0x4e02000
	 28771         1 3      0x80          0x58a8c88          0x4f0c000 wait
	 24776         1 3      0x80          0x49b1800          0x4d64000 select
	 2245          1 3      0x84          0x49b1680          0x4166000 select
	 1076          1 3      0x80          0x49b1600          0x416a000 pause
	 5431          1 3      0x80          0x49b1500          0x58aa000 pause
	 5006          1 3      0x80          0x49b1200          0x58dc000 ttyin
	 4511          1 3      0x80          0x49b0d00          0x584a000 pause
	 4062          1 3      0x80          0x49b1700          0x5852000 select
	 3814          1 3      0x80          0x49b1e00          0x5840000 netio
	 828           1 3      0x80          0x49b1b00          0x55cc000 ttyin
	 1128          1 2     0x480          0x49b1a80          0x55ba000
	 842           1 3      0x80          0x49b1a00          0x55b0000 pause
	 1261          1 2     0x484          0x49b1980          0x55a6000
	 985           1 3      0x80          0x49b1900          0x558c000 pause
	 741           1 3      0x84          0x49b1880          0x5584000 select
	 1164          1 3      0x80          0x49b1480          0x5454000 ttyin
	 980           1 2     0x484          0x49b0f80          0x4ea0000
	 719           1 3      0x80          0x49b1300          0x52b6000 pause
	 475           1 3      0x84          0x49b1080          0x4ee8000 select
	 1070          1 2     0x484          0x49b0280          0x49da000
	 938           1 3      0x80          0x49b0900          0x4dea000 ttyin
	 418           1 2     0x484          0x49b1400          0x52c2000
	 620           1 2     0x484          0x49b0e00          0x4e74000
	 536           1 3      0x84          0x49b0c80          0x4e4e000 kqread
	 575           1 2      0x80          0x49b0c00          0x4e48000
	 531           1 2     0x484          0x49b0b80          0x4e3e000
	 500           1 3      0x80          0x49b0700          0x4d24000 select
	 437           1 2      0x84          0x49b0780          0x4dd4000
	 265           1 2     0x484          0x49b0680          0x4d04000
	 264           1 2     0x484          0x49b0600          0x4d00000
	 241           1 2     0x484          0x49b0580          0x4b42000
	 221           1 2      0x84          0x49b0400          0x4b2c000
	 187           1 2      0x80          0x49b0380          0x49fa000
	 5             1 2       0x4          0x49b0200          0x49c4000
	 4             1 3       0x4          0x49b0180          0x49c0000 genput
	 3             1 2       0x4          0x49b0100          0x49bc000
	 2             1 3       0x4          0x49b0080          0x49b2000 sccomp
	 1             1 3      0x80          0x49b0000          0x49a0000 wait
	 0             1 2       0x4           0x22fa80           0x294000
	 2457

	db> show registers
	d0          0x2700      start+0x236
	d1          0x8
	d2          0x100
	d3          0x1be1ca    mem_cdevsw+0x32e
	d4          0x8
	d5          0x2c
	d6          0
	d7          0x8
	a0          0x29e000    emul_netbsd_aoutm68k_object+0x6860c
	a1          0
	a2          0xebfec     printf
	a3          0x1ea200    kernel_map_store
	a4          0x49b0f00   emul_netbsd_aoutm68k_object+0x477b50c
	a5          0x5851e58   emul_netbsd_aoutm68k_object+0x561c464
	a6          0x4effbc8   emul_netbsd_aoutm68k_object+0x4cca1d4
	sp          0xdfff978   emul_netbsd_aoutm68k_object+0xddc9f84
	pc          0x14297c    cpu_Debugger+0x6
	sr          0x2000
	netbsd:cpu_Debugger+0x6:        unlk    a6

	db> show uvmexp
	Current UVM status:
	  pagesize=8192 (0x2000), pagemask=0x1fff, pageshift=13
	  11873 VM pages: 5847 active, 2955 inactive, 443 wired, 1 free
	  min  10% (25) anon, 10% (25) file, 5% (12) exec
	  max  80% (204) anon, 50% (128) file, 30% (76) exec
	  pages  6018 anon, 4436 file, 968 exec
	  freemin=32, free-target=42, inactive-target=2962, wired-max=3957
	  faults=36397793, traps=88667876, intrs=351023405, ctxswitch=59484128
	  softint=98867250, syscalls=422315199, swapins=178107, swapouts=178151
	  fault counts:
		noram=352, noanon=0, pgwait=3926, pgrele=0
		ok relocks(total)=9208792(9209303), anget(retrys)=20732753(7697868), amapcopy=2920083
		neighbor anon/obj pg=6000936/25877880, gets(lock/unlock)=9809017/1511436
		cases: anon=15040409, anoncow=3815040, obj=8714635, prcopy=1093869, przero=4478017
	  daemon and swap counts:
		woke=98395, revs=97677, scans=96275349, obscans=28783459, anscans=7753370
		busy=320, freed=637849, reactivate=37708898, deactivate=73754058
		pageouts=923496, pending=0, nswget=7719082
		nswapdev=2, nanon=76340, nanonneeded=76340 nfreeanon=68279
		swpages=65263, swpginuse=7344, swpgonly=4386 paging=0

	db> show vnode
	OBJECT 0x14297c: locked=78, pgops=0x4e560000, npages=1252917264, refs=1711939688


	VNODE flags 20680004<SYSTEM>
	mp 0x48e7 numoutput 816381954 size 0x4305022886008
	data 0x262a0004 usecount 1711939688 writecount 1115704926 holdcnt 1316310614 num
	output 816381954
	type UNKNOWN(1215823876) tag UNKNOWN(1215037510) mount 0x48e7 typedata 0x4e922740

>How-To-Repeat:
	the system is busy, with lots of network and disk activity
>Fix: