Skip to content

Instantly share code, notes, and snippets.

@masak
Created May 28, 2010 12:05
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 masak/417084 to your computer and use it in GitHub Desktop.
Save masak/417084 to your computer and use it in GitHub Desktop.
$ cat produces-malloc-error
Q:PIR {
.local pmc list
list = new 'ResizablePMCArray'
push list, 195
push list, 182
.local pmc iterator
iterator = iter list
.local pmc sb
sb = new 'StringBuilder'
sb = unicode:""
loop:
unless iterator goto done
$P1 = shift iterator
$I1 = $P1
$S1 = chr $I1
sb .= $S1
goto loop
done:
%r = sb
};
$ perl6 produces-malloc-error
perl6(77040) malloc: *** error for object 0x1056b5d70: pointer being reallocated was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment