Subject: kern/32038: uvm_fault(0xe5c231c4, 0, 0, 1) -> 0xe in pipe code
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <tls@netbsd.org>
List: netbsd-bugs
Date: 11/10/2005 13:34:00
>Number:         32038
>Category:       kern
>Synopsis:       autobuild system panics with uvm_fault in pipe code
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 10 13:34:00 +0000 2005
>Originator:     Thor Lancelot Simon
>Release:        NetBSD 3.0_BETA
>Organization:
>Environment:
System: NetBSD 3.0_BETA (WORKS) #0: Sat Sep 24 00:18:08 UTC 2005
        root@ADMIN:/usr/src/sys/arch/i386/compile/WORKS
Architecture: i386
Machine: i386
>Description:
While building NetBSD in a tight loop, our autobuild systems sometimes
panic like this:

uvm_fault(0xe5c231c4, 0, 0, 1) -> 0xe
db{3}> trace
uvm_kmapent_free(c02dcd60,0,0,1,7079) at netbsd:uvm_kmapent_free+0xf4
uvm_unmap_detach(c02dcd60,0,0,d3187df0,d3187df4) at
netbsd:uvm_unmap_detach+0x3e

uvm_unmap1(c02dcba0,c0000000,c0004000,800000,c0700) at netbsd:uvm_unmap1+0xbc
uvm_km_free(c02dcba0,c0000000,4000,df200764,df200764) at
netbsd:uvm_km_free+0x39

pipe_free_kmem(df200764,10007,df200764,0,0) at netbsd:pipe_free_kmem+0x4e
pipeclose(df214cb4,df200764,d3187f3c,c01a9a59,df214cb4) at
netbsd:pipeclose+0xd2

pipe_close(df214cb4,d773b338,d3187f0c,c01af36a,0) at netbsd:pipe_close+0x1f
closef(df214cb4,d773b338,d3187f5c,d773b338,c02e8bbc) at netbsd:closef+0x109
syscall_plain() at netbsd:syscall_plain+0x181
--- syscall (number 6) ---
0xbdb35347
db{3}> ps
 PID           PPID     PGRP        UID S   FLAGS LWPS          COMMAND
WAIT
 9632         27238     1868        611 2       0    1 shle--netbsdelf-
 9840         28104     9840        611 2  0x4000    1               sh
 9350         10748     9350        611 2  0x4000    1               sh
 11981        20278     4989        611 2  0x4000    1              cc1
 20278         4989     4989        611 2  0x4000    1 shle--netbsdelf-
wait
 10748        18805    18805        611 2  0x4000    1           nbmake
poll
 27238         1868     1868        611 2  0x4000    1 shle--netbsdelf-
wait
 4989         19925     4989        611 2  0x4000    1               sh
wait
 18805         9176    18805        611 2  0x4000    1               sh
wait
 1868         25132     1868        611 2  0x4000    1               sh
wait
 19925         5371     5371        611 2  0x4000    1           nbmake
poll
 5371         28746     5371        611 2  0x4000    1               sh
wait
 25132        18703    18703        611 2  0x4000    1           nbmake
poll
 18703        29790    18703        611 2  0x4000    1               sh
wait
>28793        20371    20371        611 2  0x4000    1           nbmake
 9176         10022    10022        611 2  0x4000    1           nbmake
poll
 20371        28104    20371        611 2  0x4000    1               sh
wait
 10022        28104    10022        611 2  0x4000    1               sh
wait
 29790        12156    12156        611 2  0x4000    1           nbmake
poll
 28746         1870     1870        611 2  0x4000    1           nbmake
poll
 19763         9051    13879        611 2  0x4000    1              cc1
 12156        28104    12156        611 2  0x4000    1               sh
wait
 1870         28104     1870        611 2  0x4000    1               sh
wait
 9051         13879    13879        611 2  0x4000    1 shle--netbsdelf-
wait
 13879        26822    13879        611 2  0x4000    1               sh
wait
 1368         17340    10638        611 2  0x4000    1              cc1
 17340        10638    10638        611 2  0x4000    1 shle--netbsdelf-
wait
 9367         29654    29501        611 2  0x4000    1              cc1
 29654        29501    29501        611 2  0x4000    1 shle--netbsdelf-
wait
 10638        26822    10638        611 2  0x4000    1               sh
wait
 29501        26822    29501        611 2  0x4000    1               sh
wait
 26822         3210     3210        611 2  0x4000    1           nbmake
poll
 3210         12813     3210        611 2  0x4000    1               sh
wait
 28104        13759    13759        611 2  0x4000    1           nbmake
poll
 13759        20699    13759        611 2  0x4000    1               sh
wait
 20699        16542    16542        611 2  0x4000    1           nbmake
poll
 12813         1745     1745        611 2  0x4000    1           nbmake
poll
 16542         2121    16542        611 2  0x4000    1               sh
wait
 1745          2121     1745        611 2  0x4000    1               sh
wait
 2121           543    10787        611 2  0x4000    1           nbmake
poll
 543          29921    10787        611 2  0x4000    1               sh
wait
 29921        10787    10787        611 2  0x4000    1           nbmake
wait
 10787        26428    10787        611 2  0x4000    1               sh
wait
 26428        20130    14650        611 2  0x4000    1           nbmake
poll
 20130         1534    14650        611 2  0x4000    1               sh
wait
 1534         14650    14650        611 2  0x4000    1           nbmake
wait
 14650        26100    14650        611 2  0x4000    1               sh
wait
 26100        11060      137        611 2  0x4000    1           nbmake
poll
 11060        16067      137        611 2  0x4000    1               sh
wait
 16067          137      137        611 2  0x4000    1               sh
wait
 137          15496      137        611 2  0x4000    1               sh
wait
 15496          463      463          0 2  0x4100    1             rshd
poll
 446              1      446          0 2  0x4002    1            getty
ttyin
 439              1      439          0 2       0    1             cron
nanosle
 463              1      463          0 2       0    1            inetd
kqread
 411              1      411          0 2   0x100    1         sendmail
select
 383              1      383          0 2       0    1             sshd
select
 345              1      345         15 2   0x100    1             ntpd
pause
 208              1      208         14 2   0x500    3            named
*
 157              1      157          0 2       0    1          syslogd
 11               0        0          0 2 0x20200    1         aiodoned
aiodone
 10               0        0          0 2 0x20200    1          ioflush
syncer
 9                0        0          0 2 0x20200    1       pagedaemon
pgdaemo
 8                0        0          0 2 0x20200    1          raidio0
raidiow
 7                0        0          0 2 0x20200    1            raid0
rfwcond
 6                0        0          0 2 0x20200    1          atabus3
atath
 5                0        0          0 2 0x20200    1          atabus2
atath
 4                0        0          0 2 0x20200    1          atabus1
atath
 3                0        0          0 2 0x20200    1          atabus0
atath
 2                0        0          0 2 0x20200    1        cryptoret
crypto_
 1                0        1          0 2  0x4000    1             init
wait
 0               -1        0          0 2 0x20200    1          swapper
schedul
db{3}>

>How-To-Repeat:
Run our autobuild system for some time on multiprocessor systems.  You will
see this bug.
>Fix:
	Unknown.