[MacRuby] #603: error handling breaks causing a WIN32API load error to escape from tmpdir
#603: error handling breaks causing a WIN32API load error to escape from tmpdir -------------------------+-------------------------------------------------- Reporter: juri@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: -------------------------+-------------------------------------------------- Using bacon, Tempfile and error handling at the same time causes a WIN32API load attempt in tmpdir with MacRuby 0.5. It seems something happens to exception handling that causes the begin … rescue … end block in tmpdir.rb to break. I'm attaching a test script that produces the following output: {{{ A description - shouldn't die 1 specifications (1 requirements), 0 failures, 0 errors bacon.rb:27:in `block': no such file to load -- Win32API (LoadError) }}} Commenting out either the `require "Tempfile"` line or `Bacon.summary_on_exit` line will unbreak the script. If I remove the block at the start of tmpdir.rb that attempts to load WIN32API, the error goes away. -- Ticket URL: <http://www.macruby.org/trac/ticket/603> MacRuby <http://macruby.org/>
#603: error handling breaks causing a WIN32API load error to escape from tmpdir -------------------------+-------------------------------------------------- Reporter: juri@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: -------------------------+-------------------------------------------------- Comment(by martinlagardette@…): {{{ $ macruby /tmp/test.rb A description - shouldn't die 1 specifications (1 requirements), 0 failures, 0 errors }}} This is what I get with trunk of tree (aka MacRuby 0.6). -- Ticket URL: <http://www.macruby.org/trac/ticket/603#comment:1> MacRuby <http://macruby.org/>
#603: error handling breaks causing a WIN32API load error to escape from tmpdir -------------------------+-------------------------------------------------- Reporter: juri@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.6 Component: MacRuby | Resolution: fixed Keywords: | -------------------------+-------------------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.6 Comment: I fixed a bug in the way exceptions were pushed/poped from the VM a few days ago, it apparently fixed this problem. -- Ticket URL: <http://www.macruby.org/trac/ticket/603#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby