#14426: Runaway/Segfaulting ECL processes
-------------------------------------+--------------------------------------
       Reporter:  jdemeyer           |         Owner:  roed    
           Type:  defect             |        Status:  new     
       Priority:  blocker            |     Milestone:  sage-5.9
      Component:  doctest framework  |    Resolution:          
       Keywords:                     |   Work issues:          
Report Upstream:  N/A                |     Reviewers:          
        Authors:                     |     Merged in:          
   Dependencies:                     |      Stopgaps:          
-------------------------------------+--------------------------------------
Description changed by jdemeyer:

Old description:

> 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:
> {{{
> ./sage --sh -c 'ecl < <(echo x) 2>/dev/full'
> }}}

New description:

 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.beta4$ ./sage --sh -c 'ecl <
 <(echo x) 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: 17727 Segmentation fault      ecl < <(echo x) 2>
 /dev/full
 }}}

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14426#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to