panic: "vm_thread_new: kstack allocation failed"

From: Stephane E. Potvin <sepotvin_at_videotron.ca>
Date: Tue, 10 May 2005 16:40:49 -0400
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The panic happened on a recent current built: May 2 11:18:43 EDT 2005.
Source was fetched around 1 hour before that (time to do a
buildworld/buildkernel)


Copyright (c) 1992-2005 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 6.0-CURRENT #6: Mon May  2 11:18:43 EDT 2005
    spotvin_at_homer.telcobridges.com:/usr/obj/usr/src/sys/HOMER
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 3.40GHz (3391.52-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf25  Stepping = 5

Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Hyperthreading: 2 logical CPUs
real memory  = 1073389568 (1023 MB)
avail memory = 1041440768 (993 MB)
ACPI APIC Table: <DELL   CPi R  >
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1

I was running firefox, thunderbird, QEMU (with the kqemu patch) and
OpenOffice 2.0-beta at the time of the panic. The system was not swapping
when it paniced.

#0  doadump () at pcpu.h:165
165             __asm __volatile("movl %%fs:0,%0" : "=r" (td));
(kgdb) bt
#0  doadump () at pcpu.h:165
#1  0xc04a8288 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:397
#2  0xc04a85b6 in panic (fmt=0xc0624b5c "vm_thread_new: kstack allocation
failed")
    at /usr/src/sys/kern/kern_shutdown.c:553
#3  0xc05a6399 in vm_thread_new (td=0xc4897480, pages=2) at
/usr/src/sys/vm/vm_glue.c:271
#4  0xc04b2cb6 in thread_init (mem=0xc4897480, size=372, flags=259) at
/usr/src/sys/kern/kern_thread.c:184
#5  0xc059fc39 in slab_zalloc (zone=0xc10462c0, wait=259) at
/usr/src/sys/vm/uma_core.c:841
#6  0xc05a11ff in uma_zone_slab (zone=0xc10462c0, flags=3) at
/usr/src/sys/vm/uma_core.c:2011
#7  0xc05a141b in uma_zalloc_bucket (zone=0xc10462c0, flags=3) at
/usr/src/sys/vm/uma_core.c:2120
#8  0xc05a1092 in uma_zalloc_arg (zone=0xc10462c0, udata=0x0, flags=2) at
/usr/src/sys/vm/uma_core.c:1928
#9  0xc04b31a6 in thread_alloc () at uma.h:276
#10 0xc0496c48 in thread_alloc_spare (td=0xc45c5900) at
/usr/src/sys/kern/kern_kse.c:1037
#11 0xc04975a0 in thread_userret (td=0xc45c5900, frame=0xff8b2d38) at
/usr/src/sys/kern/kern_kse.c:1421
#12 0xc04ca373 in userret (td=0xc45c5900, frame=0xff8b2d38, oticks=0) at
/usr/src/sys/kern/subr_trap.c:120
#13 0xc0492d4b in fork_return (td=0xc45c5900, frame=0x0) at
/usr/src/sys/kern/kern_fork.c:818
#14 0xc0492c8d in fork_exit (callout=0xc0492d2a <fork_return>, arg=0x0,
frame=0x0)
    at /usr/src/sys/kern/kern_fork.c:789
#15 0xc05d831c in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:208

(kgdb) frame 3
#3  0xc05a6399 in vm_thread_new (td=0xc4897480, pages=2) at
/usr/src/sys/vm/vm_glue.c:271
271                     panic("vm_thread_new: kstack allocation failed");
(kgdb) list
266              * Get a kernel virtual address for this thread's kstack.
267              */
268             ks = kmem_alloc_nofault(kernel_map,
269                (pages + KSTACK_GUARD_PAGES) * PAGE_SIZE);
270             if (ks == 0)
271                     panic("vm_thread_new: kstack allocation failed");
272             if (KSTACK_GUARD_PAGES != 0) {
273                     pmap_qremove(ks, KSTACK_GUARD_PAGES);
274                     ks += KSTACK_GUARD_PAGES * PAGE_SIZE;
275             }


I'll keep the core around in case more information is needed.

Steph
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (FreeBSD)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCgRxQmdOXtTCX/nsRAotdAJ9Hn22KF4qoEHdd9oQtSfy6LYuNiACfT88z
TyVETFH6eoQdk5qOA/lbhcE=
=CHnJ
-----END PGP SIGNATURE-----
Received on Tue May 10 2005 - 18:41:10 UTC

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