From j@uriah.heep.sax.de  Sun Apr  2 05:41:46 1995
Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id FAA02887 for <FreeBSD-gnats-submit@freebsd.org>; Sun, 2 Apr 1995 05:40:56 -0700
Received: from sax.sax.de by irz301.inf.tu-dresden.de with SMTP
	(5.67b+/DEC-Ultrix/4.3) id AA28317; Sun, 2 Apr 1995 14:39:59 +0200
Received: by sax.sax.de (8.6.9/8.6.9-s1) with UUCP
	id OAA08373 for FreeBSD-gnats-submit@freebsd.org; Sun, 2 Apr 1995 14:39:57 +0200
Received: (from j@localhost) by uriah.heep.sax.de (8.6.11/8.6.9) id OAA01413; Sun, 2 Apr 1995 14:24:05 +0200
Message-Id: <199504021224.OAA01413@uriah.heep.sax.de>
Date: Sun, 2 Apr 1995 14:24:05 +0200
From: J Wunsch <j@uriah.heep.sax.de>
Reply-To: joerg_wunsch@uriah.heep.sax.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: bootstrap problem with -g kernel
X-Send-Pr-Version: 3.2

>Number:         294
>Category:       kern
>Synopsis:       Bootstrap has problems with -g compiled kernels
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs (FreeBSD bugs mailing list)
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr  2 05:50:00 1995
>Closed-Date:    Sat Jul 8 18:56:24 MET DST 1995
>Last-Modified:
>Originator:     J Wunsch
>Release:        FreeBSD 2.1.0-Development i386
>Organization:
>Environment:

FreeBSD-current as of Apr 2, 1995

>Description:

The current bootstrap loads the DDB symbols automatically (fine
thing!).  However, when trying to boot a kernel that has been compiled
with -g, but where the debugging symbols have been stripped later
(strip -x), the bootstrap still attempts to load all the debugging
symbols.  It finally chokes and eventually hits a weird condition,
resulting in a spontaneous reset.

Loading all the debugging symbols automatically (i.e., from a -g
kernel not stripped at all) is not much better, either; it bloats the
physical memory with 6 MB of rather useless symbols.  Perhaps loading
the *debugging* symbols (those that would be stripped with strip -x)
should be made an option, e.g. by re-using the `-D' boot flag.

>How-To-Repeat:

compile kernel with -g
strip -x kernel
install kernel
boot it

>Fix:
	

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: joerg 
State-Changed-When: Sat Jul 8 18:56:24 MET DST 1995 
State-Changed-Why:  
From mpp@legarto.minn.net (Mike Pritchard): 

Works under -current on my machine.  In fact, the kernel I'm 
running right now was compiled with -g and then run through strip -x. 

>Unformatted:



