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

Panic when trying to print results of Wait #1851

Closed
gjemiller opened this issue May 19, 2011 · 2 comments
Closed

Panic when trying to print results of Wait #1851

gjemiller opened this issue May 19, 2011 · 2 comments

Comments

@gjemiller
Copy link

Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull -u" and retry what you did to
reproduce the problem.  Thanks.

What steps will reproduce the problem?
1. Compile attached source that attempts to print the results of waiting on a process
2. Run the program
3. See the panic

What is the expected output?
<nil>

What do you see instead?
Stack trace

Which compiler are you using (5g, 6g, 8g, gccgo)?
8g and 6g

Which operating system are you using?


Which revision are you using?  (hg identify)
95d2ce135523+ (release-branch.r57) release/release.r57.1

Please provide any additional information below.
I think this is because the return value of Wait is a *Waitmsg, and can be null, but the
String() function is defined on Waitmsg (not a pointer to).  The implicit dereference is
what gets you.

Attachments:

  1. waitmsg.go (160 bytes)
@rsc
Copy link
Contributor

rsc commented May 23, 2011

Comment 1:

Status changed to Accepted.

@rsc
Copy link
Contributor

rsc commented Jun 20, 2011

Comment 2:

This issue was closed by revision cf201ed.

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants