NetBSD Problem Report #34784

From oster@mickey.usask.ca  Wed Oct 11 16:08:12 2006
Return-Path: <oster@mickey.usask.ca>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 2E09D63BC72
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 11 Oct 2006 16:08:12 +0000 (UTC)
Message-Id: <20061011160811.3E26719CB02@mickey.usask.ca>
Date: Wed, 11 Oct 2006 10:08:11 -0600 (CST)
From: oster@cs.usask.ca
Reply-To: oster@cs.usask.ca
To: gnats-bugs@NetBSD.org
Subject: ps/top/systat die on -current vax w/ Illegal instruction
X-Send-Pr-Version: 3.95

>Number:         34784
>Category:       port-vax
>Synopsis:       ps/top/systat die on -current vax w/ Illegal instruction
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-vax-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 11 16:10:00 +0000 2006
>Closed-Date:    Sat Apr 21 19:00:44 +0000 2007
>Last-Modified:  Sat Apr 21 19:00:44 +0000 2007
>Originator:     oster@cs.usask.ca
>Release:        NetBSD 4.99.3
>Organization:
Sometimes.
>Environment:
System: NetBSD floyd 4.99.3 NetBSD 4.99.3 (GENERIC) #0: Mon Oct  9 12:44:02 CST 2006  oster@count:/u1/builds/build9/src/sys/arch/vax/compile/GENERIC vax
Architecture: vax
Machine: vax
>Description:
	The following commands do not work on a cross-built -current
(i386->vax):

oster@floyd-28> ps -u 
Illegal instruction
oster@floyd-29> top
Illegal instruction
oster@floyd-30> systat pigs
[screen clears, then]
Illegal instruction

floyd# gdb /bin/ps
GNU gdb 5.3nb1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "vax--netbsdelf"...(no debugging symbols found)...
(gdb) run -u
Starting program: /bin/ps -u

Program received signal SIGILL, Illegal instruction.
0x801afa9e in ??
    (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16384, 0, 0, 0, 0, 0, 0, 0, 2147475284, -2147467149, 0, 16832, 0, 16, 2139086864, 536576, 1, 16278, 0, 546296, 536576, 2147475284, 2147475264, 2147475256, 81334, 62914560, 0, 536870912, 2147475316, 2147475296, 80242, 1, 34, 528629, 0, 536870912, 2147475368, 2147475332, 72202, 2, -2147467149, 0, 528629, 0, 599785472, 2147475424, 2147475380, 76457, 0, 0, 72012, 528640, 1, 536576, 336067, 0, 801112064, 2147475532, 2147475488, 268141, 546296, 0, 536576, 556016, 536576, 30, 2, 536576, 546296, 2147475460, 66903, 1, 1, 5, 0, 648, 536576, 2147475544, 31, 20088, 2147475584, 0, 0, 801112064, 2147478820, 2147478776, 78587, 0, 0, 0, 0, 5, 1, 4, 536576, 31, 648, 75818, 2147478904, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
(gdb) 



>How-To-Repeat:
	Cross-build -current for vax on i386.  Install.  Boot.
Attempt to run 'ps -aux'.  Watch it fail.  Determine 'ps -u' doesn't
work.  Try 'top'.  Watch it die too.  Investigate if 'systat pigs'
dies too.  It does.  ('systat iostat' and 'systat vmstat' work just
fine... )
>Fix:
	Please.



>Release-Note:

>Audit-Trail:
From: "Michael L. Hitch" <mhitch@lightning.msu.montana.edu>
To: gnats-bugs@NetBSD.org
Cc: port-vax-maintainer@NetBSD.org, gnats-admin@NetBSD.org,
	netbsd-bugs@NetBSD.org
Subject: Re: port-vax/34784: ps/top/systat die on -current vax w/ Illegal
 instruction
Date: Sun, 8 Apr 2007 16:15:47 -0600 (MDT)

 On Wed, 11 Oct 2006, oster@cs.usask.ca wrote:

 >> Description:
 > 	The following commands do not work on a cross-built -current
 > (i386->vax):
 >
 > oster@floyd-28> ps -u
 > Illegal instruction
 > oster@floyd-29> top
 > Illegal instruction
 > oster@floyd-30> systat pigs
 > [screen clears, then]
 > Illegal instruction

    As was noted in the port-vax list, these problems were due to the use of 
 the log() function and the use in log() of finite() which appeared to be
 ignored when using builtins and accessing the invalid floating point 
 value used for NaN.

 --
 Michael L. Hitch			mhitch@montana.edu
 Computer Consultant
 Information Technology Center
 Montana State University	Bozeman, MT	USA

State-Changed-From-To: open->analyzed
State-Changed-By: mhitch@netbsd.org
State-Changed-When: Mon, 09 Apr 2007 01:47:34 +0000
State-Changed-Why:
Problem had been analyzed on port-vax.


From: Manuel Bouyer <bouyer@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/34784 CVS commit: [netbsd-4] src/gnu/dist/gcc4/gcc
Date: Thu, 12 Apr 2007 19:16:19 +0000 (UTC)

 Module Name:	src
 Committed By:	bouyer
 Date:		Thu Apr 12 19:16:18 UTC 2007

 Modified Files:
 	src/gnu/dist/gcc4/gcc [netbsd-4]: builtins.c

 Log Message:
 Pull up following revision(s) (requested by mhitch in ticket #561):
 	gnu/dist/gcc4/gcc/builtins.c: revision 1.7
 2006-08-24  Richard Guenther  <rguenther@suse.de>
  	* builtins.c (fold_builtin_classify): Fix typo.
 Fixes PR#34784 "ps/top/systat die on -current vax w/ Illegal instruction"


 To generate a diff of this commit:
 cvs rdiff -r1.6 -r1.6.2.1 src/gnu/dist/gcc4/gcc/builtins.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: analyzed->closed
State-Changed-By: mhitch@netbsd.org
State-Changed-When: Sat, 21 Apr 2007 19:00:44 +0000
State-Changed-Why:
Fixed in current and netbsd-4 branch.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.