Subject: port-macppc/13145: Trap during compile
To: None <gnats-bugs@gnats.netbsd.org>
From: None <offe@localnet.sh>
List: netbsd-bugs
Date: 06/08/2001 22:09:40
>Number:         13145
>Category:       port-macppc
>Synopsis:       Trap during compile
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    port-macppc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 08 20:08:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Olof Johansson
>Release:        NetBSD-current as of Jun 7 (new powerpc pmap)
>Organization:
>Environment:
	PowerWave 604e/180, 2.0+0.5GB disk, 64MB mem. Userspace as of Jun 4 or so, Kernel as of Jun 7.
System: NetBSD powerpc 1.5W NetBSD 1.5W (POWERMAC) #0: Thu Jun 7 22:00:24 CDT 2001 root@powerpc:/usr/src/sys/arch/macppc/compile/POWERMAC macppc
Architecture: powerpc
Machine: macppc
>Description:
trap type 300 at 14c620
Stopped in pid 1017 (make) at vgonel+0xd0:  lwz r9, r11, 0x64,
db> trace
at getnewvnode+25c
at ffs_vget+84
at ufs_lookup+bf4
at lookup+354
at namei+374
at vn_open+1ec
at sys_open+c0
at trap+35c
at ddblow+e0
at end+441669bc8
....


After rebooting, I ended up with a new panic:

panic: kernel diagnostic assertion "umap->refcount != 0" failed: file "../../../../uvm/uvm_bio.c", line 236

Traceback:

panic+134
__assert+2c
ubc_init+374
uvm_fault+71c
trap+178
ddblow+e0
end+51de80
pool+put+c
ffre+78
closef+294
fdrelease+b4
sys_close+2c
trap+35c
ddblow+e0
end+164d39c
...


I've only had the second crash once, while the other one has reoccurred a few times.

The system ran fine with 1.5.1-BETA2 while I was compiling and installing -current,
which makes me suspect the new powerpc pmap or other recent change.

>How-To-Repeat:
I've been able to reproduce the problem by doing various compiles. Sometimes
it takes a while for it to happen, at other times not. First occurrance was
while compiling the nbench pkg. I've only had the second panic above one.

If anyone needs console/debugger access to debug this, let me know.
>Fix:
I haven't debugged the problem.
>Release-Note:
>Audit-Trail:
>Unformatted: