runtime: fatal error: found bad pointer in Go heap (incorrect use of unsafe or cgo?) on 386 FreeBSD after CL 138595 #28054
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
OS-FreeBSD
Milestone
https://build.golang.org/log/dc8386895fee1c38f34eb9376c42f013617a2b29
https://build.golang.org/log/0c46001a74e64da259c54f716f30cc5455b97788
https://build.golang.org/log/8d212ce13ba6fc50c4ca2f0ecc386624164e7913
Does this code needs to mark
sl
with runtime.KeepAlive and/or keep a reference to the casted*(*[]byte)(unsafe.Pointer(&sl))
?go/src/syscall/syscall_freebsd.go
Lines 370 to 375 in 2294e3e
(I couldn't reproduce this with a simple test doing ioutil.ReadDir + runtime.GC calls)
/cc @ianlancetaylor @bradfitz
The text was updated successfully, but these errors were encountered: