go-sox icon indicating copy to clipboard operation
go-sox copied to clipboard

FlowCallback uses unpinned pointer

Open fischerman opened this issue 1 year ago • 1 comments

The program

	start := time.Now()
	p.chain.FlowCallback(func(all_done bool) int {
		if start.Add(5 * time.Second).Before(time.Now()) {
			return sox.EOF
		}
		fmt.Printf(".")
		return sox.SUCCESS
	})

breaks with the panic panic: runtime error: cgo argument has Go pointer to unpinned Go pointer. I'm not familiar enough with cgo to understand what is going on.

As a workaround GODEBUG=cgocheck=0 can be set but it will probably lead to memory issues.

go version go1.23.1 linux/arm

fischerman avatar Sep 23 '24 10:09 fischerman

Hi! I haven't kept up with developments in Go, and this project has really not been active for a long time. I am going to archive this repository to avoid confusion, but feel free to fork if you use it and have a fix :)

krig avatar Oct 03 '24 03:10 krig