Re: [go-nuts] Cgo and libclang invalid pointer

2022-09-28 Thread Ryan Chan
Forgot to mention Go version: go version go1.19.1 linux/amd64 -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view t

[go-nuts] Cgo and libclang invalid pointer

2022-09-28 Thread Ryan Chan
Hello! I have been playing around with Cgo + libclang, but have recently run into a somewhat opaque "bad/invalid pointer" issue that I was hoping somebody can help me debug. Paste[0] includes: the likely offender in my package (parse.go); a pseduo-example of how its intended usage (main.go); a