From owner-freebsd-alpha Wed May 15 5:37:56 2002 Delivered-To: freebsd-alpha@freebsd.org Received: from mail.speakeasy.net (mail16.speakeasy.net [216.254.0.216]) by hub.freebsd.org (Postfix) with ESMTP id 41D1937B405 for ; Wed, 15 May 2002 05:37:42 -0700 (PDT) Received: (qmail 11934 invoked from network); 15 May 2002 12:37:41 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail16.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 15 May 2002 12:37:41 -0000 Received: from laptop.baldwin.cx (laptop.baldwin.cx [192.168.0.4]) by server.baldwin.cx (8.11.6/8.11.6) with ESMTP id g4FCbdF65249; Wed, 15 May 2002 08:37:39 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Wed, 15 May 2002 08:37:31 -0400 (EDT) From: John Baldwin To: Dag-Erling Smorgrav Subject: RE: loader failure Cc: current@freebsd.org, alpha@freebsd.org Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On 15-May-2002 Dag-Erling Smorgrav wrote: > Trying to boot with a newly-built loader (make world earlier today > from fresh sources) results in: > > FreeBSD/alpha SRM disk boot, Revision 1.2 > (des@dsa.thinksec.com, Wed May 15 08:01:43 CEST 2002) > Memory: 262144 k > Loading /boot/defaults/loader.conf > /boot/kernel/kernel data=0x283780+0x63670 / > > Hit [Enter] to boot immediately, or any other key for command prompt. > Booting [/boot/kernel/kernel]... > Entering /boot/kernel/kernel at 0xfffffc000032e740... > > halted CPU 0 > > halt code = 2 > kernel stack not valid halt > PC = 200000000 > boot failure > > no matter which kernel I try to boot. Booting my new kernel with the > old loader (from the DP1 dist) works fine until it tries to start > init(8): > > spec_getpages: preposterous offset 0xfff80000f4460000 > exec /sbin/init: error 5 > spec_getpages: preposterous offset 0xfff800001426c000 > exec /sbin/init.bak: error 5 > spec_getpages: preposterous offset 0xfff80000c86c0000 > exec /stand/sysinstall: error 5 > init: not found in path > /sbin/init:/sbin/oinit:/sbin/init.bak:/stand/sysinstall > panic: no init > panic > Stopped at Debugger+0x34: zapnot v0,#0xf,v0 > > Booting DP1's GENERIC with the old loader and the new userland works > fine. > > Clean tree, no funny stuff in make.conf (unless 'CPUTYPE?=ev56' counts > as funny stuff) > > The loader problem is possibly a compiler issue > (since DP1 was built with gcc 2.95 while my world was built with 3.1). > The init problem is probably a UFS2 f*up; the code has obviously not > been tested on a 64-bit architecture (the UFS2 stuff broke the kernel > build). The kernel overflowed it's stack. In SRM, you can try to debug this by using 'e sp' to get the stack pointer then get a stack dump and save a copy of it in a log or something, reboot the machine, then use gdb's list command on the kernel.debug to figure out the source:line for all the kernel-text addresses in the stack dump to figure out the backtrace. From that you can figure out where the recursion is happening and fix it. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message