On Thu, Oct 29, 2015 at 09:22:30AM -0700, Pepe Schwarz wrote: > The same code on R-M segfaults: > > 16:15 <psch> m: A: for 1 { for 1 { last A }; CONTROL { when CX::Last { say > "last" }; default { .perl.say } } } > 16:15 <camelia> rakudo-moar 3cc195: OUTPUT«(signal SEGV)»
$ ./perl6-m -Ilib -e 'A: for 1 { for 1 { last A }; CONTROL { when CX::Last { say "last" }; default { .perl.say } } }' ASAN:SIGSEGV ================================================================= ==28758==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000024 (pc 0x7f88780c7391 sp 0x7fff1a233990 bp 0x7fff1a2339a0 T0) #0 0x7f88780c7390 in MVM_string_graphs src/strings/ops.h:30 #1 0x7f88780e7dcd in MVM_interp_run src/core/interp.c:1491 #2 0x7f8878398003 in MVM_vm_run_file src/moar.c:249 #3 0x401a4f in main src/main.c:191 #4 0x7f887792ad5c in __libc_start_main (/lib64/libc.so.6+0x1ed5c) #5 0x401058 (/home/nicholas/Sandpit/moar-san/bin/moar+0x401058) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV src/strings/ops.h:30 MVM_string_graphs ==28758==ABORTING Looks like it's "just" a NULL pointer dereference. Nicholas Clark