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

FlowCallback uses unpinned pointer #22

@fischerman

Description

@fischerman

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions