Panic in random_harvest()

Bruce M Simpson bms at spc.org
Tue Nov 18 16:11:21 PST 2003


I think a fix was already committed for this, but it's biting me hard
right now.
-------------- next part --------------
Script started on Wed Nov 19 00:09:06 2003
kimchi# gdb -k /home/bms/cvs/src/sys/i386/compile/KIMCHI vm/kernel.debig ug vmcore.7

GNU gdb 5.2.1 (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 "i386-undermydesk-freebsd"...
panic: kmem_malloc: entry not found or misaligned
panic messages:
---
panic: kmem_malloc: entry not found or misaligned
Stack backtrace:
panic: from debugger
Uptime: 4m28s
Dumping 255 MB
 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
---
Reading symbols from /usr/home/bms/cvs/src/sys/i386/compile/KIMCHI/modules/usr/home/bms/cvs/src/sys/modules/vesa/vesa.ko.debug...done.
Loaded symbols for /usr/home/bms/cvs/src/sys/i386/compile/KIMCHI/modules/usr/home/bms/cvs/src/sys/modules/vesa/vesa.ko.debug
Reading symbols from /boot/kernel/if_vr.ko...done.
Loaded symbols for /boot/kernel/if_vr.ko
Reading symbols from /usr/home/bms/cvs/src/sys/i386/compile/KIMCHI/modules/usr/home/bms/cvs/src/sys/modules/usb/usb.ko.debug...done.
Loaded symbols for /usr/home/bms/cvs/src/sys/i386/compile/KIMCHI/modules/usr/home/bms/cvs/src/sys/modules/usb/usb.ko.debug
Reading symbols from /boot/kernel/netgraph.ko...done.
Loaded symbols for /boot/kernel/netgraph.ko
Reading symbols from /boot/kernel/blank_saver.ko...done.
Loaded symbols for /boot/kernel/blank_saver.ko
#0  doadump () at ../../../kern/kern_shutdown.c:240
240             dumping++;
(kgdb) bt
#0  doadump () at ../../../kern/kern_shutdown.c:240
#1  0xc04c3edd in boot (howto=260) at ../../../kern/kern_shutdown.c:372
#2  0xc04c4299 in panic () at ../../../kern/kern_shutdown.c:550
#3  0xc0431bf2 in db_panic () at ../../../ddb/db_command.c:450
#4  0xc0431b52 in db_command (last_cmdp=0xc0689af0, cmd_table=0x0, 
    aux_cmd_tablep=0xc0684a5c, aux_cmd_tablep_end=0xc0684a60)
    at ../../../ddb/db_command.c:346
#5  0xc0431c86 in db_command_loop () at ../../../ddb/db_command.c:472
#6  0xc0434b4a in db_trap (type=3, code=0) at ../../../ddb/db_trap.c:73
#7  0xc0620a65 in kdb_trap (type=3, code=0, regs=0xd65f1498)
    at ../../../i386/i386/db_interface.c:171
#8  0xc063159c in trap (frame=
      {tf_fs = 24, tf_es = 16, tf_ds = 16, tf_edi = 1, tf_esi = -1066937799, tf_ebp = -698411804, tf_isp = -698411836, tf_ebx = 0, tf_edx = 0, tf_ecx = 1021, tf_eax = 18, tf_trapno = 3, tf_err = 0, tf_eip = -1067315964, tf_cs = 8, tf_eflags = 130, tf_esp = -1066925180, tf_ss = -1067016530})
    at ../../../i386/i386/trap.c:580
#9  0xc06223c8 in calltrap () at {standard input}:88
#10 0xc04c41ec in panic (
    fmt=0xc067d239 "kmem_malloc: entry not found or misaligned")
    at ../../../kern/kern_shutdown.c:534
#11 0xc05e60bd in kmem_malloc (map=0xc0c310a0, size=4096, flags=1)
    at ../../../vm/vm_kern.c:426
---Type <return> to continue, or q <return> to quit--- 
#12 0xc05f7e87 in page_alloc (zone=0xc0c3ba80, bytes=0, pflag=0x0, wait=0)
    at ../../../vm/uma_core.c:845
#13 0xc05f7af9 in slab_zalloc (zone=0xc0c3ba80, wait=1)
    at ../../../vm/uma_core.c:753
#14 0xc05f8e36 in uma_zone_slab (zone=0xc0c3ba80, flags=1)
    at ../../../vm/uma_core.c:1539
#15 0xc05f908f in uma_zalloc_bucket (zone=0xc0c3ba80, flags=1)
    at ../../../vm/uma_core.c:1635
#16 0xc05f8ca5 in uma_zalloc_arg (zone=0xc0c3ba80, udata=0x0, flags=1)
    at ../../../vm/uma_core.c:1469
#17 0xc04b803c in malloc (size=2, type=0xc068e160, flags=1) at uma.h:234
#18 0xc046f598 in random_harvest_internal (somecounter=442778455129, 
    entropy=0x0, count=8, bits=0, frac=0, origin=RANDOM_INTERRUPT)
    at ../../../dev/random/randomdev.c:370
#19 0xc046ed69 in random_harvest (entropy=0x0, count=0, bits=0, frac=0, 
    origin=RANDOM_START) at cpu.h:104
#20 0xc04ae642 in ithread_schedule (ithread=0x17a70c59, do_switch=1)
    at ../../../kern/kern_intr.c:378
#21 0xc06264f9 in intr_execute_handlers (isrc=0xc06aec28, iframe=0x16)
    at ../../../i386/i386/intr_machdep.c:206
#22 0xc06342d8 in atpic_handle_intr (iframe=
      {if_vec = 14, if_fs = 24, if_es = 16, if_ds = 16, if_edi = -1060958048, if_esi = -1060961344, if_ebp = -698411084, if_ebx = -1060960204, if_edx = 7, if_ec---Type <return> to continue, or q <return> to quit---
x = 7, if_eax = -1060958048, if_eip = -1067552603, if_cs = 8, if_eflags = 582, if_esp = -698411084, if_ss = -1067552851}) at ../../../i386/isa/atpic.c:335
#23 0xc06346ce in Xatpic_intr14 () at {standard input}:40
#24 0xc05e7499 in vm_map_insert (map=0xc0c303c0, object=0xc0c310a0, 
    offset=47181824, start=3267354624, end=3267358720, prot=7 '\a', 
    max=7 '\a', cow=0) at ../../../vm/vm_map.c:860
#25 0xc05e5c96 in kmem_malloc (map=0xc0c310a0, size=3234009248, flags=1027)
    at ../../../vm/vm_kern.c:348
#26 0xc05f7e87 in page_alloc (zone=0xc0c3ba80, bytes=0, pflag=0x0, wait=0)
    at ../../../vm/uma_core.c:845
#27 0xc05f7af9 in slab_zalloc (zone=0xc0c3ba80, wait=1027)
    at ../../../vm/uma_core.c:753
#28 0xc05f8e36 in uma_zone_slab (zone=0xc0c3ba80, flags=1283)
    at ../../../vm/uma_core.c:1539
#29 0xc05f908f in uma_zalloc_bucket (zone=0xc0c3ba80, flags=1283)
    at ../../../vm/uma_core.c:1635
#30 0xc05f8ca5 in uma_zalloc_arg (zone=0xc0c3ba80, udata=0x0, flags=1282)
    at ../../../vm/uma_core.c:1469
#31 0xc04b803c in malloc (size=2, type=0xc06a3f80, flags=1282) at uma.h:234
#32 0xc05c1ca7 in newallocindir (ip=0xc2bf38c0, ptrno=0, newblkno=13332696, 
    oldblkno=0) at ../../../ufs/ffs/ffs_softdep.c:1728
#33 0xc05c1d3d in softdep_setup_allocindir_page (ip=0xc2bf38c0, lbn=4040, 
    bp=0x0, ptrno=0, newblkno=0, oldblkno=0, nbp=0xc7bd3028)
---Type <return> to continue, or q <return> to quit---
    at ../../../ufs/ffs/ffs_softdep.c:1755
#34 0xc05b53c0 in ffs_balloc_ufs1 (vp=0xc2bf2104, startoffset=0, size=1, 
    cred=0xc2bc4a00, flags=2130706432, bpp=0xd65f1b70)
    at ../../../ufs/ffs/ffs_balloc.c:326
#35 0xc05cdb11 in ffs_write (ap=0xd65f1bc0) at ../../../ufs/ffs/ffs_vnops.c:698
#36 0xc052e941 in vn_write (fp=0xc2a25374, uio=0xd65f1c6c, 
    active_cred=0xc2bc4a00, flags=0, td=0xc29fcc80) at vnode_if.h:432
#37 0xc04ec43b in dofilewrite (td=0xc29fcc80, fp=0xc2a25374, fd=0, 
    buf=0x8095e60, nbyte=0, offset=0, flags=0) at file.h:249
#38 0xc04ec269 in write (td=0xc29fcc80, uap=0xd65f1d10)
    at ../../../kern/sys_generic.c:331
#39 0xc0631f39 in syscall (frame=
      {tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = 134831712, tf_esi = 32768, tf_ebp = -1077942792, tf_isp = -698409612, tf_ebx = 32767, tf_edx = 222, tf_ecx = 0, tf_eax = 4, tf_trapno = 0, tf_err = 2, tf_eip = 671912111, tf_cs = 31, tf_eflags = 642, tf_esp = -1077942820, tf_ss = 47})
    at ../../../i386/i386/trap.c:1010
#40 0xc062241d in Xint0x80_syscall () at {standard input}:130
---Can't read userspace from dump, or kernel process---

(kgdb) quit
kimchi# ^Dexit

Script done on Wed Nov 19 00:09:31 2003


More information about the freebsd-current mailing list