Hi!

With Terry's suggestion I turned ATA WC off this morning, and now, this
happened:  A crash when I pressed play in XMMS (this seems to be the
first page fault you see, and then, with fsck in the background:
yet another panic (UFS2 related?):

The crashdump is a bit odd, since I don't know why it actually paniced
(see the very end of this mail).

Script started on Wed Mar 26 01:20:39 2003
(kgdb) core-file vmcore.2
panic: indiracct: botched params
panic messages:
---
Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x24
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc021cdbb
stack pointer           = 0x10:0xd6828c40
frame pointer           = 0x10:0xd6828c54
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 24 (irq5: pcm0)
trap number             = 12
panic: page fault

syncing disks, buffers remaining... 3668 3668 Copyright (c) 1992-2003 The FreeBSD 
Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD 5.0-CURRENT #5: Tue Mar 18 16:04:55 CET 2003
    [EMAIL PROTECTED]:/data/obj/usr/src/sys/ZEROGRAVITY
Preloaded elf kernel "/boot/kernel/kernel" at 0xc0682000.
Preloaded elf module "/boot/kernel/nvidia.ko" at 0xc06820b4.
Preloaded elf module "/boot/kernel/linux.ko" at 0xc0682160.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc068220c.
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 1477360975 Hz
CPU: AMD Athlon(TM) XP1700+ (1477.36-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x662  Stepping = 2
  
Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
  AMD Features=0xc0480000<MP,AMIE,DSP,3DNow!>
real memory  = 536788992 (511 MB)
avail memory = 514334720 (490 MB)
Allocating major#253 to "net"
Allocating major#252 to "pci"
Pentium Pro MTRR support enabled
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <ASUS   A7V266-E> on motherboard
    ACPI-0625: *** Info: GPE Block0 defined as GPE0 to GPE15
pcibios: BIOS version 2.10
Using $PIR table, 10 entries at 0xc00f13a0
acpi0: power button is handled as a fixed feature programming model.
Timecounter "ACPI-fast"  frequency 3579545 Hz
acpi_timer0: <24-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0
acpi_cpu0: <CPU> port 0x530-0x537 on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
nvidia0: <GeForce2 MX/MX 400> mem 0xf0000000-0xf7ffffff,0xeb000000-0xebffffff irq 10 
at device 0.0 on pci1
pcm0: <CMedia CMI8738> port 0xd800-0xd8ff irq 5 at device 5.0 on pci0
sym0: <875> port 0xd400-0xd4ff mem 0xea000000-0xea000fff,0xea800000-0xea8000ff irq 9 
at device 12.0 on pci0
sym0: No NVRAM, ID 7, Fast-20, SE, parity checking
xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0xd000-0xd07f mem 0xe9800000-0xe980007f 
irq 10 at device 13.0 on pci0
xl0: Ethernet address: 00:50:04:0f:66:6f
miibus0: <MII bus> on xl0
xlphy0: <3Com internal media interface> on miibus0
xlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pci0: <display, VGA> at device 15.0 (no driver attached)
pci0: <multimedia, video> at device 16.0 (no driver attached)
pci0: <multimedia> at device 16.1 (no driver attached)
isab0: <PCI-ISA bridge> at device 17.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 8233 UDMA100 controller> port 0xb800-0xb80f at device 17.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <VIA 83C572 USB controller> port 0xb400-0xb41f irq 9 at device 17.2 on pci0
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ulpt0: Hewlett-Packard DeskJet 930C, rev 1.00/1.00, addr 2, iclass 7/1
ulpt0: using bi-directional mode
uhci1: <VIA 83C572 USB controller> port 0xb000-0xb01f irq 9 at device 17.3 on pci0
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhub1: port error, restarting port 1
uhub1: port error, restarting port 2
uhci2: <VIA 83C572 USB controller> port 0xa800-0xa81f irq 9 at device 17.4 on pci0
usb2: <VIA 83C572 USB controller> on uhci2
usb2: USB revision 1.0
uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhub2: port error, restarting port 1
uhub2: port error, restarting port 2
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
sio1 port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model MouseMan+, device ID 0
orm0: <Option ROM> at iomem 0xc0000-0xcc7ff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounters tick every 10.000 msec
ipfw2 initialized, divert enabled, rule-based forwarding enabled, default to accept, 
logging disabled
DUMMYNET initialized (011031)
IPv6 packet filtering initialized, default to accept, logging disabled
acpi_cpu: throttling enabled, 16 steps (100% to 6.2%), currently 100.0%
Allocating major#251 to "devstat"
ad0: 114473MB <ST3120023A> [232581/16/63] at ata0-master UDMA100
ad2: 57259MB <MAXTOR 4K060H3> [116336/16/63] at ata1-master UDMA100
ad3: 57259MB <MAXTOR 4K060H3> [116336/16/63] at ata1-slave UDMA100
acd0: CD-R <CR-4801TE> at ata0-slave PIO3
Waiting 15 seconds for SCSI devices to settle
Mounting root from ufs:/dev/ad0s2a
cd1 at ata0 bus 0 target 1 lun 0
cd1: <MITSUMI CR-4801TE 2.03> Removable CD-ROM SCSI-0 device 
cd1: 11.000MB/s transfers
cd1: cd present [359842 x 2352 byte records]
cd0 at sym0 bus 0 target 2 lun 0
cd0: <PIONEER DVD-ROM DVD-303 1.10> Removable CD-ROM SCSI-2 device 
cd0: 20.000MB/s transfers (20.000MHz, offset 8)
cd0: Attempt to query device size failed: NOT READY, Medium not present
WARNING: / was not properly dismounted
WARNING: /usr was not properly dismounted
WARNING: / was not properly dismounted
WARNING: /data was not properly dismounted
/data: mount pending error: blocks 4 files 1
WARNING: /storage was not properly dismounted
WARNING: /fun was not properly dismounted
WARNING: /tmp was not properly dismounted
WARNING: /usr was not properly dismounted
WARNING: /var was not properly dismounted
link_elf: symbol cdevsw_add undefined
WARNING: driver "vmmon" used unreserved major device number 200
/dev/vmmon: Module vmmon: registered with major=200 minor=0 tag=$Name: build-570 $
/dev/vmmon: Module vmmon: initialized
xl0: promiscuous mode enabled
vmnet1: promiscuous mode enabled
bktr_mem: memory holder loaded
bktr0: <BrookTree 878> mem 0xed000000-0xed000fff irq 9 at device 16.0 on pci0
bktr0: Hauppauge Model 61344 D421
bktr0: Detected a MSP3415D-B3 at 0x80
bktr0: Hauppauge WinCast/TV, Philips FR1216 PAL FM tuner, msp3400c stereo, remote 
control.
msp34xx: setvolume: mute=off 0:0  v=0x00 b=0x00
msp3400: setmode: 0
xl0: transmission error: 90
xl0: tx underrun, increasing tx start threshold to 120 bytes
xl0: transmission error: 90
xl0: tx underrun, increasing tx start threshold to 180 bytes
vmnet1: promiscuous mode disabled
panic: indiracct: botched params

syncing disks, buffers remaining... 79 79 75 74 74 68 68 66 66 66 66 66 66 66 66 66 66 
66 66 66 66 66 66 66 66 66 66 
giving up on 63 buffers
Uptime: 1h40m54s
Dumping 511 MB
ata0: resetting devices ..
done
 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 256 272 288 304 320 336 352 368 
384 400 416 432 448 464 480 496
---
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:239
239             dumping++;
(kgdb) up
#1  0xc02278bd in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:371
371                     doadump();
(kgdb) up
#2  0xc0227bc3 in panic () at /usr/src/sys/kern/kern_shutdown.c:542
542             boot(bootopt);
(kgdb) up
#3  0xc031f997 in indiracct_ufs2 (snapvp=0xc47a85b4, cancelvp=0xc49cddb0, 
    level=0, blkno=-2139222244046405632, lbn=-12, rlbn=12, remblks=8520, 
    blksperindir=1, fs=0xd13ba000, acctfunc=0xc031fcd0 <fullacct_ufs2>, 
    expungetype=1) at /usr/src/sys/ufs/ffs/ffs_snapshot.c:1172
1172                    panic("indiracct: botched params");
(kgdb) bt
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:239
#1  0xc02278bd in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:371
#2  0xc0227bc3 in panic () at /usr/src/sys/kern/kern_shutdown.c:542
#3  0xc031f997 in indiracct_ufs2 (snapvp=0xc47a85b4, cancelvp=0xc49cddb0, 
    level=0, blkno=-2139222244046405632, lbn=-12, rlbn=12, remblks=8520, 
    blksperindir=1, fs=0xd13ba000, acctfunc=0xc031fcd0 <fullacct_ufs2>, 
    expungetype=1) at /usr/src/sys/ufs/ffs/ffs_snapshot.c:1172
#4  0xc031f85f in expunge_ufs2 (snapvp=0xc47a85b4, cancelip=0xc49be7e0, 
    fs=0xd13ba000, acctfunc=0xc031fcd0 <fullacct_ufs2>, expungetype=1)
    at /usr/src/sys/ufs/ffs/ffs_snapshot.c:1130
#5  0xc031d05c in ffs_snapshot (mp=0xc42fc000, snapfile=---Can't read userspace from 
dump, or kernel process---

)
    at /usr/src/sys/ufs/ffs/ffs_snapshot.c:449
#6  0xc032c488 in ffs_mount (mp=0xc42fc000, path=0xc526f180 "/var", data=0x0, 
    ndp=0xe24ffbe0, td=0xc4210e10) at /usr/src/sys/ufs/ffs/ffs_vfsops.c:311
#7  0xc027a158 in vfs_mount (td=0xc4210e10, fstype=0xc466ced0 "ffs", 
    fspath=0xc526f180 "/var", fsflags=18944000, fsdata=0x0)
    at /usr/src/sys/kern/vfs_mount.c:1085
#8  0xc0279808 in mount (td=0x0, uap=0xe24ffd10)
    at /usr/src/sys/kern/vfs_mount.c:843
#9  0xc038cb1a in syscall (frame=
      {tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = 0, tf_esi = -1077936704, tf_ebp = 
-1077936824, tf_isp = -498074252, tf_ebx = 135022758, tf_edx = 19, tf_ecx = 135022592, 
tf_eax = 21, tf_trapno = 12, tf_err = 2, tf_eip = 134570971, tf_cs = 31, tf_eflags = 
514, tf_esp = -1077937204, tf_ss = 47})
    at /usr/src/sys/i386/i386/trap.c:1030
