From owner-freebsd-ppc Fri Jul 19 14:20:56 2002 Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8AA2537B400 for ; Fri, 19 Jul 2002 14:20:54 -0700 (PDT) Received: from wantpackets.com (wantpackets.com [208.8.54.110]) by mx1.FreeBSD.org (Postfix) with ESMTP id D083A43E3B for ; Fri, 19 Jul 2002 14:20:53 -0700 (PDT) (envelope-from andy@wantpackets.com) Received: from wantpackets.com (www@wantpackets.com [208.8.54.110]) by wantpackets.com (8.12.3/8.12.3) with ESMTP id g6JLNZa6008855 for ; Fri, 19 Jul 2002 17:23:36 -0400 (EDT) (envelope-from andy@wantpackets.com) Received: (from www@localhost) by wantpackets.com (8.12.3/8.12.3/Submit) id g6JLNUn5008854 for freebsd-ppc@freebsd.org; Fri, 19 Jul 2002 17:23:30 -0400 (EDT) (envelope-from andy@wantpackets.com) From: Andy X-Authentication-Warning: wantpackets.com: www set sender to andy@localhost using -f To: freebsd-ppc@freebsd.org Subject: debug output Message-ID: <1027113810.3d38835229cdb@www.wantpackets.com> Date: Fri, 19 Jul 2002 17:23:30 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: IMP/PHP IMAP webmail program 2.2.7 X-Originating-IP: 216.65.176.232 Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello Peter G, I put a breakpoint in panic, and was able to get a useful debug output.. init died (signal 6, exit 0) Breakpoint 1, panic (fmt=0x262610 "Going nowhere without my init!") at machine/cpufunc.h:154 154 __asm ("mfsprg %0, 0" : "=r"(ret)); (gdb) where #0 panic (fmt=0x262610 "Going nowhere without my init!") at machine/cpufunc.h:154 #1 0x00171fc4 in exit1 (td=0xe00d4000, rv=-482334504) at ../../../kern/kern_exit.c:182 #2 0x001710e8 in execve (td=0xe00d4000, uap=0xe3402d50) at ../../../kern/kern_exec.c:539 #3 0x00165010 in start_init (dummy=0x262610) at ../../../kern/init_main.c:627 #4 0x00174ae0 in fork_exit (callout=0x164bd4 , arg=0x0, frame=0xe3402ddc) at ../../../kern/kern_fork.c:861 #5 0x0025309c in fork_trampoline () at ../../../powerpc/powerpc/swtch.s:153 #6 0x7c0802a6 in ?? () Now, let me peek in line 539 and the relevent info on 193 or so, and show you: (file kern_exec.c) under "exec_fail:" there is if (imgp->vmspace_destroyed) { /* sorry, no more process anymore. exit gracefully */ exit1(td, W_EXITCODE(0, SIGABRT)); /* NOT REACHED */ error = 0; } "exec_fail:" is jumped to by the statement in 193 or so which says: imgp->stringbase = (char *)kmem_alloc_wait(exec_map, ARG_MAX + PAGE_SIZE); if (imgp->stringbase == NULL) { error = ENOMEM; mtx_lock(&Giant); goto exec_fail; } Just for your entertainment, you should know I am using gcc 3.1 for this stuff. Any ideas? thanks, andrew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message