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
1.13.5 version, sometimes run subprocess hang #39249
Comments
Can you please
|
I can't reproduce bugs steadily. I have checked syslog and hardware, nothing useful. It's a deamon process to run user's cmd
|
Thank you for providing a sample. There are a few things that can probably be used to cut down this reproduced to the core issue Can you do away with the
The child will still respond to those signals and |
Also consider returning the exit code directly from
Is equivalent to
As the main goroutine cannot move past the select block until something is sent over |
I'll try, thanks. if any idea, please @yutongprogram , thinkyou |
Closing old issues that still have the WaitingForInfo label where enough details to investigate weren't provided. Feel free to leave a comment with more details and we can reopen. Also, see https://golang.org/wiki/Questions. |
What version of Go are you using (
go version
)?What did you do?
cmd := exec.CommandContext(ctx, "bash", "-c", "xxx")
cmd.Run() hang
What did you expect to see?
gdb parent prcoess,all thread futex in /usr/local/src/runtime/sys_linux_amd64.s:536
strace parent process's thread
The text was updated successfully, but these errors were encountered: