[MacRuby] #1484: MacRuby crashes when invoked `break' in `rescue' block
#1484: MacRuby crashes when invoked `break' in `rescue' block ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Test Script 1: {{{ begin raise rescue while true break end end }}} Test Script 2: {{{ begin raise rescue (1..2).each do break end end }}} {{{ $ macruby test_case1.rb Assertion failed: ((size_t)pos < current_exceptions.size()), function pop_current_exception, file vm.cpp, line 3600. zsh: abort macruby test_case1.rb $ macruby test_case2.rb Assertion failed: ((size_t)pos < current_exceptions.size()), function pop_current_exception, file vm.cpp, line 3600. zsh: abort macruby test_case2.rb }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1484> MacRuby <http://macruby.org/>
#1484: MacRuby crashes when invoked `break' in `rescue' block ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by watson1978@…): `next' and `redo' also cause crashes. {{{ begin raise rescue while true next end end }}} {{{ begin raise rescue while true redo end end }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1484#comment:1> MacRuby <http://macruby.org/>
#1484: MacRuby crashes when invoked `break' in `rescue' block ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by watson1978@…): It seems to occur crash that `break', `next' and `redo' are invoked within loop and block. {{{ begin raise rescue lambda{ break }.call end }}} {{{ begin raise rescue lambda{ next }.call end }}} {{{ begin raise rescue lambda{ redo }.call end }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1484#comment:2> MacRuby <http://macruby.org/>
#1484: MacRuby crashes when invoked `break' in `rescue' block ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by watson1978@…): `return' within block also causes crash. {{{ begin raise rescue lambda{ return }.call end }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1484#comment:3> MacRuby <http://macruby.org/>
#1484: MacRuby crashes when invoked `break' in `rescue' block ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by watson1978@…): I fixed 'break', 'next' and 'return' issues. - https://github.com/MacRuby/MacRuby/commit/438c76f4bf2baac78ce4c6ad8827953b31... - https://github.com/MacRuby/MacRuby/commit/3d116e2fa7c13265aa3c9e72352e1c4a7b... - https://github.com/MacRuby/MacRuby/commit/f6cd823048ef28950e53bb572bb5fa2b0b... I do not fix 'redo' yet. -- Ticket URL: <http://www.macruby.org/trac/ticket/1484#comment:4> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby