From owner-freebsd-hackers@FreeBSD.ORG Fri Feb 10 18:01:33 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 96E9816A420 for ; Fri, 10 Feb 2006 18:01:33 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C83E43D45 for ; Fri, 10 Feb 2006 18:01:32 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 8181666 for multiple; Fri, 10 Feb 2006 13:00:43 -0500 Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k1AI1QuG076575; Fri, 10 Feb 2006 13:01:27 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: Anton Barsukov Date: Fri, 10 Feb 2006 13:01:09 -0500 User-Agent: KMail/1.9.1 References: <20060128142323.046e186c.greeen.anton@gmail.com> <200602081042.12890.jhb@freebsd.org> <20060210010402.66a2e83d.greeen.anton@gmail.com> In-Reply-To: <20060210010402.66a2e83d.greeen.anton@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200602101301.11290.jhb@freebsd.org> X-Virus-Scanned: ClamAV 0.87.1/1283/Thu Feb 9 15:55:06 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.4 required=4.2 tests=ALL_TRUSTED autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: freebsd-hackers@freebsd.org Subject: Re: kernel panic with pmap_qremove() X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Feb 2006 18:01:33 -0000 On Thursday 09 February 2006 15:04, Anton Barsukov wrote: > On Wed, 8 Feb 2006 10:42:11 -0500 > > John Baldwin wrote: > > On Wednesday 08 February 2006 06:42, Anton Barsukov wrote: > > > On Mon, 6 Feb 2006 14:58:33 -0500 > > > > > > John Baldwin wrote: > > > > On Saturday 28 January 2006 04:23, Anton Barsukov wrote: > > > > > Hi everybody > > > > > > > > > > I install ports/benchmarks/forkbomb, > > > > > when i run '%forkbomb -f', kernel panic. > > > > > > > > > > instruction pointer = pmap_qremove(sva=4290785280, count=0) at > > > > > /usr/src/sys/i386/i386/pmap.c:896 > > > > > > > > > > FreeBSD 6.0-RELEASE(GENERIC) i386 > > > > > machine( MB -- P4P800SE, > > > > > CPU -- P4 3GHz, > > > > > RAM -- 2x512Mb ) > > > > > > > > I wasn't able to reproduce this. Are you still able to trigger this > > > > panic? > > > > > > > > -- > > > > John Baldwin <>< http://www.FreeBSD.org/~jhb/ > > > > "Power Users Use the Power to Serve" = http://www.FreeBSD.org > > > > > > Yes, the panic still arises. > > > When I start under the user, kernel panics, under su the panic not > > > present. Custom kernel not panic. > > > > Hmm, the count=0 is suspect. The line numbers don't seem to line up > > though for pmap.c. Can you compile in DDB and KDB and capture a stack > > trace from ddb? > > > > -- > > John Baldwin <>< http://www.FreeBSD.org/~jhb/ > > "Power Users Use the Power to Serve" = http://www.FreeBSD.org > > Please, if it will help you. > #0 doadump () at pcpu.h:165 > 165 __asm __volatile("movl %%fs:0,%0" : "=r" (td)); > (kgdb) bt > #0 doadump () at pcpu.h:165 > #1 0xc0690666 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:399 > #2 0xc069099a in panic (fmt=0xc08e0869 "from debugger") at > /usr/src/sys/kern/kern_shutdown.c:555 > #3 0xc0470eb7 in db_panic (addr=-1064671193, have_addr=0, count=-1, > modif=0xf7aba7fc "") at /usr/src/sys/ddb/db_command.c:438 > #4 0xc0470e30 in db_command (last_cmdp=0xc09b6a24, cmd_table=0x0, > aux_cmd_tablep=0xc0934108, aux_cmd_tablep_end=0xc0934124) > at /usr/src/sys/ddb/db_command.c:350 > #5 0xc0470f21 in db_command_loop () at /usr/src/sys/ddb/db_command.c:458 > #6 0xc0472e5d in db_trap (type=12, code=0) at > /usr/src/sys/ddb/db_main.c:221 > #7 0xc06accaf in kdb_trap (type=0, code=0, tf=0xf7aba9b0) at > /usr/src/sys/kern/subr_kdb.c:473 > #8 0xc08acaaa in trap_fatal (frame=0xf7aba9b0, eva=0) at > /usr/src/sys/i386/i386/trap.c:822 > #9 0xc08ac7d0 in trap_pfault (frame=0xf7aba9b0, usermode=0, eva=3221221376) > at /usr/src/sys/i386/i386/trap.c:742 > #10 0xc08ac33e in trap (frame= > {tf_fs = -1065091064, tf_es = -1036058584, tf_ds = -986644440, > tf_edi = 256, tf_esi = -139744736, tf_ebp = -139744772, > tf_isp = -139744804, tf_ebx = -4194304, tf_edx = 1047552, tf_ecx = 0, > tf_eax = 935379203, tf_trapno = 12, tf_err = 2, tf_eip = -1064671193, > tf_cs = 32, tf_eflags = 66054, tf_esp = 2, tf_ss = -986631928}) at > /usr/src/sys/i386/i386/trap.c:432 > #11 0xc08999ea in calltrap () at /usr/src/sys/i386/i386/exception.s:139 > #12 0xc08a6827 in pmap_qenter (sva=4290768896, m=0xf7abaa20, count=0) at > pmap.h:270 > #13 0xc08341c5 in vm_thread_new (td=0x2, pages=2) at > /usr/src/sys/vm/vm_glue.c:301 > #14 0xc069c18a in thread_init (mem=0xc5314a80, size=372, flags=259) at > /usr/src/sys/kern/kern_thread.c:184 Now this traceback is in pmap_qenter() rather than pmap_qremove(). Still not sure why you are seeing a panic though. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org