Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Open3 fails with ArrayStoreException after ~50 executions #2615
I am using
I am finding that after about 50 process executions, Open3 fails with a
This can be replicated by running:
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:
@philr This is likely still fall out from our switch from always creating a Proc whether it is used or not or leaving it a raw block internally if we know it is not used in the current scope. You are seeing it 50 times because the JIT is compiling this and trying to store the value as an IRubyObject (normal Ruby object) when it is still a raw block. This is quite serious so we will fix for pre2.