New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fatal error: found bad pointer in Go heap #66576
Comments
The fact that you found Please also add the full printout from the crash. Particularly, what does the line starting with "Building Go cmd/dist using " say? |
0xffff.... looks more like kernel space? |
The full printout is is in the attachment |
There are 7 patches to the release applied in that script. The script says |
Go version
go1.21.7 linux/arm64
Output of
go env
in your module/workspace:What did you do?
I encountered this fatal error by chance when I compile golang:
./make.bash -v
...
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
runtime
internal/goarch
internal/bytealg
internal/abi
internal/godebugs
internal/coverage/rtcov
internal/cpu
runtime/internal/syscall
runtime/internal/math
internal/goos
runtime/internal/sys
runtime/internal/atomic
internal/goexperiment
runtime: pointer 0xdeaddeaddeaddead
runtime: found in object at *(0xffff5a7e9b98+0x4200)
object=0xffff5a7e9b98 s=nil
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)
runtime stack:
runtime.dopanic__m
:0
runtime.throw
:0
runtime.badPointer
:0
runtime.findObject
:0
runtime.scanstackblock
:0
doscanstack1
:0
runtime.doscanstack
:0
runtime.markroot..func1
:0
runtime.systemstack
:0
runtime.markroot.constprop.0.isra.0
:0
runtime.gcDrain
:0
runtime.gcBgMarkWorker..func2
:0
runtime.systemstack..func1
:0
runtime_mstart
:0
start_thread
:0
thread_start
:0
:0
goroutine 140 [GC worker (idle)]:
runtime.mcall
:0
runtime.systemstack
:0
runtime.gcBgMarkWorker
:0
runtime.kickoff
:0
__startcontext
:0
goroutine 1 [semacquire]:
runtime.mcall
:0
runtime.gopark
:0
runtime.goparkunlock
:0
runtime.semacquire1
:0
sync.runtime__Semacquire
:0
sync.WaitGroup.Wait
What did you see happen?
fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?)
What did you expect to see?
NA
The text was updated successfully, but these errors were encountered: