Skip to content

Instantly share code, notes, and snippets.

@cognominal
Created July 3, 2014 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cognominal/f1cc48cab3ca8bed4257 to your computer and use it in GitHub Desktop.
Save cognominal/f1cc48cab3ca8bed4257 to your computer and use it in GitHub Desktop.
rakudo on MoarVM crashes with : Segmentation fault: 11
# When writing code to test rakudo hanging on an unclosed =begin
# I run into : A segmentation fault.
# Also when supressing the last two lines and replacing the EVALed code by one that
# does not compile, this is CATCHed,the ok is printed but I still get a stacktrace even
# with the try in addition to the catch.
use Test;
my $thread = Thread.start({
try {
CATCH { ok 1, 'non closed "=begin whatever" should fail instead of hanging' }
EVAL q:to<END>;
=begin pod
bleck
END
}
});
sleep 1;
$thread.finish;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment