Closed bmatsuo closed 8 years ago
The solution is that the cgo callsite must actually contain a slice addressing operation for the tool to properly detect that the slice is being addressed and not the bytes.Buffer containing the slice. I have a branch with a fix. But I am concerned that there is a performance impact on resulting binaries.
My experimental raft backend at github.com/bmatsuo/raft-mdb issues a panic due to the new cgo pointer restrictions. The problem occurs when a bytes.Buffer with a small amount of data is written using the Bytes method.