1
0
mirror of https://github.com/golang/go synced 2024-11-12 09:20:22 -07:00

runtime: print stack trace when "panic during panic"

Fixes bug 7145

R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/53970043
This commit is contained in:
Keith Randall 2014-01-17 18:47:40 -08:00
parent 985893acff
commit 6c9f198c9a

View 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)