Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
runtime: pointer 0xc420203000 to unused region of span idx=0x101 span.base()=0xc420314000 #7
Comments
freeekanayaka
referenced this issue
in CanonicalLtd/go-sqlite3x
Jul 14, 2017
Merged
Copy frames Go data to C memory instead of passing pointer #3
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
freeekanayaka commentedJul 14, 2017
This crash happens occasionally in the demo program.
The reason is a violation CGO rules for passing pointers from Go to C, as the
pages[i].Fill(page.Data, uint16(page.Flags), page.Number)call stores a Go pointer directly in C memory, which is forbidden. See also:golang/go#19135
Stacktrace: