panic: free: address 0xc0c21a34(0xc0c21000) has not been allocated.

From: David Wolfskill <david_at_catwhisker.org>
Date: Thu, 18 Dec 2003 08:38:06 -0800 (PST)
I don't recall this being reported.

Sources updated as of 0347 hrs. US/Pacific today; SMP (2x886 MHz PIII).
Kernel is built without INVARIANTS or WITNESS, but I do have a verbose
boot (by default).  Only access to the system is via serial console --
it's at home; I'm at work.  (And besides, the Realtek 8129-based NIC
only works in -STABLE since September.)

The panic in question appears to be quite repeatable:  after the first
one, I (inadvertently) rebooted, so I did a "boot -s" and the panic
recurred.

Here are the boot messages, then what I see from poking around a
bit (cut'n'paste).

SMAP type=01 base=0000000000000000 len=000000000009fc00
SMAP type=01 base=000000000009fc00 len=0000000000000400
SMAP type=02 base=00000000000f0000 len=0000000000010000
SMAP type=02 base=00000000fec00000 len=0000000001400000
SMAP type=01 base=0000000000100000 len=000000001fef0000
SMAP type=03 base=000000001fff3000 len=000000000000d000
SMAP type=04 base=000000001fff0000 len=0000000000003000
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.2-CURRENT #31: Thu Dec 18 14:55:16 PST 2003
    root_at_freebeast.catwhisker.org:/common/S4/obj/usr/src/sys/FREEBEAST
Preloaded elf kernel "/boot/kernel/kernel" at 0xc085f000.
Preloaded elf module "/boot/kernel/snd_cmi.ko" at 0xc085f1f4.
Preloaded elf module "/boot/kernel/snd_pcm.ko" at 0xc085f2a0.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc085f34c.
Table 'FACP' at 0x1fff3040
Table 'APIC' at 0x1fff6280
MADT: Found table at 0x1fff6280
MP Configuration Table version 1.4 found at 0xc00f1400
APIC: Using the MADT enumerator.
MADT: Found CPU APIC ID 0 ACPI ID 0: enabled
SMP: Added CPU 0 (AP)
MADT: Found CPU APIC ID 1 ACPI ID 1: enabled
SMP: Added CPU 1 (AP)
ACPI APIC Table: <VIA694 AWRDACPI>
Calibrating clock(s) ... i8254 clock: 1193294 Hz
CLK_USE_I8254_CALIBRATION not specified - using default frequency
Timecounter "i8254" frequency 1193182 Hz quality 0
Calibrating TSC clock ... TSC clock: 876398408 Hz
CPU: Intel Pentium III (876.40-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x68a  Stepping = 10
  Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 536805376 (511 MB)
Physical memory chunk(s):
0x0000000000001000 - 0x000000000009efff, 647168 bytes (158 pages)
0x0000000000100000 - 0x00000000003fffff, 3145728 bytes (768 pages)
0x0000000000c29000 - 0x000000001f6c9fff, 514461696 bytes (125601 pages)
avail memory = 511873024 (488 MB)
APIC ID: physical 0, logical 0:0
APIC ID: physical 1, logical 0:1
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
bios32: Found BIOS32 Service Directory header at 0xc00faf20
bios32: Entry = 0xfb390 (c00fb390)  Rev = 0  Len = 1
pcibios: PCI BIOS entry at 0xf0000+0xb3c0
pnpbios: Found PnP BIOS data at 0xc00fbde0
pnpbios: Entry = f0000:be10  Rev = 1.0
Other BIOS signatures found:
APIC: CPU 0 has ACPI ID 0
APIC: CPU 1 has ACPI ID 1
MADT: Found IO APIC ID 2, Interrupt 0 at 0xfec00000
ioapic0: intpin 0 -> ExtINT (edge, activehi)
ioapic0: intpin 1 -> irq 1 (edge, activehi)
ioapic0: intpin 2 -> irq 2 (edge, activehi)
ioapic0: intpin 3 -> irq 3 (edge, activehi)
ioapic0: intpin 4 -> irq 4 (edge, activehi)
ioapic0: intpin 5 -> irq 5 (edge, activehi)
ioapic0: intpin 6 -> irq 6 (edge, activehi)
ioapic0: intpin 7 -> irq 7 (edge, activehi)
ioapic0: intpin 8 -> irq 8 (edge, activehi)
ioapic0: intpin 9 -> irq 9 (edge, activehi)
ioapic0: intpin 10 -> irq 10 (edge, activehi)
ioapic0: intpin 11 -> irq 11 (edge, activehi)
ioapic0: intpin 12 -> irq 12 (edge, activehi)
ioapic0: intpin 13 -> irq 13 (edge, activehi)
ioapic0: intpin 14 -> irq 14 (edge, activehi)
ioapic0: intpin 15 -> irq 15 (edge, activehi)
ioapic0: intpin 16 -> irq 16 (level, activelo)
ioapic0: intpin 17 -> irq 17 (level, activelo)
ioapic0: intpin 18 -> irq 18 (level, activelo)
ioapic0: intpin 19 -> irq 19 (level, activelo)
ioapic0: intpin 20 -> irq 20 (level, activelo)
ioapic0: intpin 21 -> irq 21 (level, activelo)
ioapic0: intpin 22 -> irq 22 (level, activelo)
ioapic0: intpin 23 -> irq 23 (level, activelo)
MADT: intr override: source 0, irq 2
ioapic0: Routing IRQ 0 -> intpin 2
ioapic0: intpin 2 trigger: edge
ioapic0: intpin 2 polarity: active-hi
MADT: intr override: source 9, irq 9
ioapic0: intpin 9 trigger: edge
ioapic0: intpin 9 polarity: active-hi
ioapic0 <Version 1.1> irqs 0-23 on motherboard
cpu0 BSP:
     ID: 0x00000000   VER: 0x00040011 LDR: 0x01000000 DFR: 0x0fffffff
  lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff
wlan: <802.11 Link Layer>
null: <null device, zero device>
random: <entropy source>
mem: <memory & I/O>
Pentium Pro MTRR support enabled
npx0: [FAST]
stray irq13
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <VIA694 AWRDACPI> on motherboard
pci_open(1):    mode 1 addr port (0x0cf8) is 0x80000060
pci_open(1a):   mode1res=0x80000000 (0x80000000)
pci_cfgcheck:   device 0 [class=060000] [hdr=00] is there (id=30911106)
pcibios: BIOS version 2.10
Using $PIR table, 8 entries at 0xc00fde30
PCI-Only Interrupts: 5 10 11 12
Location  Bus Device Pin  Link  IRQs
slot 1      0    9    A   0x01  3 4 5 7 9 10 11 12 14 15
slot 1      0    9    B   0x02  3 4 5 7 9 10 11 12 14 15
slot 1      0    9    C   0x03  3 4 5 7 9 10 11 12 14 15
slot 1      0    9    D   0x04  3 4 5 7 9 10 11 12 14 15
slot 2      0   10    A   0x02  3 4 5 7 9 10 11 12 14 15
slot 2      0   10    B   0x03  3 4 5 7 9 10 11 12 14 15
slot 2      0   10    C   0x04  3 4 5 7 9 10 11 12 14 15
slot 2      0   10    D   0x01  3 4 5 7 9 10 11 12 14 15
slot 3      0   11    A   0x03  3 4 5 7 9 10 11 12 14 15
slot 3      0   11    B   0x04  3 4 5 7 9 10 11 12 14 15
slot 3      0   11    C   0x01  3 4 5 7 9 10 11 12 14 15
slot 3      0   11    D   0x02  3 4 5 7 9 10 11 12 14 15
slot 4      0   12    A   0x04  3 4 5 7 9 10 11 12 14 15
slot 4      0   12    B   0x01  3 4 5 7 9 10 11 12 14 15
slot 4      0   12    C   0x02  3 4 5 7 9 10 11 12 14 15
slot 4      0   12    D   0x03  3 4 5 7 9 10 11 12 14 15
slot 5      0   13    A   0x01  3 4 5 7 9 10 11 12 14 15
slot 5      0   13    B   0x02  3 4 5 7 9 10 11 12 14 15
slot 5      0   13    C   0x03  3 4 5 7 9 10 11 12 14 15
slot 5      0   13    D   0x04  3 4 5 7 9 10 11 12 14 15
slot 6      0   14    A   0x02  3 4 5 7 9 10 11 12 14 15
slot 6      0   14    B   0x03  3 4 5 7 9 10 11 12 14 15
slot 6      0   14    C   0x04  3 4 5 7 9 10 11 12 14 15
slot 6      0   14    D   0x01  3 4 5 7 9 10 11 12 14 15
slot 7      0   15    A   0x03  3 4 5 7 9 10 11 12 14 15
slot 7      0   15    B   0x04  3 4 5 7 9 10 11 12 14 15
slot 7      0   15    C   0x01  3 4 5 7 9 10 11 12 14 15
slot 7      0   15    D   0x02  3 4 5 7 9 10 11 12 14 15
embedded    0    1    A   0x01  3 4 5 7 9 10 11 12 14 15
embedded    0    1    B   0x02  3 4 5 7 9 10 11 12 14 15
embedded    0    1    C   0x03  3 4 5 7 9 10 11 12 14 15
embedded    0    1    D   0x04  3 4 5 7 9 10 11 12 14 15
acpi_bus_number: root bus has no _BBN, assuming 0
AcpiOsDerivePciId: bus 0 dev 17 func 0
acpi0: Power Button (fixed)
ACPI timer looks GOOD min = 2, max = 3, width = 1
ACPI timer looks GOOD min = 2, max = 3, width = 1
ACPI timer looks GOOD min = 2, max = 3, width = 1
ACPI timer looks GOOD min = 2, max = 3, width = 1
ACPI timer looks GOOD min = 2, max = 3, width = 1
ACPI timer looks GOOD min = 2, max = 3, width = 1
ACPI timer looks GOOD min = 2, max = 3, width = 1
ACPI timer looks GOOD min = 2, max = 3, width = 1
ACPI timer looks GOOD min = 2, max = 3, width = 1
ACPI timer looks GOOD min = 2, max = 3, width = 1
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
acpi_cpu0: <CPU> on acpi0
acpi_cpu1: <CPU> on acpi0
acpi_tz0: <Thermal Zone> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0x5000-0x500f,0x4080-0x40ff,0x4000-0x407f,0xcf8-0xcff on acpi0
pcib0: could not get PCI interrupt routing table for \_SB_.PCI0 - AE_BAD_DATA
---- initial configuration ------------------------
---- before setting priority for links ------------
---- before fixup boot-disabled links -------------
---- after fixup boot-disabled links --------------
---- arbitrated configuration ---------------------
pci0: <ACPI PCI bus> on pcib0
pci0: physical bus=0
        map[10]: type 3, range 32, base da000000, size 22, enabled
found-> vendor=0x1106, dev=0x3091, revid=0x01
        bus=0, slot=0, func=0
        class=06-00-00, hdrtype=0x00, mfdev=0
        cmdreg=0x0006, statreg=0xa210, cachelnsz=0 (dwords)
        lattimer=0x08 (240 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
        powerspec 2  supports D0 D3  current D0
found-> vendor=0x1106, dev=0xb091, revid=0x00
        bus=0, slot=1, func=0
        class=06-04-00, hdrtype=0x01, mfdev=0
        cmdreg=0x0007, statreg=0x2230, cachelnsz=0 (dwords)
        lattimer=0x00 (0 ns), mingnt=0x0c (3000 ns), maxlat=0x00 (0 ns)
        map[10]: type 4, range 32, base 0000c000, size  7, enabled
        map[14]: type 1, range 32, base da401000, size  7, enabled
pcib0: matched entry for 0.9.INTA (source )
pcib0: device is hardwired to IRQ 16
panic: free: address 0xc0c21a34(0xc0c21000) has not been allocated.

cpuid = 0; 
Debugger("panic")
Stopped at      Debugger+0x55:  xchgl   %ebx,in_Debugger.0
db> tr
Debugger(c06d9003,0,c06d7edb,c0c2199c,100) at Debugger+0x55
panic(c06d7edb,c0c21a34,c0c21000,0,c479cd00) at panic+0x156
free(c0c21a34,c084d940,c0c21aa0,c083dccb,c0c21a34) at free+0x93
AcpiOsFree(c0c21a34,c0849f34,10,9,41) at AcpiOsFree+0x19
acpi_pcib_route_interrupt(c4783180,c479c800,1,c47922d0,c479c800) at acpi_pcib_route_interrupt+0x85b
acpi_pcib_acpi_route_interrupt(c4783180,c479c800,1,c479cd00,c479c908) at acpi_pcib_acpi_route_interrupt+0x31
pci_assign_interrupt_method(c479cd00,c479c800,c06fdd3c,0,24) at pci_assign_interrupt_method+0x70
pci_add_resources(c4783180,c479cd00,c479c800,0,c4783180) at pci_add_resources+0x13e
pci_add_child(c479cd00,c479c900,9,0,60) at pci_add_child+0x59
pci_add_children(c479cd00,0,60,c0c21b98,c479cd00) at pci_add_children+0x131
acpi_pci_attach(c479cd00,c477804c,c06f93e4,0,c0848406) at acpi_pci_attach+0xa4
device_probe_and_attach(c479cd00,c0848406,c0c21c08,c083d41b,c4783180) at device_probe_and_attach+0xa9
bus_generic_attach(c4783180,c47922d0,0,c0848406,c47922c0) at bus_generic_attach+0x28
acpi_pcib_attach(c4783180,c47922d0,0,c084d4d8,c06f93e4) at acpi_pcib_attach+0xdb
acpi_pcib_acpi_attach(c4783180,c477784c,c06f93e4,6,c4783300) at acpi_pcib_acpi_attach+0x203
device_probe_and_attach(c4783180,4,c0c21ca8,c0836243,c4783a80) at device_probe_and_attach+0xa9
bus_generic_attach(c4783a80,c1cedd60,64,c0836260,c4783a80) at bus_generic_attach+0x28
acpi_probe_children(c4783a80,c0837ac0,c4783a00,0,1a4) at acpi_probe_children+0xa3
acpi_attach(c4783a80,c476d84c,c06f93e4,c084cc70,c1ce6e30) at acpi_attach+0x6fb
device_probe_and_attach(c4783a80,c4783c00,c0c21d30,c06a1e2c,c4783c00) at device_probe_and_attach+0xa9
bus_generic_attach(c4783c00,c4783c00,c0c21d5c,c0511229,c4783c00) at bus_generic_attach+0x28
nexus_attach(c4783c00,c475504c,c06f93e4,0,c1cf07f4) at nexus_attach+0x1c
device_probe_and_attach(c4783c00,c1cf07f4,c0c21d80,c068f409,c1d01a00) at device_probe_and_attach+0xa9
root_bus_configure(c1d01a00,c06f03c0,0,c0c21d98,c04c92a5) at root_bus_configure+0x28
configure(0,c1e000,c1ec00,c1e000,0) at configure+0x29
mi_startup() at mi_startup+0xb5
begin() at begin+0x2c
db> show pcpu 0
cpuid        = 0
curthread    = 0xc072e980: pid 0 "swapper"
curpcb       = 0
fpcurthread  = none
idlethread   = 0xc1d03780: pid 12 "idle: cpu0"
APIC ID      = 0
currentldt   = 0x28
db> show pcpu 1
cpuid        = 1
curthread    = 0xc1d03640: pid 11 "idle: cpu1"
curpcb       = 0
fpcurthread  = none
idlethread   = 0xc1d03640: pid 11 "idle: cpu1"
APIC ID      = 1
currentldt   = 0x28
db> ps
  pid   proc     uarea   uid  ppid  pgrp  flag   stat  wmesg    wchan  cmd
   44 c4750000 d8a25000    0     0     0 0000204 new [RUNQ] acpi_thermal
    8 c47501c4 d8a26000    0     0     0 0000204 new [RUNQ] acpi_task2
    7 c4750388 d8a27000    0     0     0 0000204 new [RUNQ] acpi_task1
    6 c475054c d8a28000    0     0     0 0000204 new [RUNQ] acpi_task0
   43 c4750710 d8a29000    0     0     0 0000204 new [IWAIT] swi5:+
    5 c47508d4 d8a2a000    0     0     0 0000204 new [RUNQ] taskqueue
   42 c4750a98 d8a2b000    0     0     0 0000204 new [RUNQ] swi7: acpitaskq
   41 c4750c5c d8a50000    0     0     0 0000204 new [IWAIT] swi6:+
   40 c4750e20 d8a51000    0     0     0 0000204 new [IWAIT] swi7: task queue
   39 c4754000 d8a52000    0     0     0 0000204 new [RUNQ] random
    4 c470a54c d89f2000    0     0     0 0000204 new [RUNQ] g_down
    3 c470a710 d89f3000    0     0     0 0000204 new [RUNQ] g_up
    2 c470a8d4 d89f4000    0     0     0 0000204 new [RUNQ] g_event
   38 c470aa98 d89f5000    0     0     0 0000204 new [IWAIT] swi1: net
   37 c470ac5c d89f6000    0     0     0 0000204 new [IWAIT] swi4: vm
   36 c470ae20 d89f7000    0     0     0 000020c new [IWAIT] swi8: clock
   35 c471b000 d89f8000    0     0     0 0000204 new [IWAIT] irq0:
   34 c471b1c4 d8a1d000    0     0     0 0000204 new [IWAIT] irq23:
   33 c471b388 d8a1e000    0     0     0 0000204 new [IWAIT] irq22:
   32 c471b54c d8a1f000    0     0     0 0000204 new [IWAIT] irq21:
   31 c471b710 d8a20000    0     0     0 0000204 new [IWAIT] irq20:
   30 c471b8d4 d8a21000    0     0     0 0000204 new [IWAIT] irq19:
   29 c1d0b1c4 d7811000    0     0     0 0000204 new [IWAIT] irq18:
   28 c1d0b388 d7812000    0     0     0 0000204 new [IWAIT] irq17:
   27 c1d0b54c d7813000    0     0     0 0000204 new [IWAIT] irq16:
   26 c1d0b710 d7814000    0     0     0 0000204 new [IWAIT] irq15:
   25 c1d0b8d4 d7839000    0     0     0 0000204 new [IWAIT] irq14:
   24 c1d0ba98 d783a000    0     0     0 0000204 new [IWAIT] irq13:
   23 c1d0bc5c d783b000    0     0     0 0000204 new [IWAIT] irq12:
   22 c1d0be20 d783c000    0     0     0 0000204 new [IWAIT] irq11:
   21 c470a000 d89ef000    0     0     0 0000204 new [IWAIT] irq10:
   20 c470a1c4 d89f0000    0     0     0 0000204 new [IWAIT] irq9: acpi0
   19 c470a388 d89f1000    0     0     0 0000204 new [IWAIT] irq8:
   18 c1d02000 d77bf000    0     0     0 0000204 new [IWAIT] irq7:
   17 c1d021c4 d7808000    0     0     0 0000204 new [IWAIT] irq6:
   16 c1d02388 d7809000    0     0     0 0000204 new [IWAIT] irq5:
   15 c1d0254c d780a000    0     0     0 0000204 new [IWAIT] irq4:
   14 c1d02710 d780b000    0     0     0 0000204 new [IWAIT] irq3:
   13 c1d028d4 d780c000    0     0     0 0000204 new [IWAIT] irq1:
   12 c1d02a98 d780d000    0     0     0 000020c [Can run] idle: cpu0
   11 c1d02c5c d780e000    0     0     0 000020c [Can run] idle: cpu1
    1 c1d02e20 d780f000    0     0     0 0000200 new [INACTIVE] swapper
   10 c1d0b000 d7810000    0     0     0 0000204 new [RUNQ] ktrace
    0 c072e7a0 c0c1f000    0     0     0 0000200 [CPU 0] swapper
db> 

So I have the machine sitting in the panic after the "boot -s"; I can
leave it that way for up to about 13 hours or so, if anyone wants me to
poke around and/or tweak things.  And I have a local private CVS mirror,
so making changes to the sources is pretty easy (once I reboot --
possibly to -STABLE).

(This is a machine that's been tracking -STABLE and -CURRENT daily for
quite a while; its -STABLE kernel is numbered 755 or so.)

Thanks,
david
-- 
David H. Wolfskill				david_at_catwhisker.org
If you want true virus-protection for your PC, install a non-Microsoft OS
on it.  Plausible candidates include FreeBSD, Linux, NetBSD, OpenBSD, and
Solaris (in alphabetical order).
Received on Thu Dec 18 2003 - 07:39:45 UTC

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