-
-
Notifications
You must be signed in to change notification settings - Fork 942
Closed
Labels
Milestone
Description
When using a background thread that blocks until input is read via
$stdin.gets.chompthe thread encounters an IOError, declaring that the handle is invalid. The error itself seems to be raised within RubyIO.java (line 2203), as shown in the logging output below:
Terminal started
term> Process #<Terminal:0x6a927603> encountered unhandled error: The handle is invalid (IOError)
gets at org/jruby/RubyIO.java:2203
read at /Users/petrilloj/Desktop/github/lagrange/lib/term.rb:48
cycle at /Users/petrilloj/Desktop/github/lagrange/lib/term.rb:86
run at /Users/petrilloj/Desktop/github/lagrange/lib/thread/process.rb:64
Terminal closed
Links to relevant code where this occurs can be found here:
- IRB "emulator": term.rb:48 and term.rb:86
- Process wrapper for submitting to a thread as a
java.lang.runnable: process.rb:64
For reference, the output from jruby -v produces (formatted for readability):
jruby 9.0.0.0.pre2 (2.2.2) 2015-04-28 2755ae0 Java HotSpot(TM)
64-Bit Server VM 25.31-b07 on 1.8.0_31-b13 +jit [Windows 7-amd64]
Note: this should be 1.8.0_45; I am away from my main development environment at the moment, but the problem persists on 1.8.0_31 as well.
Reactions are currently unavailable