#537: Parrot::Interpreter - crash when calling new twice
---------------------+------------------------------------------------------
 Reporter:  szabgab  |       Owner:       
     Type:  bug      |      Status:  new  
 Priority:  normal   |   Milestone:       
Component:  none     |     Version:  trunk
 Severity:  medium   |    Keywords:       
     Lang:           |       Patch:       
 Platform:           |  
---------------------+------------------------------------------------------
 If I call Parrot::Interpreter->new twice in the same script it
 gives me a crash that I cannot catch in perl.

 {{{
 Backtrace - Obtained 23 stack frames (max trace depth is 32).
   (unknown)
     Parrot_confess
       (unknown)
         Parrot_str_to_hashval
           (unknown)
             parrot_hash_put
               Parrot_Hash_set_pmc_keyed_str
                 (unknown)
                   Parrot_NameSpace_set_pmc_keyed_str
                     register_raw_nci_method_in_ns
                       (unknown)
                         (unknown)
                           (unknown)
                             (unknown)
                               make_interpreter
                                 Parrot_new
                                   XS_Parrot__Interpreter_new
                                     Perl_pp_entersub
                                       Perl_runops_standard
                                         perl_run
                                           main
                                             __libc_start_main
                                               (unknown)
 }}}

 As in Padre there might be several plugins that try to embed their own
 Parrot interpreter it would be nice at least we could catch this
 exception.

 If Parrot::Interpreter is not planned to support multiple instances then
 probably better to turn it into a singleton.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/537>
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