Package: algol68g
Version: 3.1.2-1.2
Severity: normal
When a write to standard output fails, a68g crashes with SIGSEGV
instead of reporting the error:
$ echo 'print(("x", newline))' > min.a68
$ a68g min.a68 > /dev/full; echo $?
Segmentation fault (core dumped)
139
The same happens with stdout closed (a68g min.a68 >&-).
A core shows abend() calling pretty_diag(), which writes through
io_write_string() to the channel that just failed, which calls
abend() again: about 157,000 frames until the stack runs out.
The last frame has errno 32 (EPIPE).
Upstream 3.14.0 (https://algol68genie.nl) changed abend():
io_close_tty_line() resets the output counters before it writes,
so the second failure no longer writes to stdout again. I have
not run 3.14.0, so I cannot say it is fixed there; packaging the
current upstream release may be the simplest fix.