这是indexloc提供的服务,不要输入任何密码
Skip to content

Version 0.0.4 hangs on exit on Apple silicon Macs with Go version >1.21 #44

@corneliusroemer

Description

@corneliusroemer

uilive version 0.0.4 causes hangs on exit on Apple silicon macs with Go version >=1.21

This was discovered in ncbi/datasets#490

When I downgrade the indirect dependency uilive to version 0.0.3, there's no hang on exit.

Repro: https://github.com/corneliusroemer/gohang

// go.main
package main

import (
	"fmt"
	"os"

	"github.com/gosuri/uiprogress"
)

var (
	progress *uiprogress.Progress
)

func main() {
	fmt.Fprintln(os.Stderr, "DEBUG: Exiting the program immediately")
	os.Exit(0) // Hangs here on Apple silicon macOS >=12 on go>=1.21 with gosuri/uilive v0.0.4
}
// go.mod
module github.com/corneliusroemer/gohang

go 1.21

require github.com/gosuri/uiprogress v0.0.1

require (
	github.com/gosuri/uilive v0.0.4 // indirect
	github.com/mattn/go-isatty v0.0.20 // indirect
	golang.org/x/sys v0.28.0 // indirect
)

Downstream report: gosuri/uiprogress#53

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