#804: Avoid entering inner runloop when catching a exception thrown from C with 
a
pir handler
----------------------+-----------------------------------------------------
 Reporter:  NotFound  |       Owner:  NotFound
     Type:  RFC       |      Status:  new     
 Priority:  normal    |   Milestone:          
Component:  core      |     Version:  1.3.0   
 Severity:  high      |    Keywords:          
     Lang:            |       Patch:          
 Platform:  all       |  
----------------------+-----------------------------------------------------

Comment(by fperrad):

 this TT_804.patch solves
 http://rt.perl.org/rt3/Public/Bug/Display.html?id=59968

 but not yet TT #472, where I need to retrieve the backtrace in the handler
 :

 {{{
 .HLL "lua"
 .loadlib "lua_group"

 .sub 'main'
     $P1 = box 42
     $P2 = new 'LuaNil'
     push_eh _handler
     $P3 = $P1 + $P2
     say $P3
     pop_eh
     end
   _handler:
     .local pmc ex
     .get_results (ex)
     say 'catch'
 # this part doesn't work
 #    .local pmc bt
 #    bt = ex.'backtrace'()
 #    say 'bt'
     rethrow ex
 .end
 }}}

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/804#comment:3>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to