Issue #13578 has been updated by nagachika (Tomoyuki Chikanaga).
Backport changed from 2.2: DONTNEED, 2.3: DONTNEED, 2.4: REQUIRED to 2.2: DONTNEED, 2.3: DONTNEED, 2.4: DONE
ruby_2_4 r59514 merged revision(s) 58810,58894.
----------------------------------------
Bug #13578: Another iseq_set_sequence: adjust bug
https://bugs.ruby-lang.org/issues/13578#change-66032
* Author: zenspider (Ryan Davis)
* Status: Closed
* Priority: Normal
* Assignee:
* Target version:
* ruby -v: 2.4.1p111
* Backport: 2.2: DONTNEED, 2.3: DONTNEED, 2.4: DONE
----------------------------------------
This seems to be related to #12613
~~~ ruby
#!/usr/bin/env ruby -w
def process_defn
if true then
# nothing needed here
else
if true then
case 42
when 42 then
return 42 # BOOM
when s { 42 } then
# nothing needed here
end
end
end
return 42
end
~~~
causes:
~~~
wtf.rb:10: [BUG] iseq_set_sequence: adjust bug -2 < 0
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]
~~~
I just built and installed 2.4.1 and it is still there. Also repros in 2.4.0. 2.3 and below seem fine.
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>