#1764: Infinite loop in exit handler
-----------------------+----------------------------------------------------
 Reporter:  nwellnhof  |       Owner:       
     Type:  bug        |      Status:  new  
 Priority:  normal     |   Milestone:       
Component:  core       |     Version:  trunk
 Severity:  medium     |    Keywords:       
     Lang:             |       Patch:       
 Platform:             |  
-----------------------+----------------------------------------------------

Comment(by nwellnhof):

 There seem to be two unrelated problems. The following PIR loops
 infinitely, no matter if it's run directly or compiled:

 {{{
 .sub main :main
     push_eh handler
     exit 0
 handler:
     .tailcall exit_handler()
 .end

 .sub exit_handler
     say "at exit"
     null $P0
     say $P0
 .end
 }}}

 The following PIR doesn't work when compiled to PBC:

 {{{
 .sub main :main
     .local pmc a
     .lex 'a', a
     a = new ['Integer']
     a = 42
     f()
 .end

 .sub f :outer(main)
     .local pmc a
     a = find_lex 'a'
     say a
 .end
 }}}

 Maybe related to #1171.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/1764#comment:2>
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