#10 0xc037bb8d in Xint0x80_syscall () at {standard input}:138
---Can't read userspace from dump, or kernel process---

(kgdb) down
#2  0xc0227bc3 in panic () at /usr/src/sys/kern/kern_shutdown.c:542
542             boot(bootopt);
(kgdb) up
#3  0xc031f997 in indiracct_ufs2 (snapvp=0xc47a85b4, cancelvp=0xc49cddb0, 
    level=0, blkno=-2139222244046405632, lbn=-12, rlbn=12, remblks=8520, 
    blksperindir=1, fs=0xd13ba000, acctfunc=0xc031fcd0 <fullacct_ufs2>, 
    expungetype=1) at /usr/src/sys/ufs/ffs/ffs_snapshot.c:1172
1172                    panic("indiracct: botched params");
(kgdb) list
1167            struct buf *bp;
1168    
1169            if ((error = ufs_getlbns(cancelvp, rlbn, indirs, &num)) != 0)
1170                    return (error);
1171            if (lbn != indirs[num - 1 - level].in_lbn || blkno == 0 || num < 2)
1172                    panic("indiracct: botched params");
1173            /*
1174             * We have to expand bread here since it will deadlock looking
1175             * up the block number for any blocks that are not in the cache.
1176             */
(kgdb) print snapvp
$1 = (struct vnode *) 0xc47a85b4
(kgdb) print *snapvp
$2 = {v_interlock = {mtx_object = {lo_class = 0xc0405e00, 
      lo_name = 0xc03c3823 "vnode interlock", 
      lo_type = 0xc03c3823 "vnode interlock", lo_flags = 196608, lo_list = {
        tqe_next = 0x0, tqe_prev = 0x0}, lo_witness = 0x0}, mtx_lock = 4, 
    mtx_recurse = 0, mtx_blocked = {tqh_first = 0x0, tqh_last = 0xc47a85d8}, 
    mtx_contested = {le_next = 0x0, le_prev = 0x0}}, v_iflag = 512, 
  v_usecount = 1, v_numoutput = 0, v_vxproc = 0x0, v_holdcnt = 17, 
  v_cleanblkhd = {tqh_first = 0xce60dd50, tqh_last = 0xce665d9c}, 
  v_cleanblkroot = 0xce5c0460, v_cleanbufcnt = 10, v_dirtyblkhd = {
    tqh_first = 0xce5b3eb8, tqh_last = 0xce66fd74}, 
  v_dirtyblkroot = 0xce66fcd0, v_dirtybufcnt = 7, v_vflag = 0, 
  v_writecount = 0, v_object = 0x0, v_lastw = 0, v_cstart = 0, v_lasta = 0, 
  v_clen = 0, v_un = {vu_mountedhere = 0x0, vu_socket = 0x0, vu_spec = {
      vu_cdev = 0x0, vu_specnext = {sle_next = 0x0}}, vu_fifoinfo = 0x0}, 
  v_freelist = {tqe_next = 0xc4d8dc8c, tqe_prev = 0xc043cc74}, v_nmntvnodes = {
    tqe_next = 0x0, tqe_prev = 0xc4c121c4}, v_synclist = {le_next = 0x0, 
    le_prev = 0xc40792d8}, v_type = VREG, v_tag = 0xc03c6783 "ufs", 
  v_data = 0xc4d95f30, v_lock = {lk_interlock = 0xc043a1c8, 
    lk_flags = 16778304, lk_sharecount = 0, lk_waitcount = 0, 
    lk_exclusivecount = 1, lk_prio = 80, lk_wmesg = 0xc03c6783 "ufs", 
    lk_timo = 6, lk_lockholder = 0xc4210e10, lk_newlock = 0x0}, 
  v_vnlock = 0xc47a8670, v_op = 0xc4071a00, v_mount = 0xc42fc000, 
  v_cache_src = {lh_first = 0x0}, v_cache_dst = {tqh_first = 0x0, 
    tqh_last = 0xc47a86a4}, v_id = 7614422, v_dd = 0xc47a85b4, v_ddid = 0, 
  v_pollinfo = 0x0, v_label = {l_flags = 0, l_perpolicy = {{l_ptr = 0x0, 
        l_long = 0}, {l_ptr = 0x0, l_long = 0}, {l_ptr = 0x0, l_long = 0}, {
        l_ptr = 0x0, l_long = 0}}}, v_cachedfs = 1045, v_cachedid = 4294967295}
(kgdb) print *cancelvp
$3 = {v_interlock = {mtx_object = {lo_class = 0xc0405e00, 
      lo_name = 0xc03c3823 "vnode interlock", 
      lo_type = 0xc03c3823 "vnode interlock", lo_flags = 196608, lo_list = {
        tqe_next = 0x0, tqe_prev = 0x0}, lo_witness = 0x0}, mtx_lock = 4, 
    mtx_recurse = 0, mtx_blocked = {tqh_first = 0x0, tqh_last = 0xc49cddd4}, 
    mtx_contested = {le_next = 0x0, le_prev = 0x0}}, v_iflag = 1024, 
  v_usecount = 28, v_numoutput = 0, v_vxproc = 0x0, v_holdcnt = 0, 
  v_cleanblkhd = {tqh_first = 0x0, tqh_last = 0xc49cddf8}, 
  v_cleanblkroot = 0x0, v_cleanbufcnt = 0, v_dirtyblkhd = {tqh_first = 0x0, 
    tqh_last = 0xc49cde08}, v_dirtyblkroot = 0x0, v_dirtybufcnt = 0, 
  v_vflag = 12, v_writecount = 1, v_object = 0xc48e1688, v_lastw = 0, 
  v_cstart = 0, v_lasta = 0, v_clen = 0, v_un = {vu_mountedhere = 0x0, 
    vu_socket = 0x0, vu_spec = {vu_cdev = 0x0, vu_specnext = {
        sle_next = 0x0}}, vu_fifoinfo = 0x0}, v_freelist = {tqe_next = 0x0, 
    tqe_prev = 0x0}, v_nmntvnodes = {tqe_next = 0xc4d17c8c, 
    tqe_prev = 0xc48c7d2c}, v_synclist = {le_next = 0xc4a3b5b4, 
    le_prev = 0xc4afdd34}, v_type = VREG, v_tag = 0xc03c6783 "ufs", 
  v_data = 0xc49be7e0, v_lock = {lk_interlock = 0xc043a7ac, 
    lk_flags = 16778304, lk_sharecount = 0, lk_waitcount = 0, 
    lk_exclusivecount = 1, lk_prio = 80, lk_wmesg = 0xc03c6783 "ufs", 
    lk_timo = 6, lk_lockholder = 0xc4210e10, lk_newlock = 0x0}, 
  v_vnlock = 0xc49cde6c, v_op = 0xc4071a00, v_mount = 0xc42fc000, 
  v_cache_src = {lh_first = 0x0}, v_cache_dst = {tqh_first = 0x0, 
    tqh_last = 0xc49cdea0}, v_id = 4388, v_dd = 0xc49cddb0, v_ddid = 0, 
  v_pollinfo = 0x0, v_label = {l_flags = 0, l_perpolicy = {{l_ptr = 0x0, 
        l_long = 0}, {l_ptr = 0x0, l_long = 0}, {l_ptr = 0x0, l_long = 0}, {
        l_ptr = 0x0, l_long = 0}}}, v_cachedfs = 1044, v_cachedid = 16647}
