#641: Crash when loading PIR file
--------------------------------------+-------------------------------------
 Reporter:  jonathand                 |        Type:  bug   
   Status:  new                       |    Priority:  normal
Milestone:                            |   Component:  none  
  Version:  1.0.0                     |    Severity:  medium
 Keywords:  parrot, malformed, crash  |        Lang:        
    Patch:                            |    Platform:  linux 
--------------------------------------+-------------------------------------
 Parrot crashes while loading the following file :

 .sub main
   .local pmc bfdata
   bfdata = new [0;0;0;0;0;0;0;0;0;0] # <-- 10 zeros
 .end

 ## corresponding backtrace
 #0  0xb7f32a68 in constant_folding () from /usr/lib/libparrot.so.1.0.0
 #1  0xb7f32c98 in e_pbc_emit () from /usr/lib/libparrot.so.1.0.0
 #2  0xb7f23750 in emit_flush () from /usr/lib/libparrot.so.1.0.0
 #3  0xb7f1da7e in imc_compile_unit () from /usr/lib/libparrot.so.1.0.0
 #4  0xb7f1dae8 in imc_close_unit () from /usr/lib/libparrot.so.1.0.0
 #5  0xb7f12600 in yyparse () from /usr/lib/libparrot.so.1.0.0
 #6  0xb7f1deb0 in compile_to_bytecode () from /usr/lib/libparrot.so.1.0.0
 #7  0xb7f1f1a1 in imcc_run () from /usr/lib/libparrot.so.1.0.0
 #8  0x08048958 in _start ()


 Note that the following is parsed sucessfully :
 .sub main
   .local pmc bfdata
   bfdata = new [0;0;0;0;0;0;0;0;0] # <-- only 9 zeros here
 .end

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