当没有可用的 llvm-symbolizer 时, "go test ./ ..." 会失败(即使有 llvm-symbolizer-14 也会如此)
$ go test ./... ? GitHub.com/google/pprof [no test files] ? GitHub.com/google/pprof/driver [no test files] ok GitHub.com/google/pprof/fuzz 0.034s ? GitHub.com/google/pprof/internal/plugin [no test files] ? GitHub.com/google/pprof/internal/proftest [no test files] ? GitHub.com/google/pprof/internal/transport [no test files] ? GitHub.com/google/pprof/third_party/svgpan [no test files] --- FAIL: TestObjFile (1.77s) --- FAIL: TestObjFile/fixed_load_address (1.65s) binutils_test.go:379: SourceLine for main: got [{main /tmp/hello.c 3 0 0}]; want [{main /tmp/hello.c 3 0 3}] --- FAIL: TestObjFile/simulated_ASLR_address (0.12s) binutils_test.go:379: SourceLine for main: got [{main /tmp/hello.c 3 0 0}]; want [{main /tmp/hello.c 3 0 3}] FAIL FAIL GitHub.com/google/pprof/internal/binutils 1.867s ok GitHub.com/google/pprof/internal/driver 1.728s ok GitHub.com/google/pprof/internal/elfexec 0.092s ok GitHub.com/google/pprof/internal/graph 0.125s ok GitHub.com/google/pprof/internal/measurement 0.125s ok GitHub.com/google/pprof/internal/report 0.921s ok GitHub.com/google/pprof/internal/symbolizer 0.097s ok GitHub.com/google/pprof/internal/symbolz 0.071s ok GitHub.com/google/pprof/profile 0.114s FAIL
内容来源: google/pprof