NetBSD Problem Report #1590

From gnats  Thu Oct 12 07:57:37 1995
Received: from david.zfe.siemens.de by pain.lcs.mit.edu (8.6.9/8.6.9) with SMTP id HAA05933 for <gnats-bugs@netbsd.org>; Thu, 12 Oct 1995 07:44:13 -0400
Message-Id: <9510121142.AA11080@efg.zfe.siemens.de>
Date: Thu, 12 Oct 95 12:42:26 +0100
From: pohlj@arktur.zfe.siemens.de (Jochen Pohl)
Reply-To: jpo.drs@sni.de
To: gnats-bugs@netbsd.org
Subject: invalid stackframe in ilogb (i386)
X-Send-Pr-Version: 3.2

>Number:         1590
>Category:       lib
>Synopsis:       invalid stackframe in ilogb (i386)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 12 08:05:06 +0000 1995
>Closed-Date:    Thu Oct 12 11:54:14 +0000 1995
>Last-Modified:  Thu Oct 12 15:54:53 +0000 1995
>Originator:     Jochen Pohl
>Release:        95/08/18
>Organization:
-------------------------------------------------------------------------------
Jochen Pohl, SNAT NC32			Email:	  jpo.drs@sni.de
Siemens-Nixdorf Advanced Technologies	
Scharfenberger Str. 66			Phone:    +49-351-844 2261
D-01133 Dresden				Fax:      +49-351-844 2011
>Environment:

System: NetBSD ariadne 1.0A NetBSD 1.0A (ARIADNE) #0: Sat Sep 30 19:47:33 MET 1995 jp@ariadne:/home/jp/co/src/sys/arch/i386/compile/ARIADNE i386


>Description:
	The code which creates the stackframe of ilogb (i386) is wrong.
	Instead of pushing the stack pointer, the base pointer needs to
	be pushed.

>How-To-Repeat:

>Fix:
Index: src/lib/libm/arch/i387/s_ilogb.S
diff -u src/lib/libm/arch/i387/s_ilogb.S:1.1.1.2 src/lib/libm/arch/i387/s_ilogb.S:1.3
--- src/lib/libm/arch/i387/s_ilogb.S:1.1.1.2	Sun Aug 20 23:06:27 1995
+++ src/lib/libm/arch/i387/s_ilogb.S	Sat Aug 26 11:02:48 1995
@@ -8,7 +8,7 @@
 RCSID("$NetBSD: s_ilogb.S,v 1.4 1995/05/09 00:06:28 jtc Exp $")

 ENTRY(ilogb)
-	pushl	%esp
+	pushl	%ebp
 	movl	%esp,%ebp
 	subl	$4,%esp

>Release-Note:
>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: jtc
State-Changed-When: Thu Oct 12 11:54:14 1995
State-Changed-Why:
Fixed in main branch.  Not important enough for 1.1, since i387
functions are not enabled by default.

>Unformatted:

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.