Concurrency issue with include_class, multiple threads, and JIT
---------------------------------------------------------------

                 Key: JRUBY-1293
                 URL: http://jira.codehaus.org/browse/JRUBY-1293
             Project: JRuby
          Issue Type: Bug
          Components: Compiler
    Affects Versions: JRuby 1.x
            Reporter: Nick Sieger


This is happening in the maven-based build, but not the ant build for some 
reason, in the {{test_higher_javasupport}} test.

{noformat}
    [junit] Testcase: 
test_higher_javasupport(org.jruby.test.TestUnitTestSuite$ScriptTest):       
FAILED
    [junit] Faults encountered running 
/Users/nicksieger/Projects/jruby/trunk/jruby/maven/jruby/target/test-classes/test/test_higher_javasupport,
 complete output follows:
    [junit] Error:
    [junit] 
test_that_multiple_threads_including_classes_dont_step_on_each_other(TestHigherJavasupport):
    [junit] NativeException: java.lang.NullPointerException: null
    [junit]     RubyString.java:744:in `org.jruby.RubyString.match3'
    [junit]     null:-1:in 
`org.jruby.RubyStringDispatcher_for_String.callMethod'
    [junit]     CallAdapter.java:152:in 
`org.jruby.runtime.CallAdapter$DefaultCallAdapter.call'
    [junit]     CallAdapter.java:106:in 
`org.jruby.runtime.CallAdapter$DefaultCallAdapter.call'
    [junit]     
/Users/nicksieger/Projects/jruby/trunk/jruby/maven/jruby/target/classes/builtin/javasupport/core_ext/object.rb:30:in
 `include_class8314396_11824139.closure1'
    [junit]     null:-1:in `include_class8314396_11824139Blockclosure1xx1.call'
    [junit]     CompiledBlock.java:97:in `org.jruby.runtime.CompiledBlock.yield'
    [junit]     Block.java:181:in `org.jruby.runtime.Block.yield'
    [junit]     RubyArray.java:1214:in `org.jruby.RubyArray.each'
    [junit]     null:-1:in `org.jruby.RubyArrayInvoker$each_0.call'
    [junit]     InvocationCallback.java:58:in 
`org.jruby.runtime.callback.InvocationCallback.execute'
    [junit]     FullFunctionCallbackMethod.java:73:in 
`org.jruby.internal.runtime.methods.FullFunctionCallbackMethod.call'
    [junit]     CallAdapter.java:144:in 
`org.jruby.runtime.CallAdapter$DefaultCallAdapter.call'
    [junit]     CallAdapter.java:112:in 
`org.jruby.runtime.CallAdapter$DefaultCallAdapter.call'
    [junit]     
/Users/nicksieger/Projects/jruby/trunk/jruby/maven/jruby/target/classes/builtin/javasupport/core_ext/object.rb:28:in
 `include_class8314396_11824139.__file__'
    [junit]     
/Users/nicksieger/Projects/jruby/trunk/jruby/maven/jruby/target/classes/builtin/javasupport/core_ext/object.rb:-1:in
 `include_class8314396_11824139.run'
    [junit]     DefaultMethod.java:122:in 
`org.jruby.internal.runtime.methods.DefaultMethod.call'
{noformat}

If I turn off JIT by passing {{-Djruby.jit.enabled=false}} to the process 
running the test, the failure no longer occurs.

Because of this, I'm turning off JIT in the maven build until this issue is 
resolved, to allow the automated builds to succeed.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to