NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/38165: pipe(2) failure, then uvm_fault(0x*, 0, 1) -> 0xe (kernel: supervisor trap page fault, code=0)



>Number:         38165
>Category:       kern
>Synopsis:       pipe(2) failure, then uvm_fault(0x*, 0, 1) -> 0xe (kernel: 
>supervisor trap page fault, code=0)
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 04 19:20:00 +0000 2008
>Originator:     Greg A. Woods
>Release:        NetBSD 4.0_STABLE 2008/02/18
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:
System: NetBSD 4.0_STABLE GENERIC.MP
Architecture: i386
Machine: i386
>Description:

        After exhibiting strange pipe(2) failures suggesting that
        uvm_km_alloc() was failing despite sysctl reporting that
        kern.pipe.kvasize was never even approaching close to
        kern.pipe.maxkvasz I then tried to trigger increased pipe()
        allocation by running a long chain of cat processes.

                cat|cat|cat|cat|cat|cat|cat|cat|cat|cat|cat

        The first few times with just a few (4-8?) processes all was
        well, but then with a larger the system crashed as follows:

[Tue Mar  4 13:16:25 2008]uvm_fault(0xd98b1e80, 0, 1) -> 0xe
[Tue Mar  4 13:16:25 2008]kernel: supervisor trap page fault, code=0
[Tue Mar  4 13:16:25 2008]Stopped in pid 3279.1 (xterm) at        
netbsd:ttyinfo+0x10b:   cmpb    $0,0x3b4(%eax)
[Tue Mar  4 13:16:25 2008]db{0}> trace
[Tue Mar  4 13:16:39 2008]ttyinfo(d0026240,1,60e,202,c0a67274) at 
netbsd:ttyinfo+0x10b
[Tue Mar  4 13:16:39 2008]ttyinput_wlock(d0026248,c098a228,2ba,d98b1e80,0) at 
netbsd:ttyinput_wlock+0xbab
[Tue Mar  4 13:16:39 2008]ttyinput(14,d0026240,316,0,d98b0ed4) at 
netbsd:ttyinput+0x5a
[Tue Mar  4 13:16:39 2008]ptcwrite(601,d984aba0,110,20002,d9391a4c) at 
netbsd:ptcwrite+0x1fd
[Tue Mar  4 13:16:39 2008]spec_write(d984ab28,10002,2b4,202,0) at 
netbsd:spec_write+0xba
[Tue Mar  4 13:16:39 2008]VOP_WRITE(d9391a4c,d984aba0,110,d0020aa8,d98b1f40) at 
netbsd:VOP_WRITE+0x31
[Tue Mar  4 13:16:39 2008]vn_write(d97a61b0,d97a61dc,d984aba0,d0020aa8,1) at 
netbsd:vn_write+0x113
[Tue Mar  4 13:16:39 2008]dofilewrite(d98b0ed4,4,d97a61b0,83ce980,1) at 
netbsd:dofilewrite+0xac
[Tue Mar  4 13:16:39 2008]sys_write(d98b0ed4,d984ac48,d984ac68,0,c67c403c) at 
netbsd:sys_write+0xc9
[Tue Mar  4 13:16:39 2008]syscall_plain() at netbsd:syscall_plain+0x1a8
[Tue Mar  4 13:16:39 2008]--- syscall (number 4) ---
[Tue Mar  4 13:16:39 2008]0x81ae38b:
[Tue Mar  4 13:16:39 2008]db{0}> call simple_lock_dump
[Tue Mar  4 13:17:15 2008]all simple locks:
[Tue Mar  4 13:17:15 2008]0xc0a67274 CPU 0 
/rest/work/woods/m-NetBSD-4/sys/kern/kern_lock.c:1550
[Tue Mar  4 13:17:15 2008]0xd0026248 CPU 0 
/rest/work/woods/m-NetBSD-4/sys/kern/tty.c:698
[Tue Mar  4 13:17:15 2008]0x80000000
[Tue Mar  4 13:17:15 2008]db{0}> ps
[Tue Mar  4 13:17:22 2008] PID           PPID     PGRP        UID S   FLAGS 
LWPS          COMMAND    WAIT
[Tue Mar  4 13:17:22 2008] 13242          447       15          0 2  0x4000    
1            sleep nanosle
[Tue Mar  4 13:17:22 2008] 12256        11114    12256       1000 2  0x4002    
1            sleep nanosle
[Tue Mar  4 13:17:22 2008] 19860         6444    19860       1000 2  0x4001    
1           aspell  piperd
[Tue Mar  4 13:17:22 2008] 21966          193    21966       1000 2  0x4002    
1             tail  kqread
[Tue Mar  4 13:17:22 2008] 18628         8374    18628       1000 2  0x4003    
1              ksh   ttyin
[Tue Mar  4 13:17:22 2008] 8374           551      551          0 2  0x4100    
1          rlogind    poll
[Tue Mar  4 13:17:22 2008] 20168        13726    20168          0 2  0x4002    
1              ksh   ttyin
[Tue Mar  4 13:17:22 2008] 13726         9083    13726       1000 2  0x4002    
1              ksh   pause
[Tue Mar  4 13:17:22 2008] 9083         13974     9083       1000 2  0x4000    
1            xterm  select
[Tue Mar  4 13:17:22 2008] 13974          551      551          0 2  0x4100    
1             rshd    poll
[Tue Mar  4 13:17:22 2008] 11114        11046    11114       1000 2  0x4002    
1              ksh   pause
[Tue Mar  4 13:17:22 2008] 11046         9563    11046       1000 2  0x4000    
1            xterm  select
[Tue Mar  4 13:17:22 2008] 9563           551      551          0 2  0x4100    
1             rshd    poll
[Tue Mar  4 13:17:22 2008] 6860          6689     6860       1000 2  0x4000    
1      emacsserver  select
[Tue Mar  4 13:17:22 2008] 6689          8946     6689       1000 2  0x4000    
1            emacs  select
[Tue Mar  4 13:17:22 2008] 8946           551      551          0 2  0x4100    
1             rshd    poll
[Tue Mar  4 13:17:22 2008] 8279          4753     8279          0 2  0x4002    
1              ksh   ttyin
[Tue Mar  4 13:17:22 2008] 5978          6654     5978       1000 2  0x4002    
1              ksh   ttyin
[Tue Mar  4 13:17:22 2008] 6654          5520     6654       1000 2  0x4000    
1            xterm  select
[Tue Mar  4 13:17:22 2008] 5520           551      551          0 2  0x4100    
1             rshd    poll
[Tue Mar  4 13:17:22 2008] 5529          6444     5529       1000 2  0x4000    
1      emacsserver  select
[Tue Mar  4 13:17:22 2008] 6444          5279     6444       1000 2  0x4000    
1            emacs  select
[Tue Mar  4 13:17:22 2008] 5279           551      551          0 2  0x4100    
1             rshd    poll
[Tue Mar  4 13:17:22 2008] 3711          3279     3711       1000 2  0x4002    
1              ksh   pause
[Tue Mar  4 13:17:22 2008]>3279          3240     3279       1000 2  0x4000    
1            xterm
[Tue Mar  4 13:17:22 2008] 3450          4753     3450       1000 2  0x4002    
1            xload    poll
[Tue Mar  4 13:17:22 2008] 3240           551      551          0 2  0x4100    
1             rshd    poll
[Tue Mar  4 13:17:22 2008] 4753          4386     4753       1000 2  0x4002    
1              ksh   pause
[Tue Mar  4 13:17:22 2008] 4386          4821     4386       1000 2  0x4000    
1            xterm  select
[Tue Mar  4 13:17:22 2008] 4821           551      551          0 2  0x4100    
1             rshd    poll
[Tue Mar  4 13:17:22 2008] 195              1      195          0 2  0x4002    
1            getty   ttyin
[Tue Mar  4 13:17:22 2008] 194              1      194          0 2  0x4002    
1            getty   ttyin
[Tue Mar  4 13:17:22 2008] 193              1      193       1000 2  0x4002    
1              ksh   pause
[Tue Mar  4 13:17:22 2008] 192              1      192          0 2  0x4002    
1            getty   ttyin
[Tue Mar  4 13:17:22 2008] 1894             1     1894          0 2  0x4002    
1            getty   ttyin
[Tue Mar  4 13:17:22 2008] 2422             1     2422          0 2  0x4002    
1              ksh   ttyin
[Tue Mar  4 13:17:22 2008] 1834             1     1834          0 2  0x4002    
1            getty   ttyin
[Tue Mar  4 13:17:22 2008] 2354             1     2354          0 2  0x4002    
1            getty   ttyin
[Tue Mar  4 13:17:22 2008] 2297             1     2297          0 2       0    
1             afpd  select
[Tue Mar  4 13:17:22 2008] 2352             1     2352          0 2   0x400    
3          apcupsd       *
[Tue Mar  4 13:17:22 2008] 1763             1     1763          0 2       0    
1             cron nanosle
[Tue Mar  4 13:17:22 2008] 551              1      551          0 2       0    
1            inetd  kqread
[Tue Mar  4 13:17:22 2008] 1764          1854     2197        111 2  0x4001    
1          rrdtool  piperd
[Tue Mar  4 13:17:22 2008] 1854             1     2197        111 2   0x100    
1         lighttpd    poll
[Tue Mar  4 13:17:22 2008] 1707             1     1707          0 2       0    
1             papd  select
[Tue Mar  4 13:17:22 2008] 1454          1917     1917          0 2     0x1    
1        saslauthd   lockf
[Tue Mar  4 13:17:22 2008] 1556          1917     1917          0 2     0x1    
1        saslauthd   lockf
[Tue Mar  4 13:17:23 2008] 2071          1917     1917          0 2     0x1    
1        saslauthd   lockf
[Tue Mar  4 13:17:23 2008] 1980          1917     1917          0 2     0x1    
1        saslauthd   lockf
[Tue Mar  4 13:17:23 2008] 1917             1     1917          0 2     0x1    
1        saslauthd  netcon
[Tue Mar  4 13:17:23 2008] 1517             1     1516          0 2       0    
1            snmpd  select
[Tue Mar  4 13:17:23 2008] 617              1      617          0 2       0    
1        snmptrapd  select
[Tue Mar  4 13:17:23 2008] 1811             1     1811          0 2       0    
1            sshd2  select
[Tue Mar  4 13:17:23 2008] 1874             1     1874          0 2       0    
1         timelord   netio
[Tue Mar  4 13:17:23 2008] 232              1      232          0 2  0x1000    
1           atalkd  select
[Tue Mar  4 13:17:23 2008] 410              1      410         19 2   0x100    
1            rwhod    poll
[Tue Mar  4 13:17:23 2008] 175              1      175         15 2   0x100    
1             ntpd   pause
[Tue Mar  4 13:17:23 2008] 629              1      629          0 2       0    
1              lpd    poll
[Tue Mar  4 13:17:23 2008] 447              1       15          0 2  0x4002    
1               sh    wait
[Tue Mar  4 13:17:23 2008] 598              1       15          0 2       0    
1         arpwatch     bpf
[Tue Mar  4 13:17:23 2008] 101              1      101          0 2       0    
1        rpc.lockd  select
[Tue Mar  4 13:17:23 2008] 97               1       97          0 2 0xa0008    
1        rpc.statd  select
[Tue Mar  4 13:17:23 2008] 96             504      504          0 2       0    
1             nfsd    nfsd
[Tue Mar  4 13:17:23 2008] 592            504      504          0 2       0    
1             nfsd    nfsd
[Tue Mar  4 13:17:23 2008] 567            504      504          0 2       0    
1             nfsd    nfsd
[Tue Mar  4 13:17:23 2008] 473            504      504          0 2       0    
1             nfsd    nfsd
[Tue Mar  4 13:17:23 2008] 504              1      504          0 2       0    
1             nfsd    poll
[Tue Mar  4 13:17:23 2008] 497              1      497          0 2       0    
1           mountd  select
[Tue Mar  4 13:17:23 2008] 411              0        0          0 2 0x20200    
1            nfsio  nfsidl
[Tue Mar  4 13:17:23 2008] 350              0        0          0 2 0x20200    
1            nfsio  nfsidl
[Tue Mar  4 13:17:23 2008] 412              0        0          0 2 0x20200    
1            nfsio  nfsidl
[Tue Mar  4 13:17:23 2008] 435              0        0          0 2 0x20200    
1            nfsio  nfsidl
[Tue Mar  4 13:17:23 2008] 413              1      413          0 2       0    
1        mount_mfs  mfsidl
[Tue Mar  4 13:17:23 2008] 351              1      351          0 2       0    
1          rpcbind    poll
[Tue Mar  4 13:17:23 2008] 314              1      314          0 2       0    
1          syslogd
[Tue Mar  4 13:17:23 2008] 52               0        0          0 2 0x20200    
1          physiod physiod
[Tue Mar  4 13:17:23 2008] 14               0        0          0 2 0x20200    
1         aiodoned aiodone
[Tue Mar  4 13:17:23 2008] 13               0        0          0 2 0x20200    
1          ioflush  syncer
[Tue Mar  4 13:17:23 2008] 12               0        0          0 2 0x20200    
1       pagedaemon pgdaemo
[Tue Mar  4 13:17:23 2008] 11               0        0          0 2 0x20200    
1        atapibus0  sccomp
[Tue Mar  4 13:17:23 2008] 10               0        0          0 2 0x20200    
1        cryptoret crypto_
[Tue Mar  4 13:17:23 2008] 9                0        0          0 2 0x20200    
1       usbtask-dr  usbtsk
[Tue Mar  4 13:17:23 2008] 8                0        0          0 2 0x20200    
1       usbtask-hc  usbtsk
[Tue Mar  4 13:17:23 2008] 7                0        0          0 2 0x20200    
1             usb0  usbevt
[Tue Mar  4 13:17:23 2008] 6                0        0          0 2 0x20200    
1          atabus1   atath
[Tue Mar  4 13:17:23 2008] 5                0        0          0 2 0x20200    
1          atabus0   atath
[Tue Mar  4 13:17:23 2008] 4                0        0          0 2 0x20200    
1            ipmi0 ipmi_po
[Tue Mar  4 13:17:23 2008] 3                0        0          0 2 0x20200    
1             apm0   apmev
[Tue Mar  4 13:17:23 2008] 2                0        0          0 2 0x20200    
1           sysmon smtaskq
[Tue Mar  4 13:17:23 2008] 1                0        1          0 2  0x4001    
1             init    wait
[Tue Mar  4 13:17:23 2008] 0               -1        0          0 2 0x20200    
1          swapper schedul
[Tue Mar  4 13:17:23 2008] 16972         3711    13609       1000 5  0x6002    
0              cat       *
[Tue Mar  4 13:17:23 2008] 13778         37        cat       *
[Tue Mar  4 13:17:23 2008] 15941         3711    13609       1000 5  0x6002    
0              cat       *
[Tue Mar  4 13:17:23 2008] 23164         3711    13609       1000 5  0x6002    
0              cat       *
[Tue Mar  4 13:17:23 2008] 12097         3711    13609       1000 5  0x6002    
0              cat       *
[Tue Mar  4 13:17:23 2008] 8687          3711    13609       1000 5  0x6002    
0              cat       *
[Tue Mar  4 13:17:23 2008] 13609         3711    13609       1000 5  0x6002    
0              cat       *
[Tue Mar  4 13:17:23 2008] 12170         3711    13609       1000 5  0x6002    
0              cat       *
[Tue Mar  4 13:17:23 2008] 17652         3711     3711       1000 5  0x6002    
0             date       *
[Tue Mar  4 13:17:23 2008]db{0}> reboot
[Tue Mar  4 13:17:32 2008]syncing disks... 
[Tue Mar  4 13:17:34 2008]switching with held simple_lock 0xd0026248 CPU 0 
/rest/work/woods/m-NetBSD-4/sys/kern/tty.c:698
[Tue Mar  4 13:17:34 2008]copyright(0,0,c6798800,d98b0ed4,0) at 0xc098778c
[Tue Mar  4 13:17:34 
2008]cpu_info_primary(c5eb6f84,c09cce38,c09c9fc0,c09f9c80,0) at 0xc09f9cc0
[Tue Mar  4 13:17:34 2008]Stopped in pid 3279.1 (xterm) at        
netbsd:cpu_Debugger+0x4:        popl    %ebp
[Tue Mar  4 13:17:34 2008]db{0}> call simple_lock_dump
[Tue Mar  4 13:17:42 2008]all simple locks:
[Tue Mar  4 13:17:42 2008]0xd0026248 CPU 0 
/rest/work/woods/m-NetBSD-4/sys/kern/tty.c:698
[Tue Mar  4 13:17:42 2008]0xc09d9bf4 CPU 0 
/rest/work/woods/m-NetBSD-4/sys/kern/kern_synch.c:903
[Tue Mar  4 13:17:42 2008]0x80000000
[Tue Mar  4 13:17:42 2008]db{0}> trace
[Tue Mar  4 13:17:47 
2008]cpu_Debugger(c09d9bf4,c0930224,d984a2c8,c0432f31,c09d9bf4) at 
netbsd:cpu_Debugger+0x4
[Tue Mar  4 13:17:47 
2008]simple_lock_switchcheck(c09d9bf4,c092fe19,c098778c,3a7,2) at 
netbsd:simple_lock_switchcheck+0x1b
[Tue Mar  4 13:17:47 2008]mi_switch(d98b0ed4,0,387,c6796f00,0) at 
netbsd:mi_switch+0x51
[Tue Mar  4 13:17:47 2008]preempt(1,c098b864,4c1,c095e5fd,d984a350) at 
netbsd:preempt+0x85
[Tue Mar  4 13:17:47 2008]genfs_do_putpages(f49f900c,0,0,0,0) at 
netbsd:genfs_do_putpages+0x9ae
[Tue Mar  4 13:17:47 
2008]genfs_putpages(d984a4cc,c0985f7c,398,c07c4a60,f49f900c) at 
netbsd:genfs_putpages+0x3d
[Tue Mar  4 13:17:47 2008]VOP_PUTPAGES(f49f900c,0,0,0,0) at 
netbsd:VOP_PUTPAGES+0x40
[Tue Mar  4 13:17:47 
2008]ffs_fsync(d984a5b4,f49f900c,d984a5d8,c047c332,f49f900c) at 
netbsd:ffs_fsync+0x41e
[Tue Mar  4 13:17:47 2008]VOP_FSYNC(f49f900c,d0020aa8,0,0,0) at 
netbsd:VOP_FSYNC+0x49
[Tue Mar  4 13:17:47 2008]ffs_sync(c6b53000,2,d0020aa8,d98b0ed4,c0100d5e) at 
netbsd:ffs_sync+0x107
[Tue Mar  4 13:17:47 2008]sys_sync(d98b0ed4,0,0,c017e9e0,0) at 
netbsd:sys_sync+0x130
[Tue Mar  4 13:17:47 2008]vfs_shutdown(20,d983b9bc,0,d98b0ed4,0) at 
netbsd:vfs_shutdown+0x6a
[Tue Mar  4 13:17:47 2008]cpu_reboot(0,0,d984a738,c04479fc,c07abc20) at 
netbsd:cpu_reboot+0x22d
[Tue Mar  4 13:17:47 2008]db_reboot_cmd(c045970b,0,c0a2b127,d984a6ec,a) at 
netbsd:db_reboot_cmd+0x48
[Tue Mar  4 13:17:47 2008]db_command(c091f0c2,0,c0b2264a,0,d983b9bc) at 
netbsd:db_command+0xb0
[Tue Mar  4 13:17:47 2008]db_command_loop(c045970b,ccf,1,d983bb69,800) at 
netbsd:db_command_loop+0xe5
[Tue Mar  4 13:17:47 2008]db_trap(6,0,58,c5e9fe58,0) at netbsd:db_trap+0x119
[Tue Mar  4 13:17:47 2008]kdb_trap(6,0,d984a914,1,e) at netbsd:kdb_trap+0x162
[Tue Mar  4 13:17:48 2008]trap() at netbsd:trap+0x30e
[Tue Mar  4 13:17:48 2008]--- trap (number 6) ---
[Tue Mar  4 13:17:48 2008]ttyinfo(d0026240,1,60e,202,c0a67274) at 
netbsd:ttyinfo+0x10b
[Tue Mar  4 13:17:48 2008]ttyinput_wlock(d0026248,c098a228,2ba,d98b1e80,0) at 
netbsd:ttyinput_wlock+0xbab
[Tue Mar  4 13:17:48 2008]ttyinput(14,d0026240,316,0,d98b0ed4) at 
netbsd:ttyinput+0x5a
[Tue Mar  4 13:17:48 2008]ptcwrite(601,d984aba0,110,20002,d9391a4c) at 
netbsd:ptcwrite+0x1fd
[Tue Mar  4 13:17:48 2008]spec_write(d984ab28,10002,2b4,202,0) at 
netbsd:spec_write+0xba
[Tue Mar  4 13:17:48 2008]VOP_WRITE(d9391a4c,d984aba0,110,d0020aa8,d98b1f40) at 
netbsd:VOP_WRITE+0x31
[Tue Mar  4 13:17:48 2008]vn_write(d97a61b0,d97a61dc,d984aba0,d0020aa8,1) at 
netbsd:vn_write+0x113
[Tue Mar  4 13:17:48 2008]dofilewrite(d98b0ed4,4,d97a61b0,83ce980,1) at 
netbsd:dofilewrite+0xac
[Tue Mar  4 13:17:48 2008]sys_write(d98b0ed4,d984ac48,d984ac68,0,c67c403c) at 
netbsd:sys_write+0xc9
[Tue Mar  4 13:17:48 2008]syscall_plain() at netbsd:syscall_plain+0x1a8
[Tue Mar  4 13:17:48 2008]--- syscall (number 4) ---
[Tue Mar  4 13:17:48 2008]0x81ae38b:
[Tue Mar  4 13:17:48 2008]db{0}> reboot
[Tue Mar  4 13:17:53 2008]rebooting...


>How-To-Repeat:

>Fix:

        unknown



Home | Main Index | Thread Index | Old Index