Subject: kern/10551: panic: bawrite LFS buffer
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jarle@runit.no>
List: netbsd-bugs
Date: 07/09/2000 11:11:14
>Number:         10551
>Category:       kern
>Synopsis:       panic: bawrite LFS buffer
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 09 11:12:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Jarle Greipsland
>Release:        2000-07-08
>Organization:
	
>Environment:
	
System: NetBSD honey.runit.sintef.no 1.5B NetBSD 1.5B (HONEY) #28: Sat Jul  8 21:05:17 CEST 2000     jarle@honey.runit.sintef.no:/usr/src/sys/arch/alpha/compile/HONEY alpha


>Description:
panic: bawrite LFS buffer
Stopped in tar at       cpu_Debugger+0x4:       ret     zero,(ra)
db> 
db> trace
cpu_Debugger() at cpu_Debugger+0x4
panic() at panic+0xfc
lfs_bwrite() at lfs_bwrite+0x44
bawrite() at bawrite+0x48
getnewbuf() at getnewbuf+0x160
getblk() at getblk+0x1c8
lfs_writeinode() at lfs_writeinode+0xe4
lfs_writevnodes() at lfs_writevnodes+0x268
lfs_segwrite() at lfs_segwrite+0x224
lfs_flush_fs() at lfs_flush_fs+0x64
lfs_flush() at lfs_flush+0xc8
lfs_check() at lfs_check+0x26c
lfs_symlink() at lfs_symlink+0x170
sys_symlink() at sys_symlink+0x1fc
syscall() at syscall+0x1c8
XentSys() at XentSys+0x50
--- syscall (57, netbsd.sys_symlink) ---
--- user mode ---
db> 
db> ps
 PID             PPID       PGRP        UID S   FLAGS          COMMAND    WAIT
>How-To-Repeat:
Updated my code base to -current.  Build kernel+world and installed.
Initiated stress testing of LFS.
	
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted:
 >243              241        241      16073 7  0x4006              tar
  241              209        241      16073 3    0x86             bash    wait
  240              238        238      16073 3  0x4086           bonnie buffers
  238              209        238      16073 3    0x86             bash    wait
  236              235        236      16073 3  0x4186           systat   ttyin
  235              234        235      16073 3  0x4086             bash    wait
  234              231        231      16073 3  0x4184            xterm  select
  231              229        231      16073 3  0x4084              csh   pause
  229              161        161          0 3    0x84            sshd1  select
  228              226        226      16073 2  0x4086              tar
  226              209        226      16073 3    0x86             bash    wait
  225              223        223      16073 2  0x4086           bonnie
  223              209        223      16073 3    0x86             bash    wait
  217              216        216          0 3    0x84     lfs_cleanerd segment
  216                1        216          0 3    0x84     lfs_cleanerd    wait
  210              209        210          0 4  0x5006              csh
  209              208        209      16073 3  0x4086             bash   ttyin
  208              205        205      16073 3  0x4184            xterm  select
  205              203        205      16073 3  0x4084              csh   pause
  203              161        161          0 3    0x84            sshd1  select
  202                1        202          0 3  0x4086            getty   ttyin
  200                1        200          0 3   0x184             cron nanosle
  196                1        196          0 3    0x84            inetd  select
  184                1        184          0 3    0x84             ntpd   pause
  161                1        161          0 3    0x84            sshd1  select
  121                1        121          0 3    0x84        mount_mfs  mfsidl
  110                1        110          0 3    0x84          rpcbind  select
  98                 1         98          0 3    0x84          syslogd  select
  4                  0          0          0 3 0x20204          ioflush  syncer
  3                  0          0          0 3 0x20204           reaper  reaper
  2                  0          0          0 3 0x20204       pagedaemon daemon_
  1                  0          1          0 3  0x4084             init    wait
  0                 -1          0          0 3 0x20204          swapper schedul
 db> 
 db> trace/t 0t240
 trace: pid 240 at 0xfffffe0005d77a68
 mi_switch() at mi_switch+0x190
 ltsleep() at ltsleep+0x2c8
 lfs_check() at lfs_check+0x210
 lfs_balloc() at lfs_balloc+0x80
 lfs_write() at lfs_write+0x26c
 vn_write() at vn_write+0x154
 dofilewrite() at dofilewrite+0xd0
 sys_write() at sys_write+0xa0
 syscall() at syscall+0x1c8
 XentSys() at XentSys+0x50
 --- syscall (4, netbsd.sys_write) ---
 --- user mode ---
 db> trace/t 0t228
 trace: pid 228 at 0xfffffe0005d5ba68
 mi_switch() at mi_switch+0x190
 ltsleep() at ltsleep+0x2c8
 lfs_check() at lfs_check+0x210
 lfs_balloc() at lfs_balloc+0x80
 lfs_write() at lfs_write+0x26c
 vn_write() at vn_write+0x154
 dofilewrite() at dofilewrite+0xd0
 sys_write() at sys_write+0xa0
 syscall() at syscall+0x1c8
 XentSys() at XentSys+0x50
 --- syscall (4, netbsd.sys_write) ---
 --- user mode ---
 db> trace/t 0t225
 trace: pid 225 at 0xfffffe0005d53a68
 mi_switch() at mi_switch+0x190
 ltsleep() at ltsleep+0x2c8
 lfs_check() at lfs_check+0x210
 lfs_balloc() at lfs_balloc+0x80
 lfs_write() at lfs_write+0x26c
 vn_write() at vn_write+0x154
 dofilewrite() at dofilewrite+0xd0
 sys_write() at sys_write+0xa0
 syscall() at syscall+0x1c8
 XentSys() at XentSys+0x50
 --- syscall (4, netbsd.sys_write) ---
 --- user mode ---
 db> 
 db> trace/t 0t217
 trace: pid 217 at 0xfffffe0005d47d88
 mi_switch() at mi_switch+0x190
 ltsleep() at ltsleep+0x2c8
 sys_lfs_segwait() at sys_lfs_segwait+0x1a8
 syscall() at syscall+0x1c8
 XentSys() at XentSys+0x50
 --- syscall (187, netbsd.sys_lfs_segwait) ---
 --- user mode ---
 db>