Opened 9 years ago

Last modified 7 years ago

#14426 closed defect

Runaway/Segfaulting ECL processes — at Version 7

Reported by: Jeroen Demeyer Owned by: Jeroen Demeyer
Priority: blocker Milestone: sage-5.9
Component: packages: standard Keywords:
Cc: Leif Leonhardy, Jean-Pierre Flori Merged in:
Authors: Jeroen Demeyer Reviewers:
Report Upstream: Reported upstream. Developers acknowledge bug. Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by Jeroen Demeyer)

On some systems, when executing

./sage -tp --long devel/sage/sage/interfaces/lisp.py

there are two ECL processes which do (strace log)

read(0, "(setq sage0 2)\n", 1024)       = 15
write(1, "\n", 1)                       = 1
write(1, "2", 1)                        = 1
write(1, "\n", 1)                       = 1
write(1, ">", 1)                        = 1
write(1, " ", 1)                        = 1
read(0, 0x7f2c263b1000, 1024)           = -1 EIO (Input/output error)
--- SIGHUP (Hangup) @ 0 (0) ---
--- SIGCONT (Continued) @ 0 (0) ---
select(1, [0], NULL, NULL, {0, 0})      = 1 (in [0], left {0, 0})
select(1, [0], NULL, NULL, {0, 0})      = 1 (in [0], left {0, 0})
read(0, "", 1024)                       = 0
write(2, "\n", 1)                       = -1 EIO (Input/output error)
write(2, "\n", 1)                       = -1 EIO (Input/output error)
write(2, "\n", 1)                       = -1 EIO (Input/output error)
write(2, "\n", 1)                       = -1 EIO (Input/output error)
[...]

after which they either segfault or keep running forever.

A different way to see this problem:

jdemeyer@boxen:/release/merger/sage-5.9.beta2$ ./sage --sh -c 'echo syntax error |ecl 2>/dev/full'
ECL (Embeddable Common-Lisp) 12.12.1 (git:UNKNOWN)
Copyright (C) 1984 Taiichi Yuasa and Masami Hagiya
Copyright (C) 1993 Giuseppe Attardi
Copyright (C) 2000 Juan J. Garcia-Ripoll
ECL is free software, and you are welcome to redistribute it
under certain conditions; see file 'Copyright' for details.
Type :h for Help.  
Top level.
> /bin/bash: line 1: 11264 Done                    echo syntax error
     11265 Segmentation fault      | ecl 2> /dev/full

upstream: https://sourceforge.net/p/ecls/bugs/257/

spkg: http://boxen.math.washington.edu/home/jdemeyer/spkg/ecl-12.12.1.p2.spkg (diff)

apply: 14426_doctest.patch

Change History (7)

comment:1 Changed 9 years ago by Jeroen Demeyer

Description: modified (diff)
Summary: Runaway ECL processesRunaway/Segfaulting ECL processes

comment:2 Changed 9 years ago by Jeroen Demeyer

Description: modified (diff)

comment:3 Changed 9 years ago by Jeroen Demeyer

Description: modified (diff)

comment:4 Changed 9 years ago by Jeroen Demeyer

Component: doctest frameworkpackages: standard
Description: modified (diff)
Owner: changed from David Roe to Jeroen Demeyer

comment:5 Changed 9 years ago by Jeroen Demeyer

Authors: Jeroen Demeyer
Description: modified (diff)

comment:6 Changed 9 years ago by Jeroen Demeyer

Description: modified (diff)
Report Upstream: N/AReported upstream. No feedback yet.
Status: newneeds_review

comment:7 Changed 9 years ago by Jeroen Demeyer

Description: modified (diff)
Note: See TracTickets for help on using tickets.