-
-
Notifications
You must be signed in to change notification settings - Fork 921
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java::JavaLang::RuntimeException: org.jruby.runtime.scopes.DynamicScope0 only supports scopes with 0 variables #5431
Comments
From the stack trace: 746 def with_new_connections_blocked
747 synchronize do
748 @threads_blocking_new_connections += 1
749 end
750
751 yield
752 ensure
753 num_new_conns_required = 0
754
755 synchronize do
756 @threads_blocking_new_connections -= 1
757
758 if @threads_blocking_new_connections.zero?
759 @available.clear
760
761 num_new_conns_required = num_waiting_in_queue
762
763 @connections.each do |conn|
764 next if conn.in_use?
765
766 @available.add conn
767 num_new_conns_required -= 1
768 end
769 end
770 end
771
772 bulk_make_new_connections(num_new_conns_required) if num_new_conns_required > 0
773 end |
9.2.2.0 fails with the same jruby 9.2.2.0 (2.5.0) 2018-11-08 fc462a4 Java HotSpot(TM) 64-Bit Server VM 25.162-b12 on 1.8.0_162-b12 +jit [darwin-x86_64] |
The problem here is that it appears to be trying to access the We have not yet been able to reproduce locally. @dr-itz Try running again with each of the following two flags in JRUBY_OPTS in separate runs: |
I believe we've found the problem in some late-merged optimization code that we did not expect to affect normal execution. @enebo is putting together a fix. |
That was fast, thanks. I can confirm it's fixed |
Environment
jruby 9.2.1.0 (2.5.0) 2018-11-06 7b14404 Java HotSpot(TM) 64-Bit Server VM 25.162-b12 on 1.8.0_162-b12 +jit [darwin-x86_64]
Behaviour
Running AR-JDBC (52-stable branch, but doesn't matter) tests:
I get:
The text was updated successfully, but these errors were encountered: