From owner-freebsd-current Fri Nov 1 11:27:45 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0BC7937B401 for ; Fri, 1 Nov 2002 11:27:44 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4676443E6E for ; Fri, 1 Nov 2002 11:27:43 -0800 (PST) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id gA1JRX9d037419; Fri, 1 Nov 2002 20:27:34 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: "Michael Richards" Cc: current@FreeBSD.ORG Subject: Re: sysinstall alpha problems... In-Reply-To: Your message of "Fri, 01 Nov 2002 14:16:39 EST." <3DC2D317.00002B.94781@ns.interchange.ca> Date: Fri, 01 Nov 2002 20:27:33 +0100 Message-ID: <37418.1036178853@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <3DC2D317.00002B.94781@ns.interchange.ca>, "Michael Richards" writes : > >--------------Boundary-00=_R7WWAEEZ5BZNTT4D7TH0 >Content-Type: Text/Plain >Content-Transfer-Encoding: 7bit > >I updated to 5.0-current using the "." tag because I wanted SMP >support for our development AlphaServer 1200 that was otherwise >gathering dust. > >I added some new disks and wanted to do a sysinstall to label and >newfs them. So running /usr/sbin/sysinstall built from the sources of >today sysinstall simply core dumps on the device probe section. I >tried adding a -g to cflags in its makefile but couldn't coax gdb >into spitting out anything more useful. > >Here is what I get: >Probing devices, please wait (this can take a while)...Segmentation >fault (core dumped) Ok, first make sure that your machine is running a -current kernel. If it does that, then: add to the src/lib/libdisk/Makefile: CFLAGS += -g in src/lib/libdisk: make obj make depend make clean make all install add to src/usr.sbin/sysinstall/Makefile CFLAGS += -static -g in src/usr.sbin/sysinstall: make obj make depend make clean make all install Now, try again and see if you don't get a more useful core file. (I'm very interested in this because we have not yet validated libdisk/sysinstall on alpha machines after the last changes.) -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message