Regression: Interpreter crashes on if/while with empty expression
-----------------------------------------------------------------
Key: JRUBY-2824
URL: http://jira.codehaus.org/browse/JRUBY-2824
Project: JRuby
Issue Type: Bug
Environment: Latest JRuby 1.1.3 (almost released one) :)
Reporter: Vladimir Sizikov
Assignee: Thomas E Enebo
Priority: Blocker
Fix For: JRuby 1.1.3
In our best tradition, here's a blocker with JRuby crash in interpreter, right
before the release ;)
Essentially, the following code:
{noformat}
if ()
end
{noformat}
or
{noformat}
while ()
end
{noformat}
crash JRuby interpreter:
{noformat}
jruby -X-C -e "if (); end"
Exception in thread "main" java.lang.NullPointerException
at org.jruby.ast.IfNode.interpret(IfNode.java:103)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:99)
at org.jruby.ast.RootNode.interpret(RootNode.java:126)
at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:86)
at org.jruby.Ruby.runInterpreter(Ruby.java:538)
at org.jruby.Ruby.runNormally(Ruby.java:444)
at org.jruby.Ruby.runFromMain(Ruby.java:320)
at org.jruby.Main.run(Main.java:184)
at org.jruby.Main.run(Main.java:91)
at org.jruby.Main.main(Main.java:82)
{noformat}
The regression is introduced in rev r6946: "Tom Bomb! New Interpreter landing"
:)
--
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