Usenet comp.os.linux.announce (1993-2013)
 help / color / mirror / Atom feed
From: Peter Sestoft <sestoft@id.dth.dk>
Subject: SML/NJ 0.93 bug fix for Linux 99pl12
Date: 26 Nov 1993 17:38:13 +0200	[thread overview]
Message-ID: <2d57t5$1vp@klaava.Helsinki.FI> (raw)

[ Moderator's note: ML is a programming language.  SML/NJ is, I 
  assume, an implementation of it.  --liw ]

PROBLEM: The April 1993 port of SML/NJ 0.93 to Linux 99pl7 by
Moura/Santos/Barr does not raise the Div and Overflow exceptions
properly on my Linux system (99pl12); instead these conditions make
the ML system go into an infinite loop.

SOLUTION: What made it go wrong was probably a subsequent change in
the layout of signal contexts in Linux.

Carsten Mueller (Technical University of Berlin) made the necessary
modifications to the ML signal handling, but left one bug, which meant
that although the Div and Overflow signals were raised, they were not
handled or reported correctly.  The cause was a missing ampersand (C
type checking, sigh).  My contribution is to insert this ampersand...

This makes the system raise, handle, and report the Div and Overflow
exceptions properly.  One problem remains: Printing (but not
computing) the most negative integer (~2 ** 30) still makes the ML
system go into an infinite loop (probably related to makestring in
file src/boot/perv.sml).

A NEW SML/NJ 0.93 BINARY FOR LINUX 99PL12 is available from
ftp.id.dth.dk (Internet 129.142.64.10) as file
pub/sestoft/sml93-linux99pl12/sml.gz

The (three) modified source files can also be found at ftp.id.dth.dk
in file pub/sestoft/sml93-linux99pl12/changes.tar 
-- 
Peter Sestoft   *   sestoft@id.dth.dk   *   Department of Computer Science
Technical University of Denmark, Building 344      DK-2800 Lyngby, Denmark
Tel: +45 45 93 33 32 * Direct: +45 45 93 12 22/3749 * Fax: +45 42 88 45 30

--
Mail submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu
PLEASE remember Keywords: and a short description of the software.


                 reply	other threads:[~1993-11-26 15:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox