Ticket #641 (closed bug: fixed)
Crash when loading PIR file
Reported by: | jonathand | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | none | Version: | 1.0.0 |
Severity: | medium | Keywords: | parrot, malformed, crash |
Cc: | Language: | ||
Patch status: | Platform: | linux |
Description
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