Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JRuby sanity check failure #3967

Closed
ckpeter opened this issue Jun 14, 2016 · 1 comment
Closed

JRuby sanity check failure #3967

ckpeter opened this issue Jun 14, 2016 · 1 comment

Comments

@ckpeter
Copy link

ckpeter commented Jun 14, 2016

Environment

jruby 9.1.2.0 (2.3.0) 2016-05-26 7357c8f Java HotSpot(TM) Client VM 25.92-b14 on 1.8.0_92-b14 +jit [mswin32-x86]

Expected Behavior

if true
  ;
else
  begin
    ;
  end while true
end

When running the above code in a file, there should be no output or parse error.

Actual Behavior

According to:

https://github.com/jruby/jruby/blob/master/core/src/main/java/org/jruby/ir/representations/CFG.java

This is some kind of sanity check failure:

2016-06-14T14:37:36.413-05:00 [main] ERROR CFG : BB 5 missing from po list!
Graph:
org.jruby.ir.representations.CFG@191a895
Instructions:
BB [1:LBL_3:-1]
BB [2:LBL_4:-1]
        %self = recv_self()
        %v_0 = load_frame_closure()
        %current_scope = copy(scope<0>)
        %current_module = copy(module<0>)
        line_num(;n: 0)
        line_num(;n: 1)
        %v_3 = copy(nil)
        return(nil)
BB [5:_ITER_BEGIN_0:13]
        thread_poll()
        line_num(;n: 6)
        jump(_ITER_BEGIN_0:13)
BB [10:LBL_5:-1]


------ Rescue block map ------
@ckpeter
Copy link
Author

ckpeter commented Feb 25, 2017

Verified that JRuby 9.1.7.0 no longer produces the message.

@ckpeter ckpeter closed this as completed Feb 25, 2017
@enebo enebo added this to the Invalid or Duplicate milestone Mar 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants