From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,74926c87bde62d48,start X-Google-Attributes: gid10d4db,public X-Google-ArrivalTime: 1993-11-26 07:48:52 PST Path: gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!uunet!EU.net!sunic!news.funet.fi!klaava!klaava!not-for-mail From: Peter Sestoft Newsgroups: comp.os.linux.announce Subject: SML/NJ 0.93 bug fix for Linux 99pl12 Followup-To: comp.os.linux.misc Date: 26 Nov 1993 17:38:13 +0200 Organization: ? Sender: wirzeniu@klaava.Helsinki.FI Message-ID: <2d57t5$1vp@klaava.Helsinki.FI> NNTP-Posting-Host: klaava.helsinki.fi Keywords: ML, SML, programming language [ 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.