NPE from o.j.r.scope.ManyVarsDynamicScope#getValue
--------------------------------------------------
Key: JRUBY-2444
URL: http://jira.codehaus.org/browse/JRUBY-2444
Project: JRuby
Issue Type: Bug
Components: Interpreter
Affects Versions: JRuby 1.1.2
Environment: [EMAIL PROTECTED]:~$ jruby -v
ruby 1.8.6 (2008-04-25 rev 6555) [i386-jruby1.1.1]
Reporter: Martin Krauskopf
Priority: Blocker
Might be bug in jruby-debug-base, but very likely in JRuby as well. It should
not thrown such NPE. Having JRuby trunk and jruby-debug-base trunk (tester.rb
is one-liner):
{code}
[EMAIL PROTECTED]:~/ruby/tester/lib$ jruby -J-Djruby.reflection=true
-J-Djruby.compile.mode=OFF `which rdebug` tester.rb
/home/emdot/ruby/tester/lib/tester.rb:1
puts 'hi'
(rdb:1) break
Breakpoint 1 file /home/emdot/ruby/tester/lib/./tester.rb, line 1
Exception in thread "main" java.lang.NullPointerException
at
org.jruby.runtime.scope.ManyVarsDynamicScope.getValue(ManyVarsDynamicScope.java:66)
at
org.jruby.evaluator.ASTInterpreter.localVarNode(ASTInterpreter.java:1318)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:390)
at
org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:1138)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:355)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:632)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:303)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
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.RubyArray.each(RubyArray.java:1230)
at org.jruby.RubyArrayInvoker$each_method_0_0.call(Unknown Source)
at
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroBlock.call(JavaMethod.java:161)
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:687)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:309)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:632)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:303)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
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:891)
at org.jruby.RubyKernelInvoker$rbCatch_s_method_1_0.call(Unknown Source)
at
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneBlock.call(JavaMethod.java:259)
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:1155)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:355)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:632)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:303)
at
org.jruby.evaluator.ASTInterpreter.whileNode(ASTInterpreter.java:1805)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:490)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:632)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:303)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
at
org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:172)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:148)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:349)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:206)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:366)
at
org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:1141)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:355)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
at
org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:172)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:148)
at
org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:60)
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.fCallNode(ASTInterpreter.java:1150)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:355)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:632)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:303)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
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.libraries.ThreadLibrary$Mutex.synchronize(ThreadLibrary.java:158)
at
org.jruby.libraries.ThreadLibrary$MutexInvoker$synchronize_method_0_0.call(Unknown
Source)
at
org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroBlock.call(JavaMethod.java:161)
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:687)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:309)
at
org.jruby.evaluator.ASTInterpreter.rescueNode(ASTInterpreter.java:1567)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:453)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
at
org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:172)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:148)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:349)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:206)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:366)
at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:670)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:309)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
at
org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:172)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:148)
at org.jruby.RubyClass.invoke(RubyClass.java:238)
at
org.jruby.javasupport.util.RuntimeHelpers.invoke(RuntimeHelpers.java:323)
at org.jruby.RubyObject.callMethod(RubyObject.java:709)
at org.jruby.debug.DebugEventHook.callAtLine(DebugEventHook.java:573)
at org.jruby.debug.DebugEventHook.callAtLine(DebugEventHook.java:561)
at org.jruby.debug.DebugEventHook.processEvent(DebugEventHook.java:195)
at org.jruby.debug.DebugEventHook.event(DebugEventHook.java:101)
at org.jruby.Ruby.callEventHooks(Ruby.java:1982)
at
org.jruby.evaluator.ASTInterpreter.callTraceFunction(ASTInterpreter.java:1886)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:409)
at org.jruby.evaluator.ASTInterpreter.rootNode(ASTInterpreter.java:1665)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:459)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
at org.jruby.Ruby.loadFile(Ruby.java:1867)
at org.jruby.runtime.load.ExternalScript.load(ExternalScript.java:58)
at org.jruby.runtime.load.LoadService.load(LoadService.java:212)
at org.jruby.debug.Debugger.load(Debugger.java:129)
at org.jruby.debug.RubyDebugger.debug_load(RubyDebugger.java:191)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.jruby.internal.runtime.methods.ReflectedJavaMethod.call(ReflectedJavaMethod.java:141)
at
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:86)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:176)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:334)
at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:665)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:309)
at
org.jruby.evaluator.ASTInterpreter.localAsgnNode(ASTInterpreter.java:1306)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:388)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:632)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:303)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
at
org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:172)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:148)
at
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:265)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:146)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:302)
at
org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:1132)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:355)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:632)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:303)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:632)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:303)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:632)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:303)
at org.jruby.evaluator.ASTInterpreter.rootNode(ASTInterpreter.java:1665)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:459)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
at org.jruby.Ruby.loadFile(Ruby.java:1867)
at org.jruby.runtime.load.ExternalScript.load(ExternalScript.java:58)
at org.jruby.runtime.load.LoadService.load(LoadService.java:212)
at org.jruby.RubyKernel.load(RubyKernel.java:832)
at org.jruby.RubyKernelInvoker$load_s_method_0_1.call(Unknown Source)
at
org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:78)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:146)
at
org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:302)
at
org.jruby.evaluator.ASTInterpreter.fCallNode(ASTInterpreter.java:1132)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:355)
at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:632)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:303)
at org.jruby.evaluator.ASTInterpreter.rootNode(ASTInterpreter.java:1665)
at
org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:459)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
at org.jruby.Ruby.runInterpreter(Ruby.java:529)
at org.jruby.Ruby.runNormally(Ruby.java:435)
at org.jruby.Ruby.runFromMain(Ruby.java:311)
at org.jruby.Main.run(Main.java:144)
at org.jruby.Main.run(Main.java:89)
at org.jruby.Main.main(Main.java:80)
{code}
--
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