mirror of https://github.com/golang/go.git
Currently raceSymbolizeCode uses funcline, which is internal runtime function which crashes on incorrect PCs. Use FileLine instead, it is public and does not crash on invalid data. Note: FileLine returns "?" file on failure. That string is not NUL-terminated, so we need to additionally check what FileLine returns. Fixes #17190 Change-Id: Ic6fbd4f0e68ddd52e9b2dd25e625b50adcb69a98 Reviewed-on: https://go-review.googlesource.com/29714 Run-TryBot: Dmitry Vyukov <dvyukov@google.com> Reviewed-by: Ian Lance Taylor <iant@golang.org> |
||
|---|---|---|
| .. | ||
| testdata | ||
| README | ||
| doc.go | ||
| output_test.go | ||
| race.go | ||
| race_darwin_amd64.syso | ||
| race_freebsd_amd64.syso | ||
| race_linux_amd64.syso | ||
| race_linux_test.go | ||
| race_test.go | ||
| race_unix_test.go | ||
| race_windows_amd64.syso | ||
| race_windows_test.go | ||
| sched_test.go | ||
README
runtime/race package contains the data race detector runtime library. It is based on ThreadSanitizer race detector, that is currently a part of the LLVM project (http://llvm.org/git/compiler-rt.git). To update the .syso files use golang.org/x/build/cmd/racebuild. Current runtime is built on rev e35e7c00b5c7e7ee5e24d537b80cb0d34cebb038.