On Tue Jul 29 21:49:31 2008, masak wrote: > $ svn info | grep Revi > Revision: 29869 > > $ ./perl6 -e 'sub a($x) { $x = 5 }; my $y = 7; a($y);' > Cannot assign to readonly variable > [...] > > works, but the following works but segfaults: > > $ ./perl6 -e 'sub a($x) { $x = 5 }; my $y = 7; a($y);' > Cannot assign to readonly variable > current instr.: 'a' pc 138 (EVAL_14:59) > called from Sub '_block11' pc 45 (EVAL_14:20) > called from Sub 'parrot;PCT::HLLCompiler;eval' pc 806 > (src/PCT/HLLCompiler.pir:481) > called from Sub 'parrot;PCT::HLLCompiler;command_line' pc 1305 > (src/PCT/HLLCompiler.pir:708) > called from Sub 'parrot;Perl6::Compiler;main' pc 14623 (perl6.pir:172) > perl6(33762) malloc: *** error for object 0x29c1250: double free > *** set a breakpoint in malloc_error_break to debug > Segmentation fault
A patch today is believed to have resolved the double frees, so this should no longer segfault, and it already gives a good enough error, so resolving ticket. Thanks, Jonathan