[1.9] Can't run mspec when JRuby is in force-compile mode
---------------------------------------------------------

                 Key: JRUBY-4585
                 URL: http://jira.codehaus.org/browse/JRUBY-4585
             Project: JRuby
          Issue Type: Bug
          Components: Ruby 1.9
            Reporter: Vladimir Sizikov
            Assignee: Thomas E Enebo


{noformat}
mspec ci -t j -T --1.9 -J-Djruby.jit.logging.verbose=true -T -X+C
jruby 1.5.0.dev (ruby 1.9.2dev trunk 24787) (2010-02-23 2a8097f) (Java 
HotSpot(TM) Client VM 1.6.0_18) [x86-java]
warning: could not compile: 
file:/D:/work/jruby-dev/jruby/lib/jruby.jar!/builtin/gem_prelude.rb because of: 
"0"
java.lang.ArrayIndexOutOfBoundsException: 0
        at org.objectweb.asm.Frame.a(Unknown Source)
        at org.objectweb.asm.Frame.a(Unknown Source)
        at org.objectweb.asm.MethodWriter.visitMaxs(Unknown Source)
        at 
org.jruby.compiler.impl.SkinnyMethodAdapter.end(SkinnyMethodAdapter.java:521)
        at 
org.jruby.compiler.impl.MethodBodyCompiler.endBody(MethodBodyCompiler.java:96)
        at 
org.jruby.compiler.impl.BaseBodyCompiler.defineNewMethod(BaseBodyCompiler.java:2405)
        at org.jruby.compiler.ASTCompiler.compileDefn(ASTCompiler.java:1809)
        at org.jruby.compiler.ASTCompiler.compile(ASTCompiler.java:225)
        at org.jruby.compiler.ASTCompiler19.compile(ASTCompiler19.java:69)
        at org.jruby.compiler.ASTCompiler.compileNewline(ASTCompiler.java:2851)
        at org.jruby.compiler.ASTCompiler.compile(ASTCompiler.java:318)
        at org.jruby.compiler.ASTCompiler19.compile(ASTCompiler19.java:69)
        at org.jruby.compiler.ASTCompiler.compileBlock(ASTCompiler.java:712)
        at org.jruby.compiler.ASTCompiler.compile(ASTCompiler.java:183)
        at org.jruby.compiler.ASTCompiler19.compile(ASTCompiler19.java:69)
        at org.jruby.compiler.ASTCompiler$91.call(ASTCompiler.java:2697)
        at 
org.jruby.compiler.impl.BaseBodyCompiler.defineModule(BaseBodyCompiler.java:2242)
        at org.jruby.compiler.ASTCompiler.compileModule(ASTCompiler.java:2724)
        at org.jruby.compiler.ASTCompiler.compile(ASTCompiler.java:312)
        at org.jruby.compiler.ASTCompiler19.compile(ASTCompiler19.java:69)
        at org.jruby.compiler.ASTCompiler.compileNewline(ASTCompiler.java:2851)
        at org.jruby.compiler.ASTCompiler.compile(ASTCompiler.java:318)
        at org.jruby.compiler.ASTCompiler19.compile(ASTCompiler19.java:69)
        at org.jruby.compiler.ASTCompiler.compileBlock(ASTCompiler.java:712)
        at org.jruby.compiler.ASTCompiler.compile(ASTCompiler.java:183)
        at org.jruby.compiler.ASTCompiler19.compile(ASTCompiler19.java:69)
        at org.jruby.compiler.ASTCompiler$91.call(ASTCompiler.java:2697)
        at 
org.jruby.compiler.impl.BaseBodyCompiler.defineModule(BaseBodyCompiler.java:2242)
        at org.jruby.compiler.ASTCompiler.compileModule(ASTCompiler.java:2724)
        at org.jruby.compiler.ASTCompiler.compile(ASTCompiler.java:312)
        at org.jruby.compiler.ASTCompiler19.compile(ASTCompiler19.java:69)
        at org.jruby.compiler.ASTCompiler.compileNewline(ASTCompiler.java:2851)
        at org.jruby.compiler.ASTCompiler.compile(ASTCompiler.java:318)
        at org.jruby.compiler.ASTCompiler19.compile(ASTCompiler19.java:69)
        at org.jruby.compiler.ASTCompiler.compileBlock(ASTCompiler.java:712)
        at org.jruby.compiler.ASTCompiler.compile(ASTCompiler.java:183)
        at org.jruby.compiler.ASTCompiler19.compile(ASTCompiler19.java:69)
        at org.jruby.compiler.ASTCompiler$84.branch(ASTCompiler.java:2511)
        at 
org.jruby.compiler.impl.BaseBodyCompiler.performBooleanBranch(BaseBodyCompiler.java:646)
        at org.jruby.compiler.ASTCompiler.compileIf(ASTCompiler.java:2530)
        at org.jruby.compiler.ASTCompiler.compile(ASTCompiler.java:282)
        at org.jruby.compiler.ASTCompiler19.compile(ASTCompiler19.java:69)
        at org.jruby.compiler.ASTCompiler.compileNewline(ASTCompiler.java:2851)
        at org.jruby.compiler.ASTCompiler.compile(ASTCompiler.java:318)
        at org.jruby.compiler.ASTCompiler19.compile(ASTCompiler19.java:69)
        at org.jruby.compiler.ASTCompiler.compileRoot(ASTCompiler.java:3440)
        at org.jruby.Ruby.tryCompile(Ruby.java:600)
        at org.jruby.Ruby.tryCompile(Ruby.java:582)
        at org.jruby.Ruby.compileAndLoadFile(Ruby.java:2516)
        at org.jruby.runtime.load.ExternalScript.load(ExternalScript.java:56)
        at 
org.jruby.runtime.load.LoadService.tryLoadingLibraryOrScript(LoadService.java:671)
        at org.jruby.runtime.load.LoadService.smartLoad(LoadService.java:314)
        at org.jruby.runtime.load.LoadService.require(LoadService.java:357)
        at org.jruby.Ruby.initBuiltins(Ruby.java:1442)
        at org.jruby.Ruby.init(Ruby.java:1042)
        at org.jruby.Ruby.newInstance(Ruby.java:172)
        at org.jruby.Main.run(Main.java:206)
        at org.jruby.Main.run(Main.java:117)
        at org.jruby.Main.main(Main.java:97)
Error, could not compile; pass -J-Djruby.jit.logging.verbose=true for more 
details
Exception in thread "main" :1: load error: builtin/gem_prelude -- 
java.lang.NullPointerException: null (LoadError)
        ...internal jruby stack elided...
        from (unknown).(unknown)(:1)
{noformat}


-- 
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