The crash is on this line:
0x00000001000a43b8 in do_docode2 (n=0x10048eb30, flags=<optimized out>, flags@entry=0) at /home/marcus/Pike/8.1/src/docode.c:1174 1174 current_label->cleanups->cleanup = do_pop_to_mark;
with current_label->cleanups == NULL.
If pike is built with PIKE_DEBUG, you get this fatal instead:
/home/marcus/Pike/8.1/src/docode.c:1167: Fatal error: F_PUSH_ARRAY unexpected in this context. Backtrace at time of fatal: -:1: PikeCompiler("", UNDEFINED, -1, -1, target, UNDEFINED)->compile() -:1: DefaultCompilerEnvironment->compile(PikeCompiler("", UNDEFINED, -1, -1, ta rget, UNDEFINED)) /usr/local/pike/8.1.13/lib/master.pike:655: compile_string("int score_image(string image, int r, int g, int b) {return 42;}\narray(int) getpixel() {return ({1, 2, 3});}\n\nin"+[487]+"ng @ work s.\n #endif\n }\n}\n","/tmp/chris.pike",UNDEFINED,/tmp/chris,0,U NDEFINED)
So the crash is in the compiler proper, not in the execution of the program.