Skip to content

os/exec: CombinedOutput() segmentation fault (core dumped) #33663

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

Closed
drwpeng opened this issue Aug 15, 2019 · 5 comments
Closed

os/exec: CombinedOutput() segmentation fault (core dumped) #33663

drwpeng opened this issue Aug 15, 2019 · 5 comments
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@drwpeng
Copy link

drwpeng commented Aug 15, 2019

What version of Go are you using (go version)?

linux go1.12.7

$ go version

Does this issue reproduce with the latest release?

What operating system and processor architecture are you using (go env)?

debian in docker

go env Output
$ go env

What did you do?

image

What did you expect to see?

no segment fault

What did you see instead?

image

@mattn
Copy link
Member

mattn commented Aug 15, 2019

As far as I can see your screenshot, the crashed program is mpclient not Go.

@drwpeng
Copy link
Author

drwpeng commented Aug 15, 2019

I find "ProcessState" Field. I add fmt.Printf("state.....", state) to wait() function.As shown:
image
Then I saw the output as shown below:
image

@mattn
Copy link
Member

mattn commented Aug 15, 2019

Yes, it is state of child process. So the crashed program is mpclient.

@agnivade
Copy link
Contributor

@drwpeng - please let us know if the above diagnosis is incorrect. You can also run the "./mpclient " manually to check if it generates a seg fault. As far as I can see, the Go program runs fine because it prints other lines properly after the seg fault.

And it is preferred to directly have the text output rather than a screenshot. In this case, I could not copy paste your mpclient command just because it was an image. A minor inconvenience, but it could be bigger if I had to use any of the text to reproduce some other issue.

@agnivade agnivade added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Aug 15, 2019
@dmitshur dmitshur changed the title os/exec/exec.go: CombinedOutput() segmentation fault (core dumped) os/exec: CombinedOutput() segmentation fault (core dumped) Aug 15, 2019
@drwpeng
Copy link
Author

drwpeng commented Aug 21, 2019

Yes, it is a problem with mpclient. Thank you for your help.

@drwpeng drwpeng closed this as completed Aug 21, 2019
@golang golang locked and limited conversation to collaborators Aug 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

4 participants