From: Russ Cox Date: Fri, 5 Nov 2010 18:00:46 +0000 (-0400) Subject: runtime: explain nacl closure failure X-Git-Tag: weekly.2010-11-10~26 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9ce0eb2d07e00491ca1638853828e8972eada68b;p=gostls13.git runtime: explain nacl closure failure R=r, r2 CC=golang-dev https://golang.org/cl/2889042 --- diff --git a/src/pkg/runtime/nacl/386/closure.c b/src/pkg/runtime/nacl/386/closure.c index 6cab1eb5b5..648efe6bdd 100644 --- a/src/pkg/runtime/nacl/386/closure.c +++ b/src/pkg/runtime/nacl/386/closure.c @@ -219,6 +219,8 @@ runtime·closure(int32 siz, byte *fn, byte *arg0) e = runtime·dyncode_copy(clos.ecode, clos.buf, ClosureChunk); if(e != 0) { fd = 2; + if(e == -22) + runtime·throw("NaCl running with dyncode_copy disabled; export NACLDYNCODE=1 in your environment"); runtime·printf("dyncode_copy: error %d\n", e); runtime·throw("dyncode_copy"); }