-
-
Notifications
You must be signed in to change notification settings - Fork 942
Closed
Labels
Milestone
Description
I am using jruby 9.0.0.0-SNAPSHOT (2.2.0p0) 2015-02-22 10fafff OpenJDK 64-Bit Server VM 24.75-b04 on 1.7.0_75-b13 +jit [linux-amd64].
I am finding that after about 50 process executions, Open3 fails with a java.lang.ArrayStoreException: org.jruby.runtime.Block.
This can be replicated by running:
jruby -ropen3 -e '100.times { Open3.capture3("jruby", "-v") }'
In the example, the exception is raised on about the 50th execution of the block (the exact execution where the failure occurs appears to vary slightly between test runs).
The exception stack trace is as follows:
ManyVarsDynamicScope.java:157:in `setValueOneDepthZero': java.lang.ArrayStoreException: org.jruby.runtime.Block
from /home/philr/.rvm/rubies/jruby-head/lib/ruby/stdlib/open3.rb:83:in `__script__'
from CompiledIRMethod.java:106:in `call'
from InterpretedIRMethod.java:127:in `call'
from WrapperMethod.java:90:in `call'
from CachingCallSite.java:273:in `cacheAndCall'
from CachingCallSite.java:79:in `callBlock'
from CachingCallSite.java:83:in `call'
from /home/philr/.rvm/rubies/jruby-head/lib/ruby/stdlib/open3.rb:-1:in `invokeOther16:popen3'
from /home/philr/.rvm/rubies/jruby-head/lib/ruby/stdlib/open3.rb:252:in `__script__'
from CompiledIRMethod.java:106:in `call'
from CompiledIRMethod.java:150:in `call'
from InterpretedIRMethod.java:232:in `call'
from DynamicMethod.java:214:in `call'
from WrapperMethod.java:62:in `call'
from CachingCallSite.java:193:in `call'
from -e:-1:in `invokeOther2:capture3'
from -e:1:in `-e_CLOSURE_1__-e_0'
from CompiledIRBlockBody.java:66:in `commonYieldPath'
from IRBlockBody.java:84:in `yieldSpecific'
from Block.java:116:in `yieldSpecific'
from RubyFixnum.java:300:in `times'
from RubyFixnum$INVOKER$i$0$0$times.gen:-1:in `call'
from CachingCallSite.java:303:in `cacheAndCall'
from CachingCallSite.java:141:in `callBlock'
from CachingCallSite.java:145:in `call'
from -e:-1:in `invokeOther5:times'
from -e:1:in `__script__'
from MethodHandle.java:599:in `invokeWithArguments'
from Compiler.java:112:in `load'
from Ruby.java:827:in `runScript'
from Ruby.java:820:in `runScript'
from Ruby.java:750:in `runNormally'
from Ruby.java:572:in `runFromMain'
from Main.java:404:in `doRunFromMain'
from Main.java:299:in `internalRun'
from Main.java:226:in `run'
from Main.java:198:in `main'
Reactions are currently unavailable