Opened 5 years ago

Last modified 5 years ago

#1287 new defect

Stack overflow on broken pipe

Reported by: keshav.kini Owned by:
Priority: normal Milestone:
Component: other Version: trunk
Keywords: Cc:

Description

Steps to reproduce

On a Linux system, do

$ mkfifo pipe
$ ccl > pipe

In another terminal, do

$ cat pipe
^C

(i.e. break the pipe by sending Ctrl+C, SIGINT, to the cat process). Now, in the first terminal, type "1" followed by the Return key.

Observed behavior

CCL prints the following error message a very large number of times:

> Error: on #<BASIC-CHARACTER-OUTPUT-STREAM UTF-8 (PIPE/1) #x30200045C01D> : 
>        Broken pipe during write
> While executing: #<CCL::STANDARD-KERNEL-METHOD CCL::STREAM-IO-ERROR (STREAM T T)>, in process listener(1).

Then, CCL prints the following message:

Unrecoverable stack overflow.
? for help
[5101] Clozure CL kernel debugger:

Expected behavior

CCL should terminate gracefully. (Or at least it should not enter an infinite loop resulting in a stack overflow, as is currently the case.)

Change History (1)

Note: See TracTickets for help on using tickets.