Subject: kern/31391: panic: uvm_lwp_fork: uvm_fault_wire failed: 14
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <tls@netbsd.org>
List: netbsd-bugs
Date: 09/26/2005 03:21:00
>Number:         31391
>Category:       kern
>Synopsis:       panic: uvm_lwp_fork: uvm_fault_wire failed: 14
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 26 03:21:00 +0000 2005
>Originator:     Thor Lancelot Simon
>Release:        NetBSD 3.0_BETA
>Organization:
	The NetBSD Foundation
>Environment:
System: NetBSD 3.0_BETA (FAITH) #0: Fri Sep 23 23:37:46 UTC 2005 root@ADMIN:/usr/src/sys/arch/i386/compile/FAITH
Architecture: i386
Machine: i386
>Description:
	While autobuilding the system, our dual-processor Opteron
	machine (running a 32-bit i386 kernel) paniced with panic:
	uvm_lwp_fork: uvm_fault_wire failed: 14.  Thus far we haven't
	managed to do a single successful autobuild with the machine
	running the 3.0 branch.

	The traceback:

	cpu_Debugger(c032b560,e,c0004000,2,3) at netbsd:cpu_Debugger+0x1
uvm_lwp_fork(fb02b114,fb02b744,0,0,c02bed40) at netbsd:uvm_lwp_fork+0x9e
newlwp(fb02b114,fd187808,c0000000,0,0) at netbsd:newlwp+0xc4
fork1(fb02b114,0,14,0,0) at netbsd:fork1+0x3da
sys_fork(fb02b114,ff953f64,ff953f5c,fd187670,202) at netbsd:sys_fork+0x50
syscall_plain() at netbsd:syscall_plain+0x181
--- syscall (number 2) ---
0xbdb5bb4b:
db{0}>

The output of 'ps' in the debugger:

db{0}> ps
 PID           PPID     PGRP        UID S   FLAGS LWPS          COMMAND    WAIT