(kgdb) print *fs
$4 = {fs_firstfield = 0, fs_unused_1 = 0, fs_sblkno = 40, fs_cblkno = 48, 
  fs_iblkno = 56, fs_dblkno = 1088, fs_old_cgoffset = 0, fs_old_cgmask = 0, 
  fs_old_time = 0, fs_old_size = 0, fs_old_dsize = 0, fs_ncg = 4, 
  fs_bsize = 16384, fs_fsize = 2048, fs_frag = 8, fs_minfree = 8, 
  fs_old_rotdelay = 0, fs_old_rps = 0, fs_bmask = -16384, fs_fmask = -2048, 
  fs_bshift = 14, fs_fshift = 11, fs_maxcontig = 8, fs_maxbpg = 2048, 
  fs_fragshift = 3, fs_fsbtodb = 2, fs_sbsize = 2048, fs_spare1 = {0, 0}, 
  fs_nindir = 2048, fs_inopb = 64, fs_old_nspf = 0, fs_optim = 0, 
  fs_old_npsect = 0, fs_old_interleave = 0, fs_old_trackskew = 0, fs_id = {
    1045068191, 750210778}, fs_old_csaddr = 0, fs_cssize = 2048, 
  fs_cgsize = 6144, fs_spare2 = 0, fs_old_nsect = 0, fs_old_spc = 0, 
  fs_old_ncyl = 0, fs_old_cpg = 0, fs_ipg = 8256, fs_fpg = 32776, 
  fs_old_cstotal = {cs_ndir = 0, cs_nbfree = 0, cs_nifree = 0, cs_nffree = 0}, 
  fs_fmod = 1 '\001', fs_clean = 0 '\0', fs_ronly = 0 '\0', 
  fs_old_flags = -128 '\200', fs_fsmnt = "/var", '\0' <repeats 463 times>, 
  fs_volname = '\0' <repeats 31 times>, fs_swuid = 0, fs_pad = 0, 
  fs_cgrotor = 0, fs_ocsp = {0x0 <repeats 28 times>}, 
  fs_contigdirs = 0xc4193810 "", fs_csp = 0xc53fa000, 
  fs_maxcluster = 0xc53fe000, fs_active = 0xc466cd70, fs_old_cpc = 0, 
  fs_maxbsize = 16384, fs_sparecon64 = {0 <repeats 17 times>}, 
  fs_sblockloc = 65536, fs_cstotal = {cs_ndir = 378, cs_nbfree = 2682, 
    cs_nifree = 30813, cs_nffree = 969, cs_numclusters = 0, cs_spare = {0, 0, 
      0}}, fs_time = 1048637187, fs_size = 131072, fs_dsize = 126839, 
  fs_csaddr = 1088, fs_pendingblocks = 0, fs_pendinginodes = 0, fs_snapinum = {
    0 <repeats 20 times>}, fs_avgfilesize = 16384, fs_avgfpdir = 64, 
  fs_save_cgsize = 0, fs_sparecon32 = {0 <repeats 26 times>}, fs_flags = 3, 
  fs_contigsumsize = 8, fs_maxsymlinklen = 120, fs_old_inodefmt = 0, 
  fs_maxfilesize = 140806241583103, fs_qbmask = 16383, fs_qfmask = 2047, 
  fs_state = 0, fs_old_postblformat = 0, fs_old_nrpos = 0, fs_spare5 = {0, 0}, 
  fs_magic = 424935705}
(kgdb) print *actfunc     ctfunc
$5 = {int (struct vnode *, ufs2_daddr_t *, ufs2_daddr_t *, struct fs *, 
    ufs_lbn_t, int)} 0xc031fcd0 <fullacct_ufs2>
(kgdb) list
1167            struct buf *bp;
1168    
1169            if ((error = ufs_getlbns(cancelvp, rlbn, indirs, &num)) != 0)
1170                    return (error);
1171            if (lbn != indirs[num - 1 - level].in_lbn || blkno == 0 || num < 2)
1172                    panic("indiracct: botched params");
1173            /*
1174             * We have to expand bread here since it will deadlock looking
1175             * up the block number for any blocks that are not in the cache.
1176             */
(kgdb) print lbn
$6 = -12
(kgdb) prin indirs
Ambiguous command "prin indirs": print, printf.
(kgdb) print indirs
$7 = {{in_lbn = -12, in_off = 0, in_exists = 0}, {in_lbn = -12, in_off = 0, 
    in_exists = 0}, {in_lbn = -1, in_off = 1, in_exists = -498076116}, {
    in_lbn = -4288968683751867066, in_off = -996314160, 
    in_exists = -996314136}, {in_lbn = -784621568, in_off = -1, in_exists = 1}}
(kgdb) print num
$8 = 2
(kgdb) print level
$9 = 0
(kgdb) print indirs[num - 1 - level].in_lbn
$10 = -12
(kgdb) print blkno
$11 = -2139222244046405632
(kgdb) quit

The most interesting part is this:

(kgdb) list
1167            struct buf *bp;
1168    
1169            if ((error = ufs_getlbns(cancelvp, rlbn, indirs, &num)) != 0)
1170                    return (error);
1171            if (lbn != indirs[num - 1 - level].in_lbn || blkno == 0 || num < 2)
1172                    panic("indiracct: botched params");
1173            /*
1174             * We have to expand bread here since it will deadlock looking
1175             * up the block number for any blocks that are not in the cache.
1176             */
(kgdb) print lbn
$1 = -12
(kgdb) print indirs[num - 1 - level].in_lbn
$2 = -12
(kgdb) print blkno
$3 = -2139222244046405632
(kgdb) print num
$4 = 2
(kgdb) quit

so, neither is lbn != the indirs[...].in_lbn (both are -12), nor is
bklno == 0, nor is num < 2.  And it still paniced?  HUH?

Where's the error? :)

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to