> This part:
>
>> VOP_FSYNC() at VOP_FSYNC+0x2f
>> ffs_sync_vnode() at ffs_sync_vnode+0x77
>> vfs_mount_foreach_vnode() at vfs_mount_foreach_vnode+0x38
>> ffs_sync() at ffs_sync+0x83
>> sys_sync() at sys_sync+0xa1
>> vfs_syncwait() at vfs_syncwait+0x50
>> vfs_shutdown() at vfs_shutdown+0x32
>> boot() at boot+0x17f
>> panic() at panic+0xf6
>
> is from the "boot crash", not the original crash. Looking at the
> original crash:
>
>> --- trap (number 8) ---
>> ffs_update() at ffs_update+0x19f
>
> That points to the math in the ino_to_fsba() macro in this like of
> ffs_update()
> error = bread(ip->i_devvp, fsbtodb(fs, ino_to_fsba(fs,
> ip->i_number)),
> (int)fs->fs_bsize, &bp);
>
> It's trying to calculate the block address of the inode so that it can
> update the timestamps in it and divided by zero. That means the
> in-memory copy of the superblock had zeros in on other another member.
> If the on-disk superblock had zeros there, I would expected fsck to
> catch it, or for it to crash earlier, but maybe a forced fsck is in
> order. Otherwise, something's writing through a bogus pointer in the
> kernel...
Well, I was hopeful after I manually fscked everything on Monday, but
it crashed again last night:
fatal integer divide fault in supervisor mode
trap type 8 code 0 rip ffffffff81292dff cs 8 rflags 10246 cr2 9c8edee6f0c
cpl 0 rsp ffff8000226bac30
panic: trap type 8, code 0, pc=ffffffff81292dff
Starting stack trace...
panic() at panic+0xfb
trap() at trap+0x7f1
--- trap (number 8) ---
ffs_update() at ffs_update+0x19f
ufs_inactive() at ufs_inactive+0xd3
VOP_INACTIVE() at VOP_INACTIVE+0x28
vrele() at vrele+0x61
proc_zap() at proc_zap+0xa1
dowait4() at dowait4+0x2ca
sys_wait4() at sys_wait4+0x38
syscall() at syscall+0x249
syscall -- (number 11) ---
end of kernel
end trace frame: 0x9caee03eba0, count: 247
0x9caf9cf4aea:
End of stack trace.
syncing disks...
I can re-enable the ddb.panic setting so it *doesn't* automatically
reboot, but I don't know what information from the debugger would be
actually useful. If you can suggest some commands to run from the
ddb prompt, I'll be more than happy to do so the next time it crashes.
Thank you very much for any help!
Benny
--
"No matter how tempted I am with the prospect of unlimited power, I
will not consume any energy field bigger than my head."
-- #22 on Peter Anspach's Evil
Overlord list