Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Feb 1995 14:42:09 -0500
From:      Thomas David Rivers <ponds!rivers@dg-rtp.dg.com>
To:        phk@ref.tfs.com, rivers@dg-rtp.dg.com
Cc:        freebsd-bugs@freefall.cdrom.com, freebsd-hackers@freefall.cdrom.com
Subject:   Re: drand48 problems persist.
Message-ID:  <199502031942.OAA00366@ponds.UUCP>

next in thread | raw e-mail | index | archive | help
> 
> > If anyone has an idea as to what's happening here; don't hesitate to
> > let me know.
> > 
> Dave,
> 
> I just tried it out and had no problems (on a 486DX2).
> 
> Here is my binary (I changed 3072 -> 3072000 to expose it more.)
> try that on your machine, and send me a uuencoded binary from
> your system so that I can try that out on mine.
> 
> Poul-Henning
> 

 Ok - I ran Poul-Henning's binary on a 2.0R 486DX2 and a Pentium, 
this is the output I got (from script):

Script started on Fri Feb  3 14:37:52 1995
[ponds.water.net]$ cat a | uudecode
[ponds.water.net]$ chmod 775 a.out
[ponds.water.net]$ ./a.out
25982.000000 is greater than 1.0
55082.000000 is greater than 1.0
23156.000000 is greater than 1.0
29267.000000 is greater than 1.0
20885.000000 is greater than 1.0
Floating exception - core dumped
[ponds.water.net]$ 
Script done on Fri Feb  3 14:38:07 1995


As I pointed out before, the core dump is a seriously bad value being
given to printf().  What I'm concerned about is not the core dump, but
the fact that drand48() returns something > 1.0.

Since this appears to be quite machine/configuration specific, here's the
configuration file for that machine.  Again, this is with 2.0R installed
from the net (the original one.)

#
# GENERICAH -- Generic machine with WD/AHx/NCR family disks
#
#	GENERICAH,v 1.54 1994/11/13 10:17:05 gibbs Exp
#

machine		"i386"
cpu		"I386_CPU"
cpu		"I486_CPU"
cpu		"I586_CPU"
ident		GENERICAH
maxusers	10

options		MATH_EMULATE		#Support for x87 emulation
options		INET			#InterNETworking
options		FFS			#Berkeley Fast File System
options		PROCFS			#Process filesystem
options		NFS			#Network File System
options		"CD9660"		#CD ISO9660 File System
options		"COMPAT_43"		#Compatible with BSD 4.3
options		UCONSOLE		#X Console support
options		"FAT_CURSOR"		#block cursor in syscons or pccons
options		"SCSI_DELAY=15"		#Be pessimistic about Joe SCSI device
options		"NCONS=4"		#4 virtual consoles
options		BOUNCE_BUFFERS		#include support for DMA bounce buffers

config		kernel	root on wd0 swap on wd0 and wd1 and sd0 and sd1 dumps on wd0

controller	isa0

controller	fdc0	at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
disk		fd0	at fdc0 drive 0
disk		fd1	at fdc0 drive 1
#tape		ft0	at fdc0 drive 2

controller	wdc0	at isa? port "IO_WD1" bio irq 14 vector wdintr
disk		wd0	at wdc0 drive 0
disk		wd1	at wdc0 drive 1

controller	wdc1	at isa? port "IO_WD2" bio irq 15 vector wdintr
disk		wd2	at wdc1 drive 0
disk		wd3	at wdc1 drive 1

#controller	ahb0	at isa? bio irq ? vector ahbintr
controller	aha0	at isa? port "IO_AHA0" bio irq ? drq 5 vector ahaintr
#controller	pas0	at isa? port 0x1f88 bio
#controller	aic0    at isa? port 0x340 bio irq 11 vector aicintr
#controller	pci0
#controller	ncr0

controller	scbus0

device		sd0
device		sd1
device		sd2
device		sd3

device		st0
device		st1

device		cd0	#Only need one of these, the code dynamically grows

device		wt0	at isa? port 0x300 bio irq 5 drq 1 vector wtintr
#device		mcd0	at isa? port 0x300 bio irq 10 vector mcdintr
#device		mcd1	at isa? port 0x340 bio irq 11 vector mcdintr

device		sc0	at isa? port "IO_KBD" tty irq 1 vector scintr
device		npx0	at isa? port "IO_NPX" irq 13 vector npxintr

device		sio0	at isa? port "IO_COM1" tty irq 4 vector siointr
device		sio1	at isa? port "IO_COM2" tty irq 3 vector siointr
device		sio2	at isa? port "IO_COM3" tty irq 5 vector siointr
device		sio3	at isa? port "IO_COM4" tty irq 9 vector siointr

device		lpt0	at isa? port? tty irq 7 vector lptintr
device		lpt1	at isa? port? tty
device		lpt2	at isa? port? tty

#device ed0 at isa? port 0x280 net irq  5 iomem 0xd8000 vector edintr
device ed0 at isa? port 0x300 net irq  9 iomem 0xd8000 vector edintr
#device ed1 at isa? port 0x300 net irq  5 iomem 0xd8000 vector edintr
#device ed2 at isa? port 0x300 net irq 10 iomem 0xcc000 vector edintr
#device ep0 at isa? port 0x300 net irq 10 vector epintr
#device ie0 at isa? port 0x360 net irq  7 iomem 0xd0000 vector ieintr
#device is0 at isa? port 0x280 net irq 10 drq 7 vector isintr

pseudo-device	loop
pseudo-device	ether
pseudo-device	log
pseudo-device	sl	2
pseudo-device	ppp	2
pseudo-device	pty
pseudo-device	speaker
pseudo-device	gzip		# Exec gzipped a.out's



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199502031942.OAA00366>