]> Cypherpunks repositories - gostls13.git/commit
runtime: fix bug in GOTRACEBACK=crash causing suppression of core dumps.
authorAlan Donovan <adonovan@google.com>
Fri, 2 May 2014 17:06:58 +0000 (13:06 -0400)
committerAlan Donovan <adonovan@google.com>
Fri, 2 May 2014 17:06:58 +0000 (13:06 -0400)
commit28c515f40faba1cd1589dcc3f6f0fe3e2f5f6325
treed96ff06430c2ed9938f1af84e2a2e0a217624352
parent8afa086ce67b44abb9c9639efca214db7acf7b3f
runtime: fix bug in GOTRACEBACK=crash causing suppression of core dumps.

Because gotraceback is called early and often, its cache commits to the value of getenv("GOTRACEBACK") before getenv is even ready.  So now we reset its cache once getenv becomes ready.  Panicking programs now dump core again.

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/97800045
src/pkg/runtime/runtime.c