IRBConsole crashes in trunk, regression appeared in 6407 (probably)
-------------------------------------------------------------------
Key: JRUBY-2368
URL: http://jira.codehaus.org/browse/JRUBY-2368
Project: JRuby
Issue Type: Bug
Components: Miscellaneous
Affects Versions: JRuby 1.1+
Environment: MacOS 10.5.2, Java 1.5.0_13
Reporter: Stephen Bannasch
Fix For: JRuby 1.1+
Any evaluation in IRBConsole causes a crash.
IRBConsole works in r6406:
{noformat}
svn up -r6406; ant clean; ant; ant jar-complete; java -cp
lib/jruby-complete.jar org.jruby.demo.IRBConsole
{noformat}
and enter:
{noformat} 1 + 1 \n{noformat}
While IRBConsole crashes in r6409:
{noformat}
svn up -r6409; ant clean; ant; ant jar-complete; java -cp
lib/jruby-complete.jar org.jruby.demo.IRBConsole
{noformat}
and enter:
{noformat} 1 + 1 \n{noformat}
r6407 and r6408 don't compile because of Java 6 code.
stack trace:
{noformat}
Exception in thread "Thread-2" java.util.NoSuchElementException
at java.util.LinkedList.remove(LinkedList.java:644)
at java.util.LinkedList.removeFirst(LinkedList.java:134)
at org.jruby.util.Join.send(Join.java:93)
at org.jruby.demo.TextAreaReadline.readLine(TextAreaReadline.java:428)
at org.jruby.demo.TextAreaReadline$14.execute(TextAreaReadline.java:264)
at
org.jruby.internal.runtime.methods.FullFunctionCallbackMethod.call(FullFunctionCallbackMethod.java:69)
at
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:66)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:235)
at
org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:1100)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:354)
at
org.jruby.evaluator.ASTInterpreter.localAsgnNode(ASTInterpreter.java:1256)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:387)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:371)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:168)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:176)
at
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:66)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:235)
at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:657)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:308)
at org.jruby.evaluator.ASTInterpreter.dAsgnNode(ASTInterpreter.java:858)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:328)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:371)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:631)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:302)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:168)
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:150)
at org.jruby.runtime.Block.yield(Block.java:114)
at
org.jruby.evaluator.ASTInterpreter.yieldNode(ASTInterpreter.java:1811)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:493)
at
org.jruby.evaluator.ASTInterpreter.ensureNode(ASTInterpreter.java:1072)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:348)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:631)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:302)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:168)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:176)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:248)
at
org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:1105)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:354)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:168)
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:150)
at org.jruby.runtime.InterpretedBlock.call(InterpretedBlock.java:103)
at org.jruby.runtime.Block.call(Block.java:105)
at org.jruby.RubyProc.call(RubyProc.java:205)
at org.jruby.RubyProc.call(RubyProc.java:190)
at org.jruby.RubyProcInvoker$call_method_0_0.call(Unknown Source)
at
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:66)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:235)
at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:657)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:308)
at
org.jruby.evaluator.ASTInterpreter.localAsgnNode(ASTInterpreter.java:1256)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:387)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:631)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:302)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:168)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:176)
at
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:70)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:267)
at
org.jruby.evaluator.ASTInterpreter.vcallNode(ASTInterpreter.java:1742)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:484)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:371)
at
org.jruby.evaluator.ASTInterpreter.whileNode(ASTInterpreter.java:1755)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:489)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:631)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:302)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:168)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:176)
at
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:66)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:235)
at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:657)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:308)
at
org.jruby.evaluator.ASTInterpreter.localAsgnNode(ASTInterpreter.java:1256)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:387)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:631)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:302)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:631)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:302)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:168)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:176)
at
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:66)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:235)
at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:657)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:308)
at
org.jruby.evaluator.ASTInterpreter.returnNode(ASTInterpreter.java:1589)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:456)
at org.jruby.evaluator.ASTInterpreter.caseNode(ASTInterpreter.java:686)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:310)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:631)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:302)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:168)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:176)
at
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:66)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:235)
at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:657)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:308)
at
org.jruby.evaluator.ASTInterpreter.localAsgnNode(ASTInterpreter.java:1256)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:387)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:631)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:302)
at
org.jruby.evaluator.ASTInterpreter.rescueNode(ASTInterpreter.java:1517)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:452)
at
org.jruby.evaluator.ASTInterpreter.whileNode(ASTInterpreter.java:1755)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:489)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:631)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:302)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:168)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:176)
at
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:70)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:267)
at
org.jruby.evaluator.ASTInterpreter.vcallNode(ASTInterpreter.java:1742)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:484)
at
org.jruby.evaluator.ASTInterpreter.localAsgnNode(ASTInterpreter.java:1256)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:387)
at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:648)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:308)
at org.jruby.evaluator.ASTInterpreter.orNode(ASTInterpreter.java:1455)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:439)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:281)
at org.jruby.evaluator.ASTInterpreter.orNode(ASTInterpreter.java:1455)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:439)
at
org.jruby.evaluator.ASTInterpreter.untilNode(ASTInterpreter.java:1701)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:480)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:631)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:302)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:168)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:176)
at
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:70)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:267)
at
org.jruby.evaluator.ASTInterpreter.vcallNode(ASTInterpreter.java:1742)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:484)
at org.jruby.evaluator.ASTInterpreter.dAsgnNode(ASTInterpreter.java:858)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:328)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:371)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:631)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:302)
at
org.jruby.evaluator.ASTInterpreter.rescueNode(ASTInterpreter.java:1517)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:452)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:168)
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:150)
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:115)
at org.jruby.runtime.Block.yield(Block.java:109)
at org.jruby.RubyKernel.loop(RubyKernel.java:902)
at org.jruby.RubyKernelInvoker$loop_s_method_0_0.call(Unknown Source)
at
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroBlock.call(JavaMethod.java:101)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:86)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:251)
at
org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:1105)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:354)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:168)
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:150)
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:115)
at org.jruby.runtime.Block.yield(Block.java:109)
at org.jruby.RubyKernel.rbCatch(RubyKernel.java:742)
at org.jruby.RubyKernelInvoker$rbCatch_s_method_1_0.call(Unknown Source)
at
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneBlock.call(JavaMethod.java:139)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:86)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:251)
at
org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:1105)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:354)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:631)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:302)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:168)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:176)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:86)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:251)
at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:662)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:308)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:631)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:302)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:168)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:176)
at
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:66)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:101)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:238)
at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:657)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:308)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:168)
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:150)
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:115)
at org.jruby.runtime.Block.yield(Block.java:109)
at org.jruby.RubyKernel.rbCatch(RubyKernel.java:742)
at org.jruby.RubyKernelInvoker$rbCatch_s_method_1_0.call(Unknown Source)
at
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneBlock.call(JavaMethod.java:139)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:86)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:251)
at
org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:1105)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:354)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:631)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:302)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:168)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:176)
at
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:66)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:101)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:238)
at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:657)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:308)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:631)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:302)
at org.jruby.evaluator.ASTInterpreter.rootNode(ASTInterpreter.java:1615)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:458)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:168)
at org.jruby.Ruby.evalScriptlet(Ruby.java:222)
at org.jruby.demo.IRBConsole$3.run(IRBConsole.java:76)
{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