Hi, here's a backtrace from a kernel panic I get if I try to buildworld with "make -j4" (source as of yesterday). I also get this panic if I try to cvsup (not only with this kernel, also with a kernel from Aug 28). ---snip--- IdlePTD 4628480 initial pcb at 2de4a0 panicstr: bremfree: bp 0xc69bbfa8 not locked panic messages: --- panic: ffs_clusteralloc: map mismatch syncing disks... panic: bremfree: bp 0xc69bbfa8 not locked Uptime: 1m51s dumping to dev ad1s2b, offset 1572992 dump ata0: resetting devices .. ad1: invalidating queued requests done [...] #0 dumpsys () at ../../../kern/kern_shutdown.c:487 487 if (dumping++) { (kgdb) bt #0 dumpsys () at ../../../kern/kern_shutdown.c:487 #1 0xc019805d in boot (howto=260) at ../../../kern/kern_shutdown.c:330 #2 0xc0198476 in panic (fmt=0xc02941e1 "bremfree: bp %p not locked") at ../../../kern/kern_shutdown.c:623 #3 0xc01ccd09 in bremfree (bp=0xc69bbfa8) at ../../../kern/vfs_bio.c:535 #4 0xc01ce41c in vfs_bio_awrite (bp=0xc69bbfa8) at ../../../kern/vfs_bio.c:1528 #5 0xc0160e6a in spec_fsync (ap=0xd11f5b8c) at ../../../fs/specfs/spec_vnops.c:400 #6 0xc0160a58 in spec_vnoperate (ap=0xd11f5b8c) at ../../../fs/specfs/spec_vnops.c:119 #7 0xc0214975 in ffs_sync (mp=0xc1852400, waitfor=2, cred=0xc0e60d00, p=0xc030e800) at vnode_if.h:441 #8 0xc01dbd4d in sync (p=0xc030e800, uap=0x0) at ../../../kern/vfs_syscalls.c:622 #9 0xc0197b4d in boot (howto=256) at ../../../kern/kern_shutdown.c:239 #10 0xc0198476 in panic (fmt=0xc029b5e0 "ffs_clusteralloc: map mismatch") at ../../../kern/kern_shutdown.c:623 #11 0xc0206b6b in ffs_clusteralloc (ip=0xc1d1d800, cg=70, bpref=6307848, len=2) at ../../../ufs/ffs/ffs_alloc.c:1293 #12 0xc0205efc in ffs_hashalloc (ip=0xc1d1d800, cg=70, pref=6307848, size=2, allocator=0xc020694c <ffs_clusteralloc>) at ../../../ufs/ffs/ffs_alloc.c:871 #13 0xc020549b in ffs_reallocblks (ap=0xd11f5dd8) at ../../../ufs/ffs/ffs_alloc.c:446 #14 0xc01d2443 in cluster_write (bp=0xc6a247c8, filesize=32768, seqcount=127) at vnode_if.h:861 #15 0xc0215e30 in ffs_write (ap=0xd11f5e88) at ../../../ufs/ufs/ufs_readwrite.c:548 #16 0xc01e17a4 in vn_write (fp=0xc1871540, uio=0xd11f5ef8, cred=0xc1d69f00, flags=0, p=0xd1185400) at vnode_if.h:303 #17 0xc01b500f in dofilewrite (p=0xd1185400, fp=0xc1871540, fd=1, buf=0x809e000, nbyte=1024, offset=-1, flags=0) at ../../../sys/file.h:162 #18 0xc01b4ebb in write (p=0xd1185400, uap=0xd11f5f80) at ../../../kern/sys_generic.c:334 #19 0xc02561dd in syscall (frame={tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = 134717528, tf_esi = 1024, tf_ebp = -1077941256, tf_isp = -786473004, tf_ebx = 134717528, tf_edx = 134717536, tf_ecx = 1, tf_eax = 4, tf_trapno = 0, tf_err = 2, tf_eip = 134622600, tf_cs = 31, tf_eflags = 643, tf_esp = -1077941300, tf_ss = 47}) at ../../../i386/i386/trap.c:1117 #20 0xc024870d in syscall_with_err_pushed () #21 0x806f686 in ?? () #22 0x806f5cd in ?? () #23 0x804f634 in ?? () #24 0x804f9fa in ?? () #25 0x80526f9 in ?? () #26 0x8051651 in ?? () #27 0x8048133 in ?? () (kgdb) up 3 #3 0xc01ccd09 in bremfree (bp=0xc69bbfa8) at ../../../kern/vfs_bio.c:535 535 KASSERT(BUF_REFCNT(bp) == 1, ("bremfree: bp %p not locked",bp)); (kgdb) list 530 int old_qindex = bp->b_qindex; 531 532 GIANT_REQUIRED; 533 534 if (bp->b_qindex != QUEUE_NONE) { 535 KASSERT(BUF_REFCNT(bp) == 1, ("bremfree: bp %p not locked",bp)); 536 TAILQ_REMOVE(&bufqueues[bp->b_qindex], bp, b_freelist); 537 bp->b_qindex = QUEUE_NONE; 538 } else { 539 if (BUF_REFCNT(bp) <= 1) (kgdb) up 8 #11 0xc0206b6b in ffs_clusteralloc (ip=0xc1d1d800, cg=70, bpref=6307848, len=2) at ../../../ufs/ffs/ffs_alloc.c:1293 1293 panic("ffs_clusteralloc: map mismatch"); (kgdb) list 1288 * Allocate the cluster that we have found. 1289 */ 1290 blksfree = cg_blksfree(cgp); 1291 for (i = 1; i <= len; i++) 1292 if (!ffs_isblock(fs, blksfree, got - run + i)) 1293 panic("ffs_clusteralloc: map mismatch"); 1294 bno = cg * fs->fs_fpg + blkstofrags(fs, got - run + 1); 1295 if (dtog(fs, bno) != cg) 1296 panic("ffs_clusteralloc: allocated out of group"); 1297 len = blkstofrags(fs, len); ---snip--- softupdates: enabled dmesg: attached Bye, Alexander. -- Give a man a fish and you feed him for a day; teach him to use the Net and he won't bother you for weeks. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7
Copyright (c) 1992-2001 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 #25: Sun Sep 2 14:34:52 CEST 2001 [EMAIL PROTECTED]:/big/usr/src/sys/i386/compile/WORK Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 801838618 Hz CPU: AMD Duron(tm) Processor (801.84-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x631 Stepping = 1 Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR> AMD Features=0xc0440000<<b18>,AMIE,DSP,3DNow!> real memory = 268369920 (262080K bytes) avail memory = 256434176 (250424K bytes) Preloaded elf kernel "kernel" at 0xc0490000. Preloaded elf module "cd9660.ko" at 0xc04900a8. Preloaded elf module "msdosfs.ko" at 0xc0490148. Preloaded elf module "ntfs.ko" at 0xc04901e8. Preloaded elf module "procfs.ko" at 0xc0490284. Preloaded elf module "linux.ko" at 0xc0490324. Preloaded elf module "miibus.ko" at 0xc04903c4. Preloaded elf module "if_xl.ko" at 0xc0490464. Preloaded elf module "snd_pcm.ko" at 0xc0490504. Preloaded elf module "snd_es137x.ko" at 0xc04905a4. Preloaded elf module "snd_via82c686.ko" at 0xc0490648. Preloaded elf module "usb.ko" at 0xc04906f0. Preloaded elf module "agp.ko" at 0xc049078c. Preloaded elf module "accf_data.ko" at 0xc0490828. Preloaded elf module "accf_http.ko" at 0xc04908cc. Preloaded elf module "random.ko" at 0xc0490970. Preloaded elf module "atspeaker.ko" at 0xc0490a10. Preloaded elf module "joy.ko" at 0xc0490ab4. Preloaded elf module "acpi.ko" at 0xc0490b50. Pentium Pro MTRR support enabled VESA: v3.0, 16384k memory, flags:0x1, mode table:0xc02f2417 (1000117) VESA: 3dfx Interactive, Inc. Using $PIR table, 9 entries at 0xc00fdd00 npx0: <math processor> on motherboard npx0: INT 16 interface acpi0: <BIOSTA AWRDACPI> on motherboard acpi0: power button is handled as a fixed feature programming model. Timecounter "ACPI" frequency 3579545 Hz acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 acpi_cpu0: <CPU> on acpi0 acpi_button0: <Power Button> on acpi0 acpi_button1: <Sleep Button> on acpi0 acpi_pcib0: <Host-PCI bridge> port 0x6000-0x607f,0x5000-0x500f,0x4080-0x40ff,0x4000-0x407f,0xcf8-0xcff on acpi0 pci0: <PCI bus> on acpi_pcib0 agp0: <VIA 82C8363 (Apollo KT133A) host to PCI bridge> mem 0xd0000000-0xd3ffffff at device 0.0 on pci0 pcib1: <PCI-PCI bridge> at device 1.0 on pci0 pci1: <PCI bus> on pcib1 pci1: <display, VGA> at 0.0 (no driver attached) isab0: <PCI-ISA bridge> at device 7.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <VIA 82C686 ATA100 controller> port 0xa000-0xa00f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: <VIA 83C572 USB controller> port 0xa400-0xa41f irq 11 at device 7.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 pci0: <bridge, PCI-unknown> at 7.4 (no driver attached) pcm0: <VIA VT82C686A> port 0xb400-0xb403,0xb000-0xb003,0xac00-0xacff irq 10 at device 7.5 on pci0 xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xb800-0xb87f mem 0xdb000000-0xdb00007f irq 5 at device 9.0 on pci0 xl0: Ethernet address: 00:01:02:b0:8d:ce miibus0: <MII bus> on xl0 xlphy0: <3c905C 10/100 internal PHY> on miibus0 xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ahc0: <Adaptec aic7850 SCSI adapter> port 0xbc00-0xbcff mem 0xdb001000-0xdb001fff irq 10 at device 10.0 on pci0 aic7850: Single Channel A, SCSI Id=7, 3/255 SCBs pcm1: <Creative CT5880-C> port 0xc000-0xc03f irq 11 at device 11.0 on pci0 atspeaker0 port 0x61 on acpi0 fdc0: <NEC 72065B or clone> port 0x3f7,0x3f0-0x3f5 irq 6 on acpi0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 sio0 port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A sio1: configured irq 0 not in bitmap of probed irqs 0 sio1: configured irq 0 not in bitmap of probed irqs 0 ppc0 port 0x378-0x37f irq 7 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold lpt0: <Printer> on ppbus0 lpt0: Interrupt-driven port pcfclock0: <PCF-1.0> on ppbus0 ppi0: <Parallel I/O> on ppbus0 pps0: <Pulse per second Timing Interface> on ppbus0 ppc1: cannot reserve I/O port range atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 kbd0 at atkbd0 psm0: <PS/2 Mouse> irq 12 on atkbdc0 psm0: model Generic PS/2 mouse, device ID 0 sio1: configured irq 0 not in bitmap of probed irqs 0 sio1: configured irq 0 not in bitmap of probed irqs 0 ppc1: cannot reserve I/O port range orm0: <Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xcbfff,0xcc000-0xcc7ff,0xcd000-0xcd7ff on isa0 sc0: <System console> on isa0 sc0: VGA <16 virtual consoles, flags=0x200> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 fdc1: cannot reserve I/O port range (6 ports) sio2: configured irq 10 not in bitmap of probed irqs 0 isic0 at port 0x1b00-0x1b1f,0x16e0-0x16ff,0x6e0-0x6ff,0xee0-0xeff,0x1300-0x131f,0x300-0x31f,0xb00-0xb1f irq 3 flags 0x4 on isa0 isic0: passive stack unit 0 isic0: AVM A1 or Fritz!Card Classic ppc1: cannot reserve I/O port range i4bctl: ISDN system control port attached IP packet filtering initialized, divert disabled, rule-based forwarding disabled, default to deny, logging limited to 100 packets/entry by default i4brbch: 2 raw B channel access device(s) attached i4bisppp: 2 ISDN SyncPPP device(s) attached (VJ header compression) i4b: ISDN call control device attached i4btrc: 2 ISDN trace device(s) attached acpi_cpu0: set speed to 100.0% acpi_cpu: CPU throttling enabled, 2 steps from 100% to 50.0% ad0: 19547MB <FUJITSU MPE3204AT> [39714/16/63] at ata0-master UDMA66 ad1: 58644MB <IC35L060AVER07-0> [119150/16/63] at ata0-slave tagged UDMA100 afd0: 96MB <IOMEGA ZIP 100 ATAPI> [32/64/96] at ata1-master PIO0 Waiting 6 seconds for SCSI devices to settle Mounting root from ufs:/dev/ad1s2a cd1 at ahc0 bus 0 target 2 lun 0 cd1: <PIONEER CD-ROM DR-U16S 1.01> Removable CD-ROM SCSI-2 device cd1: 10.000MB/s transfers (10.000MHz, offset 15) cd1: Attempt to query device size failed: NOT READY, Medium not present WARNING: / was not properly dismounted cd0 at ahc0 bus 0 target 1 lun 0 cd0: <TEAC CD-R55S 1.0Q> Removable CD-ROM SCSI-2 device cd0: 10.000MB/s transfers (10.000MHz, offset 15) cd0: Attempt to query device size failed: NOT READY, Medium not present /big: mount pending error: blocks 24 files 6