>22805        27844     3248        611 2     0x2    1               sh
 635          22716     3248        611 2  0x4002    1          nbtsort  piperd
 27844        22716     3248        611 2  0x4002    1               sh  piperd
 22716         3248     3248        611 2     0x2    1               sh    wait
 3248         11202     3248        611 2  0x4002    1               sh  piperd
 12151        19091    19149        611 2  0x4002    1              cc1
 14077         9254     9254        611 2  0x4002    1             gzip
 6752          9254     9254        611 2  0x4002    1         bdftopcf  pipdwt
 19091        19149    19149        611 2  0x4002    1 arm--netbsdelf-g    wait
 19149        23611    19149        611 2  0x4002    1               sh    wait
 9254         20244     9254        611 2  0x4002    1               sh    wait
 24856        13485     5903        611 2  0x4002    1              cc1
 13485         5903     5903        611 2  0x4002    1 arm--netbsdelf-g    wait
 5903         20476     5903        611 2  0x4002    1               sh    wait
 23611        12741    12741        611 2  0x4002    1           nbmake    poll
 12741         1889    12741        611 2  0x4002    1               sh    wait
 1889         29162    29162        611 2  0x4002    1           nbmake    poll
 29162        21734    29162        611 2  0x4002    1               sh    wait
 11202        10603    10603        611 2  0x4002    1           nbmake    poll
 10603        14704    10603        611 2  0x4002    1               sh    wait
 14704        13376    13376        611 2  0x4002    1           nbmake    poll
 13376         5492    13376        611 2  0x4002    1               sh    wait
 5492          8817     8817        611 2  0x4002    1           nbmake    poll
 8817         12217     8817        611 2  0x4002    1               sh    wait
 12217         3631     3631        611 2  0x4002    1           nbmake    poll
 3631          3180     3631        611 2  0x4002    1               sh    wait
 20244         7705     7705        611 2  0x4002    1           nbmake    poll
 7705          6101     7705        611 2  0x4002    1               sh    wait
 6101         12863    12863        611 2  0x4002    1           nbmake    poll
 12863        29159    12863        611 2  0x4002    1               sh    wait
 12515         8886    10575        611 2  0x4002    1            sleep nanosle
 20476        21031    21031        611 2  0x4002    1           nbmake    poll
 21031        27677    21031        611 2  0x4002    1               sh    wait
 27677        29379    29379        611 2  0x4002    1           nbmake    poll
 29379         8826    29379        611 2  0x4002    1               sh    wait
 8826          8627     8627        611 2  0x4002    1           nbmake    poll
 8627          3180     8627        611 2  0x4002    1               sh    wait
 29159         4312     4312        611 2  0x4002    1           nbmake    poll
 4312         18862     4312        611 2  0x4002    1               sh    wait
 3180         18793    18793        611 2  0x4002    1           nbmake    poll
 18793        20146    18793        611 2  0x4002    1               sh    wait
 18862        29736    29736        611 2  0x4002    1           nbmake    poll
 29736        23135    29736        611 2  0x4002    1               sh    wait
 23135         8602     8602        611 2  0x4002    1           nbmake    poll
 8602         20146     8602        611 2  0x4002    1               sh    wait
 21734        15844    15844        611 2  0x4002    1           nbmake    poll
 15844        20146    15844        611 2  0x4002    1               sh    wait
 20146        22673    18514        611 2  0x4002    1           nbmake    poll
 22673         4834    18514        611 2  0x4002    1               sh    wait
 4834         18514    18514        611 2  0x4002    1           nbmake    wait
 18514        27306    18514        611 2  0x4002    1               sh    wait
 27306         7959    14309        611 2  0x4002    1           nbmake    poll
 7959         10433    14309        611 2  0x4002    1               sh    wait
 10433        14309    14309        611 2  0x4002    1           nbmake    wait
 14309        14249    14309        611 2  0x4002    1               sh    wait
 14249        12893    14367        611 2  0x4002    1           nbmake    poll
 12893        10862    14367        611 2  0x4002    1               sh    wait
 10862        14367    14367        611 2  0x4002    1           nbmake    wait
 14367         9248    14367        611 2  0x4002    1               sh    wait
 9248         11538    10575        611 2  0x4002    1           nbmake    poll
 12221        11762    10575        611 2   0x102    1             rcmd   netio
 11762            1    10575        611 2  0x4102    1             rcmd    poll
 11798        11834    10575        611 2  0x4002    1              rsh    poll
 11834         8886    10575        611 2     0x2    1               sh    wait
 11538         5537    10575        611 2  0x4002    1               sh    wait
 5537          6416    10575        611 2  0x4002    1               sh    wait
 6416          8886    10575        611 2     0x2    1               sh    wait
 8886          8532    10575        611 2     0x2    1               sh    wait
 8532         10667    10575        611 2     0x2    1               sh    wait
 10667        10575    10575        611 2  0x4002    1               sh    wait
 10575        10997    10575        611 2  0x5002    1               sh    wait
 10997        11035    10997        611 2  0x4002    1             bash    wait
 11035         7390    11035       1352 2  0x4002    1             tcsh   pause
 7390         10873     7390       1352 2   0x101    1     screen-4.0.2  select
 10873         9704    10873       1352 2  0x4102    1     screen-4.0.2   pause
 9704         10292     9704       1352 2  0x4002    1             tcsh   pause
 10292        10295    10295       1352 2   0x100    1             sshd  select
 10295          440    10295          0 2  0x4100    1             sshd   netio
 511              1      511          0 2  0x4002    1            getty   ttyin
 525              1      525          0 2       0    1             cron nanosle
 471              1      471          0 2   0x100    1         sendmail  select
 440              1      440          0 2       0    1             sshd  select
 412              1      412         15 2   0x100    1             ntpd   pause
 243              1      243         14 2   0x500    3            named       *
 239              1      239          0 2       0    1           racoon  select
 206              1      206          0 2       0    1          syslogd  kqread
 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

>How-To-Repeat:
	Upgrade your happy fun autobuild box to 3.0, then lose.
>Fix: