seanjensengrey / mosh-scheme

Automatically exported from code.google.com/p/mosh-scheme
Other
0 stars 0 forks source link

segfault on SIGPIPE #228

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
#!r6rs

(import (rnrs))

(let loop ()
  (display "yes")
  (newline)
  (loop))

  amoe@vuurvlieg $ mosh sigpipe.scm | head  

What is the expected output? What do you see instead?
Expected 10 lines of 'yes'.

Regular mosh segfaults after 'head' terminates:
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
 Condition components:
 1. &i/o-write
 2. &who             who: "display"
 3. &message         message: "Broken pipe"
 4. &i/o-port        port: ()
 5. &irritants       irritants: (())

 Exception:
     error in raise: returned from non-continuable exception

 Stack trace:
    1. throw: <subr>
    2. (raise c):  baselib.scm:940
    3. sys-display: <subr>
    4. eval: <subr>
    5. (<top-level>): <unknown location>

Segmentation fault

Debug build mosh has a failed assertion, but does not segfault:
ASSERT failure src/Object-accessors.h:100: isEqHashTable()

What version of the product are you using? On what operating system?
Git commit 6a638f19c1aff9e3c8c245704042d288a3a301ab
Linux vuurvlieg 3.2.0-1-amd64 #1 SMP Sun Feb 5 15:17:15 UTC 2012 x86_64 
GNU/Linux

Original issue reported on code.google.com by amoe...@gmail.com on 16 Feb 2012 at 12:33

GoogleCodeExporter commented 9 years ago

Original comment by hige...@gmail.com on 16 Feb 2012 at 9:46

GoogleCodeExporter commented 9 years ago
reproduced on OSX too.
theVM variable is broken.

Original comment by hige...@gmail.com on 21 Feb 2012 at 6:13