Join GitHub today
runtime: fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?) #26243
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
goroutine 50 [GC worker (idle)]:
changed the title from
runtime: pointer 0xc423d9fe30 to unallocated span on CentOS
found bad pointer in Go heap (incorrect use of unsafe or cgo?)
Jul 18, 2018
I didn't see a clear answer to whether you use cgo or unsafe.
From the limited information we have the most natural guess would be that your program is somehow producing invalid pointer values, which most commonly happens due to a violation of the cgo pointer passing rules (https://golang.org/cmd/cgo/#hdr-Passing_pointers). Would it be possible for you to run your program with the environment variable