NetBSD Problem Report #125

Date: Sat, 12 Feb 1994 14:50:02 -0800
From: Brian de Alwis <bsdealwi@undergrad.math.uwaterloo.ca>
Reply-To: Brian de Alwis <bsdealwi@undergrad.math.uwaterloo.ca>
To: gnats-admin
Cc: gnats-admin, netbsd-bugs
Subject: port-i386/125: crt0.o core dumps if compiled with -fomit-frame-pointer

>Number:         125
>Category:       port-i386
>Synopsis:       crt0.o core dumps if compiled with -fomit-frame-pointer
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          closed
>Class:          mistaken
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 12 14:50:02 +0000 1994
>Closed-Date:    Thu Feb 24 18:15:29 +0000 1994
>Last-Modified:  Sun Mar 03 17:43:03 +0000 2013
>Originator:     Brian de Alwis
>Release:        
>Organization:
"	independent"
>Environment:
	i386-33 w/ITT 387 NPX
	-current of 2/6
System: NetBSD portia 0.9a PORTIA#13 i386


>Description:
	Seeking a performance boost, I compiled everything with -O2
	-fomit-frame-pointer. But since crt0.c makes explicit use of
	%ebp, any programs linked with it would crash.
>How-To-Repeat:
	Compile crt0.o with -fomit-frame-pointer and link a program
	with it rather than with /usr/lib/crt0.o. Try to run it, and
	you will get a segmentation fault.
>Fix:
	Don't compile with -fomit-frame-pointer. It might be better
	to explicitly set CFLAGS in src/lib/csu/i386/Makefile though.
>Release-Note:
>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: jtc
State-Changed-When: Thu Feb 24 18:15:29 1994
State-Changed-Why:
This is not a bug.


>Unformatted:


 X-send-pr-version: 3.2

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.