Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Nov 2003 00:11:03 +0000
From:      Bruce M Simpson <bms@spc.org>
To:        freebsd-current@freebsd.org
Subject:   Panic in random_harvest()
Message-ID:  <20031119001103.GR89189@saboteur.dek.spc.org>

next in thread | raw e-mail | index | archive | help

--VV4b6MQE+OnNyhkM
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

I think a fix was already committed for this, but it's biting me hard
right now.

--VV4b6MQE+OnNyhkM
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="bt.7"
Content-Transfer-Encoding: quoted-printable

Script started on Wed Nov 19 00:09:06 2003
kimchi# gdb -k /home/bms/cvs/src/sys/i386/compile/KIMCHI vm=08=1B[K=08=1B[K=
=08/kernel.debig =08=08=1B[K=08=1B[Kug vmcore.7=0D=0D
GNU gdb 5.2.1 (FreeBSD)=0D
Copyright 2002 Free Software Foundation, Inc.=0D
GDB is free software, covered by the GNU General Public License, and you ar=
e=0D
welcome to change it and/or distribute copies of it under certain condition=
s.=0D
Type "show copying" to see the conditions.=0D
There is absolutely no warranty for GDB.  Type "show warranty" for details.=
=0D
This GDB was configured as "i386-undermydesk-freebsd"...=0D
panic: kmem_malloc: entry not found or misaligned=0D
panic messages:=0D
---=0D
panic: kmem_malloc: entry not found or misaligned=0D
Stack backtrace:=0D
panic: from debugger=0D
Uptime: 4m28s=0D
Dumping 255 MB=0D
 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240=0D
---=0D
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.=0D
Loaded symbols for /usr/home/bms/cvs/src/sys/i386/compile/KIMCHI/modules/us=
r/home/bms/cvs/src/sys/modules/vesa/vesa.ko.debug=0D
Reading symbols from /boot/kernel/if_vr.ko...done.=0D
Loaded symbols for /boot/kernel/if_vr.ko=0D
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.=0D
Loaded symbols for /usr/home/bms/cvs/src/sys/i386/compile/KIMCHI/modules/us=
r/home/bms/cvs/src/sys/modules/usb/usb.ko.debug=0D
Reading symbols from /boot/kernel/netgraph.ko...done.=0D
Loaded symbols for /boot/kernel/netgraph.ko=0D
Reading symbols from /boot/kernel/blank_saver.ko...done.=0D
Loaded symbols for /boot/kernel/blank_saver.ko=0D
#0  doadump () at ../../../kern/kern_shutdown.c:240=0D
240             dumping++;=0D
(kgdb) bt=0D
#0  doadump () at ../../../kern/kern_shutdown.c:240=0D
#1  0xc04c3edd in boot (howto=3D260) at ../../../kern/kern_shutdown.c:372=0D
#2  0xc04c4299 in panic () at ../../../kern/kern_shutdown.c:550=0D
#3  0xc0431bf2 in db_panic () at ../../../ddb/db_command.c:450=0D
#4  0xc0431b52 in db_command (last_cmdp=3D0xc0689af0, cmd_table=3D0x0, =0D
    aux_cmd_tablep=3D0xc0684a5c, aux_cmd_tablep_end=3D0xc0684a60)=0D
    at ../../../ddb/db_command.c:346=0D
#5  0xc0431c86 in db_command_loop () at ../../../ddb/db_command.c:472=0D
#6  0xc0434b4a in db_trap (type=3D3, code=3D0) at ../../../ddb/db_trap.c:73=
=0D
#7  0xc0620a65 in kdb_trap (type=3D3, code=3D0, regs=3D0xd65f1498)=0D
    at ../../../i386/i386/db_interface.c:171=0D
#8  0xc063159c in trap (frame=3D=0D
      {tf_fs =3D 24, tf_es =3D 16, tf_ds =3D 16, tf_edi =3D 1, tf_esi =3D -=
1066937799, tf_ebp =3D -698411804, tf_isp =3D -698411836, tf_ebx =3D 0, tf_=
edx =3D 0, tf_ecx =3D 1021, tf_eax =3D 18, tf_trapno =3D 3, tf_err =3D 0, t=
f_eip =3D -1067315964, tf_cs =3D 8, tf_eflags =3D 130, tf_esp =3D -10669251=
80, tf_ss =3D -1067016530})=0D
    at ../../../i386/i386/trap.c:580=0D
#9  0xc06223c8 in calltrap () at {standard input}:88=0D
#10 0xc04c41ec in panic (=0D
    fmt=3D0xc067d239 "kmem_malloc: entry not found or misaligned")=0D
    at ../../../kern/kern_shutdown.c:534=0D
#11 0xc05e60bd in kmem_malloc (map=3D0xc0c310a0, size=3D4096, flags=3D1)=0D
    at ../../../vm/vm_kern.c:426=0D
---Type <return> to continue, or q <return> to quit--- =0D
#12 0xc05f7e87 in page_alloc (zone=3D0xc0c3ba80, bytes=3D0, pflag=3D0x0, wa=
it=3D0)=0D
    at ../../../vm/uma_core.c:845=0D
#13 0xc05f7af9 in slab_zalloc (zone=3D0xc0c3ba80, wait=3D1)=0D
    at ../../../vm/uma_core.c:753=0D
#14 0xc05f8e36 in uma_zone_slab (zone=3D0xc0c3ba80, flags=3D1)=0D
    at ../../../vm/uma_core.c:1539=0D
#15 0xc05f908f in uma_zalloc_bucket (zone=3D0xc0c3ba80, flags=3D1)=0D
    at ../../../vm/uma_core.c:1635=0D
#16 0xc05f8ca5 in uma_zalloc_arg (zone=3D0xc0c3ba80, udata=3D0x0, flags=3D1=
)=0D
    at ../../../vm/uma_core.c:1469=0D
#17 0xc04b803c in malloc (size=3D2, type=3D0xc068e160, flags=3D1) at uma.h:=
234=0D
#18 0xc046f598 in random_harvest_internal (somecounter=3D442778455129, =0D
    entropy=3D0x0, count=3D8, bits=3D0, frac=3D0, origin=3DRANDOM_INTERRUPT=
)=0D
    at ../../../dev/random/randomdev.c:370=0D
#19 0xc046ed69 in random_harvest (entropy=3D0x0, count=3D0, bits=3D0, frac=
=3D0, =0D
    origin=3DRANDOM_START) at cpu.h:104=0D
#20 0xc04ae642 in ithread_schedule (ithread=3D0x17a70c59, do_switch=3D1)=0D
    at ../../../kern/kern_intr.c:378=0D
#21 0xc06264f9 in intr_execute_handlers (isrc=3D0xc06aec28, iframe=3D0x16)=
=0D
    at ../../../i386/i386/intr_machdep.c:206=0D
#22 0xc06342d8 in atpic_handle_intr (iframe=3D=0D
      {if_vec =3D 14, if_fs =3D 24, if_es =3D 16, if_ds =3D 16, if_edi =3D =
-1060958048, if_esi =3D -1060961344, if_ebp =3D -698411084, if_ebx =3D -106=
0960204, if_edx =3D 7, if_ec---Type <return> to continue, or q <return> to =
quit---=0D
x =3D 7, if_eax =3D -1060958048, if_eip =3D -1067552603, if_cs =3D 8, if_ef=
lags =3D 582, if_esp =3D -698411084, if_ss =3D -1067552851}) at ../../../i3=
86/isa/atpic.c:335=0D
#23 0xc06346ce in Xatpic_intr14 () at {standard input}:40=0D
#24 0xc05e7499 in vm_map_insert (map=3D0xc0c303c0, object=3D0xc0c310a0, =0D
    offset=3D47181824, start=3D3267354624, end=3D3267358720, prot=3D7 '\a',=
 =0D
    max=3D7 '\a', cow=3D0) at ../../../vm/vm_map.c:860=0D
#25 0xc05e5c96 in kmem_malloc (map=3D0xc0c310a0, size=3D3234009248, flags=
=3D1027)=0D
    at ../../../vm/vm_kern.c:348=0D
#26 0xc05f7e87 in page_alloc (zone=3D0xc0c3ba80, bytes=3D0, pflag=3D0x0, wa=
it=3D0)=0D
    at ../../../vm/uma_core.c:845=0D
#27 0xc05f7af9 in slab_zalloc (zone=3D0xc0c3ba80, wait=3D1027)=0D
    at ../../../vm/uma_core.c:753=0D
#28 0xc05f8e36 in uma_zone_slab (zone=3D0xc0c3ba80, flags=3D1283)=0D
    at ../../../vm/uma_core.c:1539=0D
#29 0xc05f908f in uma_zalloc_bucket (zone=3D0xc0c3ba80, flags=3D1283)=0D
    at ../../../vm/uma_core.c:1635=0D
#30 0xc05f8ca5 in uma_zalloc_arg (zone=3D0xc0c3ba80, udata=3D0x0, flags=3D1=
282)=0D
    at ../../../vm/uma_core.c:1469=0D
#31 0xc04b803c in malloc (size=3D2, type=3D0xc06a3f80, flags=3D1282) at uma=
=2Eh:234=0D
#32 0xc05c1ca7 in newallocindir (ip=3D0xc2bf38c0, ptrno=3D0, newblkno=3D133=
32696, =0D
    oldblkno=3D0) at ../../../ufs/ffs/ffs_softdep.c:1728=0D
#33 0xc05c1d3d in softdep_setup_allocindir_page (ip=3D0xc2bf38c0, lbn=3D404=
0, =0D
    bp=3D0x0, ptrno=3D0, newblkno=3D0, oldblkno=3D0, nbp=3D0xc7bd3028)=0D
---Type <return> to continue, or q <return> to quit---=0D
    at ../../../ufs/ffs/ffs_softdep.c:1755=0D
#34 0xc05b53c0 in ffs_balloc_ufs1 (vp=3D0xc2bf2104, startoffset=3D0, size=
=3D1, =0D
    cred=3D0xc2bc4a00, flags=3D2130706432, bpp=3D0xd65f1b70)=0D
    at ../../../ufs/ffs/ffs_balloc.c:326=0D
#35 0xc05cdb11 in ffs_write (ap=3D0xd65f1bc0) at ../../../ufs/ffs/ffs_vnops=
=2Ec:698=0D
#36 0xc052e941 in vn_write (fp=3D0xc2a25374, uio=3D0xd65f1c6c, =0D
    active_cred=3D0xc2bc4a00, flags=3D0, td=3D0xc29fcc80) at vnode_if.h:432=
=0D
#37 0xc04ec43b in dofilewrite (td=3D0xc29fcc80, fp=3D0xc2a25374, fd=3D0, =0D
    buf=3D0x8095e60, nbyte=3D0, offset=3D0, flags=3D0) at file.h:249=0D
#38 0xc04ec269 in write (td=3D0xc29fcc80, uap=3D0xd65f1d10)=0D
    at ../../../kern/sys_generic.c:331=0D
#39 0xc0631f39 in syscall (frame=3D=0D
      {tf_fs =3D 47, tf_es =3D 47, tf_ds =3D 47, tf_edi =3D 134831712, tf_e=
si =3D 32768, tf_ebp =3D -1077942792, tf_isp =3D -698409612, tf_ebx =3D 327=
67, tf_edx =3D 222, tf_ecx =3D 0, tf_eax =3D 4, tf_trapno =3D 0, tf_err =3D=
 2, tf_eip =3D 671912111, tf_cs =3D 31, tf_eflags =3D 642, tf_esp =3D -1077=
942820, tf_ss =3D 47})=0D
    at ../../../i386/i386/trap.c:1010=0D
#40 0xc062241d in Xint0x80_syscall () at {standard input}:130=0D
---Can't read userspace from dump, or kernel process---=0D
=0D
(kgdb) quit=0D
kimchi# ^D=08=08exit=0D

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

--VV4b6MQE+OnNyhkM--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031119001103.GR89189>