Home My Page Projects Code Snippets Project Openings SML/NJ Bugs
Summary Activity Tracker Lists

[#156] SML resumes after SIGSTOP with bogus exception report

Date:
2016-04-21 23:05
Priority:
3
State:
Closed
Submitted by:
Bug Submitter (webuser)
Assigned to:
John Reppy (jhr)
Machine Architecture:
All
Operating System:
MacOS X
Component:
Compiler
Resolution:
Fixed
Severity:
Cosmetic
OS Version:
at least 10.6 to 10.11
SML/NJ Version:
110.79
Keywords:
terminal interaction SIGSTOP unexpected exception
URL:
Transcript (of reproduction):
m% sml Standard ML of New Jersey v110.79 [built: Sun Oct 4 14:45:06 2015] - (* I have stty eof "^&Z" susp "^X" *) - ^X [1]+ Stopped sml m% fg sml unexpected exception (bug?) in SML/NJ: Io [Io: input failed on "<stdIn>", Interrupted system call] raised at: Basis/Implementation/IO/text-io-fn.sml:119.14-119.56 ../compiler/Parse/lex/ml.lex.sml:933.40-933.45 ../compiler/Parse/main/parser.sml:106.37 ../compiler/Basics/stats/stats.sml:198.40 ../compiler/TopLevel/interact/evalloop.sml:44.55 - - TextIO.inputLine TextIO.stdIn; ^X [1]+ Stopped sml m% fg sml uncaught exception Io [Io: inputLine failed on "<stdIn>", Interrupted system call] raised at: Basis/Implementation/IO/text-io-fn.sml:119.14-119.56
Source (for reproduction):
Summary:
SML resumes after SIGSTOP with bogus exception report

Detailed description
Start sml interactively. At some point, type your 'susp'
character (which defaults to '^Z'; I have it set to '^X' so
that I can use '^Z' for EOF everywhere). This sends the
SIGSTOP signal and the sml process is suspended, returning you
to your shell (if your shell supports job control). When you
resume the sml process using the 'fg' command, it reports
an unexpected interrupt in text-io-fn.sml

When this happens between top-level items, it's a minor
annoyance; when it happens while code is executing, it is
a major annoyance.
Additional comments:
I do not know whether this occurs on any other system. My
machines were recently upgraded to OSX 10.11, which broke a
lot of things, so I had to install the latest SML/NJ. One
of the things that broke was VirtualBox, so I haven't been
able to test this in Linux or X86 Solaris yet.

Submitted via web form by Richard A. O'Keefe <ok@cs.otago.ac.nz>

Comments:

Message  ↓
Date: 2016-05-03 23:21
Sender: John Reppy

Fixed for 110.80 on Unix. Not sure if this issue occurs on Windows.

Attached Files:

Changes

Field Old Value Date By
ResolutionNone2016-05-03 23:21jhr
status_idOpen2016-05-03 23:21jhr
close_dateNone2016-05-03 23:21jhr
summarysml resumes after SIGSTOP with bogus exception report2016-05-03 23:21jhr
assigned_tonone2016-04-24 18:00jhr
detailsStart sml interactively. At some point, type your 'susp' character (which defaults to '^Z'; I have it set to '^X' so that I can use '^Z' for EOF everywhere). This sends the SIGSTOP signal and the sml process is suspended, returning you to your shell (if your shell supports job control). When you resume the sml process using the 'fg' command, it reports an unexpected interrupt in text-io-fn.sml When this happens between top-level items, it's a minor annoyance; when it happens while code is executing, it is a major annoyance. Additional comments: I do not know whether this occurs on any other system. My machines were recently upgraded to OSX 10.11, which broke a lot of things, so I had to install the latest SML/NJ. One of the things that broke was VirtualBox, so I haven't been able to test this in Linux or X86 Solaris yet. Submitted via web form by Richard A. O'Keefe <ok@cs.otago.ac.nz> 2016-04-24 18:00jhr
Machine ArchitectureNone2016-04-24 18:00jhr
ComponentBasis Library2016-04-24 18:00jhr
Transcript (of reproduction)m% sml Standard ML of New Jersey v110.79 [built: Sun Oct 4 14:45:06 2015] - (* I have stty eof "^&Z" susp "^X" *) - ^X [1]+ Stopped sml m% fg sml unexpected exception (bug?) in SML/NJ: Io [Io: input failed on "<stdIn>", Interrupted system call] raised at: Basis/Implementation/IO/text-io-fn.sml:119.14-119.56 ../compiler/Parse/lex/ml.lex.sml:933.40-933.45 ../compiler/Parse/main/parser.sml:106.37 ../compiler/Basics/stats/stats.sml:198.40 ../compiler/TopLevel/interact/evalloop.sml:44.55 - - TextIO.inputLine TextIO.stdIn; ^X [1]+ Stopped sml m% fg sml uncaught exception Io [Io: inputLine failed on "<stdIn>", Interrupted system call] raised at: Basis/Implementation/IO/text-io-fn.sml:119.14-119.56 2016-04-24 18:00jhr