Subject: port-amiga/29020: pmap panic 2: pmap_remove_mapping: ptste == NULL
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:22:00
>Number:         29020
>Category:       port-amiga
>Synopsis:       pmap panic full mfs
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-amiga-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 20 12:22: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:
	the mfs /tmp filled up in /etc/daily before the panic:

	Jan 15 04:16:41 serpens /netbsd: uid 32767, pid 14995, command find, on /tmp: file system full
	Jan 15 04:16:42 serpens /netbsd: uid 0, pid 12916, command join, on /tmp: file system full
	panic: pmap_remove_mapping: ptste == NULL
	Stopped in pid 21922.1 (sh) at  netbsd:cpu_Debugger+0x6:        unlk    a6
	db> call_sicallback: 48312 more dynamic structures 48340 total
	trace
	cpu_Debugger(485b,20506000,4d9fcbc,4d9fcc0,17d70e) + 6
	panic(1be0e3,dffe000,e000000,1,20000) + f8
	pmap_remove_mapping(516580,dffe000,20507ffc,1) + 57a
	pmap_remove(516580,dfe0000,e000000) + da
	uvm_unmap_remove(4aaf050,0,e000000,4d9fd54) + d6
	uvm_unmap(4aaf050,0,e000000) + 92
	uvmspace_exec(4ab0e80,0,e000000,592fb28,1) + 68
	sys_execve(4ab0e80,4d9ff44,4d9ff3c) + 3ec
	syscall_plain(3b,4ab0e80,4d9ffb4,38194,38194) + 80
	syscall(3b) + 4e
	trap0() + e
	db>  show registers
	d0          0x2700      start+0x236
	d1          0x8
	d2          0x100
	d3          0x1be0e3    mem_cdevsw+0x21f
	d4          0xb9da000   emul_netbsd_aoutm68k_object+0xb7a45ec
	d5          0xdffe000   emul_netbsd_aoutm68k_object+0xddc85ec
	d6          0x18
	d7          0x24
	a0          0x29e000    emul_netbsd_aoutm68k_object+0x685ec
	a1          0
	a2          0xebfec     printf
	a3          0x516580    emul_netbsd_aoutm68k_object+0x2e0b6c
	a4          0x233f14    vm_physmem+0x4
	a5          0x131e84    uvm_rb_subtree_space
	a6          0x4d9fc60   emul_netbsd_aoutm68k_object+0x4b6a24c
	sp          0xdfff7b4   emul_netbsd_aoutm68k_object+0xddc9da0
	pc          0x14297c    cpu_Debugger+0x6
	sr          0x2000
	netbsd:cpu_Debugger+0x6:        unlk    a6

>How-To-Repeat:
	busy system plus mfs /tmp filling up
>Fix: