Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deadlock with --version flag #76

Closed
ppasieka opened this issue Oct 19, 2023 · 5 comments
Closed

Deadlock with --version flag #76

ppasieka opened this issue Oct 19, 2023 · 5 comments

Comments

@ppasieka
Copy link

Windows 10 and Powershell 7.3.8
curlie 1.7.1

curlie --version                                                                                                                                                                         

fatal error: all goroutines are asleep - deadlock!

goroutine 1 [chan receive]:
os/exec.(*Cmd).Wait(0xc00013a160)
        /opt/hostedtoolcache/go/1.17.13/x64/src/os/exec/exec.go:518 +0x188
os/exec.(*Cmd).Run(0xc00002c180)
        /opt/hostedtoolcache/go/1.17.13/x64/src/os/exec/exec.go:341 +0x39
main.main()
        /home/runner/work/curlie/curlie/main.go:167 +0x1485

goroutine 18 [chan receive]:
main.(*blockedWrite).Write(0xc0000da000, {0xc0001c4000, 0x11b, 0x8000})
        /home/runner/work/curlie/curlie/main.go:199 +0x35
io.copyBuffer({0x36c500, 0xc0000da000}, {0x36c560, 0xc0000e8000}, {0x0, 0x0, 0x0})
        /opt/hostedtoolcache/go/1.17.13/x64/src/io/io.go:425 +0x204
io.Copy(...)
        /opt/hostedtoolcache/go/1.17.13/x64/src/io/io.go:382
os/exec.(*Cmd).writerDescriptor.func1()
        /opt/hostedtoolcache/go/1.17.13/x64/src/os/exec/exec.go:311 +0x3a
os/exec.(*Cmd).Start.func1(0x0)
        /opt/hostedtoolcache/go/1.17.13/x64/src/os/exec/exec.go:444 +0x25
created by os/exec.(*Cmd).Start
        /opt/hostedtoolcache/go/1.17.13/x64/src/os/exec/exec.go:443 +0x965

I also got a deadlock when trying to fetch JSON data

@js-everts
Copy link
Contributor

This has already been fixed on master. Next release will have it.

@ppasieka
Copy link
Author

Is it also for the --version flag? I saw the commit on master and it seems to only address a deadlock issue with HTTP headers.

@js-everts
Copy link
Contributor

Yes

@js-everts
Copy link
Contributor

@ppasieka. Can you check if the new release (v1.7.2) addresses your issue?

@ppasieka
Copy link
Author

ppasieka commented Nov 1, 2023

@js-everts It works with v1.7.2

@ppasieka ppasieka closed this as completed Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants