Subject: port-i386/13461: [1.5.1] userland is compiled with floating point mandated
To: None <gnats-bugs@gnats.netbsd.org>
From: None <itojun@itojun.org>
List: netbsd-bugs
Date: 07/14/2001 16:01:32
>Number:         13461
>Category:       port-i386
>Synopsis:       [1.5.1] userland is compiled with floating point mandated
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 14 00:00:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Jun-ichiro itojun Hagino
>Release:        1.5.1
>Organization:
	itojun.org
>Environment:
Architecture: i386
Machine: i386
>Description:
	it seems that 1.5.1 userland was compiled with floating point compiled
	into binaries.  therefore, if you install 1.5.1 userland onto
	machines without floating point (machdep.fpu_present = 0),
	it won't work.
>How-To-Repeat:
	get a machine without FPU, and try to run 1.5.1.  for example, ping6(8)
	that came with 1.5.1 tar.gz dies with SIGBUS.  /bin/ps also dies with
	garbled output (due to floating computation mistakes in screen width).

Program terminated with signal 10, Bus error.
#0  0x806eb46 in vfprintf ()
(gdb) bt
#0  0x806eb46 in vfprintf ()
#1  0x806b818 in printf ()
#2  0x804bd47 in pr_pack (buf=0x80af000 "\201", cc=16, mhdr=0xbfbfdb40)
    at /home/itojun/NetBSD/src/sbin/ping6/ping6.c:1485
#3  0x804ac34 in main (argc=1, argv=0xbfbfdca4)
    at /home/itojun/NetBSD/src/sbin/ping6/ping6.c:1091
#4  0x80481e5 in ___start ()


NetBSD 1.5W (LAMB) #5: Sat Jul 14 15:04:10 JST 2001
    itojun@starfruit.itojun.org:/usr/home/itojun/NetBSD/src/sys/arch/i386/compile/LAMB
cpu0: AMD Am486 or Am5x86 (486-class)
total memory = 16000 KB
avail memory = 12092 KB
using 225 buffers containing 900 KB of memory
RTC BIOS diagnostic error 20<config_unit>
mainbus0 (root)
isa0 at mainbus0
ne0 at isa0 port 0x200-0x21f irq 3
ne0: NE2000 (RTL8019) Ethernet
ne0: Ethernet address 00:30:f5:00:42:80
ne0: 10base2, 10baseT, 10baseT-FDX, auto, default [0x00 0x30] auto
ne1 at isa0 port 0x300-0x31f irq 10
ne1: NE2000 (RTL8019) Ethernet
ne1: Ethernet address 00:30:f5:00:42:81
ne1: 10base2, 10baseT, 10baseT-FDX, auto, default [0x00 0x30] auto
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: console
pckbc0 at isa0 port 0x60-0x64
wdc0 at isa0 port 0x1f0-0x1f7 irq 14
wd0 at wdc0 channel 0 drive 0: <SanDisk SDCFB-64>
wd0: drive supports 1-sector PIO transfers, LBA addressing
wd0: 62720 KB, 490 cyl, 8 head, 32 sec, 512 bytes/sect x 125440 sectors
lpt0 at isa0 port 0x378-0x37b irq 7
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
isapnp0: no ISA Plug 'n Play devices found
biomask fb67 netmask ff6f ttymask ffef
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs

machdep.console_device = tty00
machdep.biosbasemem = 640
machdep.biosextmem = 15360
machdep.nkpde = 15
machdep.booted_kernel = netbsd
machdep.fpu_present = 0

>Fix:
	recompile all static binaries (pain...)
>Release-Note:
>Audit-Trail:
>Unformatted: