You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not a regression, but it has interfered with debugging runtime issues in 1.8. The fix is trivial and obviously correct (though the test is mighty hairy).
…ing GOTRACBEACK=crash
Currently, when printing tracebacks of other threads during
GOTRACEBACK=crash, if the thread is on the system stack we print only
the header for the user goroutine and fail to print its stack. This
happens because we passed the g0 to traceback instead of curg. The g0
never has anything set in its gobuf, so traceback doesn't print
anything.
Fix this by passing _g_.m.curg to traceback instead of the g0.
Fixes#19494.
Fixes#19637 (backport).
Change-Id: Idfabf94d6a725e9cdf94a3923dead6455ef3b217
Reviewed-on: https://go-review.googlesource.com/39600
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
bradfitz
changed the title
runtime: backport CL 38012 to 1.8.1
runtime: GOTRACEBACK=crash doesn't print user stack for threads on system stack (backport)
Apr 7, 2017
https://golang.org/cl/38012 fixes #19494.
The text was updated successfully, but these errors were encountered: