From starkhome!gene@sbstark.cs.sunysb.edu  Wed Apr  5 19:05:01 1995
Received: from sbstark.cs.sunysb.edu (sbstark.cs.sunysb.edu [130.245.1.47])
          by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id TAA08018
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 5 Apr 1995 19:04:59 -0700
Received: from starkhome.UUCP (root@localhost) by sbstark.cs.sunysb.edu (8.6.9/8.6.9) with UUCP id WAA12373 for FreeBSD-gnats-submit@freebsd.org; Wed, 5 Apr 1995 22:04:53 -0400
Received: by starkhome.cs.sunysb.edu (8.6.11/1.34)
	id WAA00290; Wed, 5 Apr 1995 22:02:43 -0400
Message-Id: <199504060202.WAA00290@starkhome.cs.sunysb.edu>
Date: Wed, 5 Apr 1995 22:02:43 -0400
From: starkhome!gene@sbstark.cs.sunysb.edu (Gene Stark)
Reply-To: starkhome!gene@sbstark.cs.sunysb.edu
To: FreeBSD-gnats-submit@freebsd.org
Subject: __fdnlist fails on kernels created by cc -g; strip -x
X-Send-Pr-Version: 3.2

>Number:         300
>Category:       bin
>Synopsis:       __fdnlist fails on kernels created by cc -g and strip -x
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr  5 19:10:03 1995
>Closed-Date:    Wed Feb 7 15:53:31 PST 1996
>Last-Modified:  Wed Feb  7 15:53:52 PST 1996
>Originator:     Gene Stark
>Release:        FreeBSD 2.1.0-Development i386
>Organization:
>Environment:

>Description:

	After making a kernel with "make DEBUG=-g", then
	applying "strip -x" to the result, then "make install",
	and finally booting from that kernel, what happens
	is that savecore, ifconfig, and kvm_mkdb exit on signal 11
	during bootup.  They die within a strcmp in __fdnlist
	trying to look up symbols in the kernel.  They apparently
	seg fault following a bad pointer in the mmap()'ed kernel
	image.

	Apparently, there is some incompatibility with the output
	produced by "make DEBUG=-g; strip -x kernel", and what
	__fdnlist expects to see.

>How-To-Repeat:

	cd /sys/compile/YOURSYS
	make DEBUG=-g
	strip -x kernel
	make install
	reboot

>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mpp 
State-Changed-When: Wed Feb 7 15:53:31 PST 1996 
State-Changed-Why:  
Fixed in -current. 
>Unformatted:


