cmd/link: DTrace fails on macOS #17819
Labels
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
What version of Go are you using (
go version
)?1.7.3
What operating system and processor architecture are you using (
go env
)?amd64 on macOS 10.11.6 (El Capitan) and 10.12.1 (Sierra)
(System Integrity Protection is turned off to use DTrace)
What did you do?
What did you expect to see?
Appears system call information
What did you see instead?
The panic message thrown at the following place appears.
https://github.com/golang/go/blob/master/src/runtime/os_darwin.go#L108
@moriyoshi researched this issue I met and he found the following facts:
The following codes works.
bsdthread_register()
function may be designed to be called only once (call twice returns error), but /usr/lib/dtrace/libdtrace_dyld.dylib calls this function before loading and then Go runtime calls at initialization process too (if the go program was not built in cgo mode).The text was updated successfully, but these errors were encountered: