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:
parent
985893acff
commit
6c9f198c9a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user