Help debugging sysinstall problem

From: Ken Smith <kensmith_at_cse.Buffalo.EDU>
Date: Mon, 5 Apr 2004 12:40:05 -0400
Nate and others mentioned there is a problem with -current and
installing from CD.  I have a fresh ISO built for sparc64 and
a machine sitting at a DDB prompt having crashed during sysinstall.
The information I've been able to get from it so far is tacked on
below.  If more information can help let me know, I have the whole
tree that resulted from the "make release" build of the ISO file
so I can get to things like the kernel.debug file, etc...

Stack trace from ddb:

db> tr
__panic() at __panic+0x170
trap() at trap+0x2cc
-- fast data access mmu miss tar=0 %o7=0xc01665f8 --
softdep_disk_prewrite() at softdep_disk_prewrite+0x4c
ufs_strategy() at ufs_strategy+0xa8
ufs_vnoperate() at ufs_vnoperate+0x1c
ibwrite() at ibwrite+0x278
bwrite() at bwrite+0x38
ufs_mkdir() at ufs_mkdir+0x514
ufs_vnoperate() at ufs_vnoperate+0x1c
kern_mkdir() at kern_mkdir+0x194
syscall() at syscall+0x234
-- syscall (136, FreeBSD ELF64, mkdir) %o7=0x1d82d0 --
userland() at 0x24b4c8
user trace: trap %o7=0x1d82d0
pc 0x24b4c8, sp 0x7fdffffd361
pc 0x1dbccc, sp 0x7fdffffd4b1
pc 0x1cd478, sp 0x7fdffffd571
pc 0x1cd2b0, sp 0x7fdffffda51
pc 0x1d2f3c, sp 0x7fdffffdb21
pc 0x1d1070, sp 0x7fdffffdbf1
pc 0x209a80, sp 0x7fdffffdcb1
pc 0x1cd4dc, sp 0x7fdffffdec1
pc 0x1d5e24, sp 0x7fdffffe3a1
pc 0x1003b0, sp 0x7fdffffe471
pc 0x1001e0, sp 0x7fdffffe531
pc 0, sp 0x7fdffffe5f1
done
db>

Running "gdb53 -k kernel.debug" and asking it what's at the location
softdep_disk_prewrite+0x4c gives me:

gdb53 -k kernel.debug
GNU gdb 5.3 (FreeBSD)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc64-portbld-freebsd5.2"...
(kgdb) list *softdep_disk_prewrite+0x4c
0xc02565ac is in softdep_disk_prewrite (/usr/src/sys/ufs/ffs/ffs_softdep.c:3425).
3420    {
3421            int error;
3422
3423            if (bp->b_iocmd != BIO_WRITE)
3424                    return (0);
3425            if ((bp->b_flags & B_VALIDSUSPWRT) == 0 &&
3426                bp->b_vp != NULL && bp->b_vp->v_mount != NULL &&
3427                (vp->v_mount->mnt_kern_flag & MNTK_SUSPENDED) != 0)
3428                    panic("softdep_disk_prewrite: bad I/O");
3429            bp->b_flags &= ~B_VALIDSUSPWRT;
(kgdb)

-- 
						Ken Smith
- From there to here, from here to      |       kensmith_at_cse.buffalo.edu
  there, funny things are everywhere.   |
                      - Theodore Geisel |
Received on Mon Apr 05 2004 - 07:40:10 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:50 UTC