]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: print stack trace when "panic during panic"
authorKeith Randall <khr@golang.org>
Sat, 18 Jan 2014 02:47:40 +0000 (18:47 -0800)
committerKeith Randall <khr@golang.org>
Sat, 18 Jan 2014 02:47:40 +0000 (18:47 -0800)
Fixes bug 7145

R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/53970043

src/pkg/runtime/panic.c

index b60547ea10dec2786943938dc93dd2f25162c1eb..d85a8fefba7c9166d895bf5f5a5bd09646dcff94 100644 (file)
@@ -371,7 +371,8 @@ runtime·startpanic(void)
                m->mcache = runtime·allocmcache();
        if(m->dying) {
                runtime·printf("panic during panic\n");
-               runtime·exit(3);
+               runtime·dopanic(0);
+               runtime·exit(3); // not reached
        }
        m->dying = 1;
        if(g != nil)