Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Feb 2003 19:30:41 -0500
From:      Don Bowman <don@sandvine.com>
To:        "'freebsd-stable@freebsd.org'" <freebsd-stable@freebsd.org>
Subject:   panic with fork?
Message-ID:  <FE045D4D9F7AED4CBFF1B3B813C8533701B35B45@mail.sandvine.com>

next in thread | raw e-mail | index | archive | help
I find that if I run the below:
$ while true; do daemon -f bash -c exit; done

on 4.7 release, that the machine will panic shortly
after 64K forks. This is on a SMP machine. Not sure if
the 64K number is a coincidence or not (its fairly repeatable,
usually its about ~66000).

Does anybody have any suggestions for recent fixes which
might address this before I dive in and look?

The backtrace is as below:

#0  dumpsys () at /d2/don/src/sys/kern/kern_shutdown.c:493
#1  0xc01b3bb8 in boot (howto=256) at
/d2/don/src/sys/kern/kern_shutdown.c:322
#2  0xc01b40e1 in panic (fmt=0xc031d419 "%s")
    at /d2/don/src/sys/kern/kern_shutdown.c:608
#3  0xc02c9f2e in trap_fatal (frame=0xe8bbbe38, eva=3217031168)
    at /d2/don/src/sys/i386/i386/trap.c:974
#4  0xc02c9b5d in trap_pfault (frame=0xe8bbbe38, usermode=0, eva=3217031168)
    at /d2/don/src/sys/i386/i386/trap.c:867
#5  0xc02c95ff in trap (frame={tf_fs = -1071120360, tf_es = 16, tf_ds = 16, 
      tf_edi = -8585856, tf_esi = -8585748, tf_ebp = -390349192, 
      tf_isp = -390349212, tf_ebx = -1059302024, tf_edx = 405549059, 
      tf_ecx = 0, tf_eax = 0, tf_trapno = 12, tf_err = 2, 
      tf_eip = -1070838665, tf_cs = 8, tf_eflags = 66054, tf_esp =
-390349168, 
      tf_ss = -1070836504}) at /d2/don/src/sys/i386/i386/trap.c:466
#6  0xc02c4c77 in pmap_kenter (va=0, pa=405549056)
    at /d2/don/src/sys/i386/i386/pmap.c:723
#7  0xc02c54e8 in pmap_pinit (pmap=0xff7cfdec)
    at /d2/don/src/sys/i386/i386/pmap.c:1153
#8  0xc027d2cd in vmspace_alloc (min=0, max=3217031168)
    at /d2/don/src/sys/vm/vm_map.c:177
#9  0xc027f7b7 in vmspace_fork (vm1=0xe8b72b40)
    at /d2/don/src/sys/vm/vm_map.c:2196
#10 0xc027c49b in vm_fork (p1=0xe3aadf20, p2=0xe9d295a0, flags=20)
    at /d2/don/src/sys/vm/vm_glue.c:232
#11 0xc01aba00 in fork1 (p1=0xe3aadf20, flags=20, procp=0xe8bbbf2c)
    at /d2/don/src/sys/kern/kern_fork.c:488
#12 0xc01ab166 in fork (p=0xe3aadf20, uap=0xe8bbbf80)
    at /d2/don/src/sys/kern/kern_fork.c:100
#13 0xc02ca29d in syscall2 (frame={tf_fs = 65583, tf_es = -1078001617, 
      tf_ds = -1078001617, tf_edi = 0, tf_esi = -1077937668, 
      tf_ebp = -1077937652, tf_isp = -390348844, tf_ebx = -1077937684, 
      tf_edx = -1077937684, tf_ecx = 1, tf_eax = 2, tf_trapno = 12, 
      tf_err = 2, tf_eip = 134890124, tf_cs = 31, tf_eflags = 582, 
      tf_esp = -1077937712, tf_ss = 47})
    at /d2/don/src/sys/i386/i386/trap.c:1175
#14 0xc02b476b in Xint0x80_syscall ()
#15 0x805610c in ?? ()
#16 0x80557cb in ?? ()
#17 0x8052d70 in ?? ()
#18 0x8052817 in ?? ()
#19 0x8054b69 in ?? ()
#20 0x8054abf in ?? ()
#21 0x8052ee9 in ?? ()
#22 0x8052817 in ?? ()
#23 0x804a191 in ?? ()
#24 0x8048885 in ?? ()
#25 0x8048135 in ?? ()


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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