Subject: Re: kern/35098: LFS crashs
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Kazushi (Jam) Marukawa <jam@pobox.com>
List: netbsd-bugs
Date: 11/27/2006 14:20:04
The following reply was made to PR kern/35098; it has been noted by GNATS.

From: Kazushi (Jam) Marukawa <jam@pobox.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/35098: LFS crashs
Date: Mon, 27 Nov 2006 23:18:36 +0900

 NetBSD crashed again when I did "build.sh -x -r release"
 twice.  I'm using NFS-mounted source, tool, destdir and
 release.  All other binaries are kept on local LFS /usr/obj.
 I'm using Nov 21st kernel.  Here is the log.
 
 fs:/mnt/raid: inaccurate wcc data (mtime) detected, disabling wcc
 panic: kernel diagnostic assertion "(vp->v_flag & VONWORKLST) != 0 || (vp->v_flag & VWRITEMAPDIRTY) == 0" failed: file "../../../../miscfs/genfs/genfs_vnops.c", line 1088
 Stopped in pid 17464.1 (sync) at        netbsd:cpu_Debugger+0x4:        popl%ebp
 db> trace
 cpu_Debugger(c040e863,cadf1888,cadf187c,c029a26a,c1489b14) at netbsd:cpu_Debugger+0x4
 panic(c04330fc,c03fd982,c042c7dc,c042c5c0,440) at netbsd:panic+0x155
 __assert(c03fd982,c042c5c0,440,c042c7dc,c0dfc088) at netbsd:__assert+0x2e
 genfs_putpages(cadf1aa0,0,ffffe000,7fffffff,2000) at netbsd:genfs_putpages+0xf1a
 lfs_putpages(cadf1aa0,0,80,c03f3200,cb3f1eec) at netbsd:lfs_putpages+0x23e
 VOP_PUTPAGES(cb3f1eec,0,0,0,0) at netbsd:VOP_PUTPAGES+0x40
 lfs_writefile(c0ad1000,cd808f80,cb3f1eec,c02746fe,c0ad1000) at netbsd:lfs_writefile+0x207
 lfs_writevnodes(c0ad1000,c0adc000,cd808f80,0,cadf1bac) at netbsd:lfs_writevnodes+0x1ba
 lfs_segwrite(c0adc000,5,13bb6b,5000,cb3a41c0) at netbsd:lfs_segwrite+0xc8
 lfs_sync(c0adc000,2,cb3f92c0,cb3a41c0,cb3a41c0) at netbsd:lfs_sync+0x7b
 sys_sync(cb3a41c0,cadf1c48,cadf1c68,0,bbb53018) at netbsd:sys_sync+0xda
 syscall_plain() at netbsd:syscall_plain+0xb3
 --- syscall (number 36) ---
 0xbbb2fca3:
 
 I checked (vnode*)->v_flag like below.
 
 db> ex cadf1aa0,8
 0xcadf1aa0:     c03f3200    cb3f1eec    0           0           ffffe000    7fffffff    d1          cadf1afc
 db> ex cb3f1eec,20
 0xcb3f1eec:     0           c043940c    c07352e0    c07f7230    2           3
 0xcb3f1f04:     2000        0           10060       0           1           1
 0xcb3f1f1c:     c0adc000    c0a86b00    0           0           cb431ef0    cb3f11bc    0           0           4           ce27d268    c099c620    0
 0xcb3f1f4c:     0           ce806c04    0           1           5           0
 0xcb3f1f64:     0           0
 
 0x10060 == VMAPPED | VWRITEMAPDIRTY | VWRITEMAP
 
 
 I also checked (segment*)->seg_flags like below.
 
 db> ex cd808f80,20
 0xcd808f80:     c0ad1000    cb7b23e8    cb7b23fc    cb7b23fc    cc8a752c    0
 0xcd808f98:     c1242030    0           c1242000    1f          24000       3b0
 0xcd808fb0:     4ee         c1242040    dead0005    0           0           73746e6f    6435372f    6e2f6970    426e6563    2d323149    384f5349    0
 0xcd808fe0:     c0ad1508    7a672e66    70797420    cd808000    456ad57b    5fff9       cd808f3c    616e0001
 
 0x0005 == SEGM_SYNC | SEGM_CKP
 
 db> ps
  PID           PPID     PGRP        UID S   FLAGS LWPS           COMMAND    WAIT
 >17464        20603     1078       1000 2  0x4002    1              sync
  20603        21020     1078       1000 2  0x4002    1                sh    wait
  21791          442      442          0 2   0x101    1              smbd  select
 
 Any idea?  Thanks.
 
 -- Kazushi