Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

FlowCallback uses unpinned pointer #22

Open
fischerman opened this issue Sep 23, 2024 · 1 comment
Open

FlowCallback uses unpinned pointer #22

fischerman opened this issue Sep 23, 2024 · 1 comment

Comments

@fischerman
Copy link

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
@krig
Copy link
Owner

krig commented Oct 3, 2024

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 :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants