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

rpc.Register causes segfault when it encounters certain signatures #338

Closed
gopherbot opened this issue Nov 25, 2009 · 5 comments
Closed

Comments

@gopherbot
Copy link
Contributor

by arachnid+personal@notdot.net:

What steps will reproduce the problem?
http://gopaste.org/view/62pUa

What is the expected output? What do you see instead?
The test should pass - it fails.

What is your $GOOS?  $GOARCH?
GOOS=darwin
GOARCH=amd64

Which revision are you using?  (hg identify)
4a3f8104324e tip

Please provide any additional information below.
rpc/server.go:217 attempts to print an error message if the first argument 
to a 2-argument method is not a pointer. However, 'argType' is not 
initialized, since line 217 is only reached if the conversion on line 215 
failed, thus causing a segfault when it attempts to stringify the 
uninitialized variable.
@gopherbot
Copy link
Contributor Author

Comment 1 by arachnid+personal@notdot.net:

Note that the same bug also appears to apply on line 226.

@griesemer
Copy link
Contributor

Comment 2:

Owner changed to r...@golang.org.

@griesemer
Copy link
Contributor

Comment 3:

Status changed to Accepted.

@rsc
Copy link
Contributor

rsc commented Dec 2, 2009

Comment 4:

Labels changed: added packagebug.

@robpike
Copy link
Contributor

robpike commented Dec 2, 2009

Comment 5:

This issue was closed by revision 114f73f.

Status changed to Fixed.

Merged into issue #-.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc unassigned robpike Jun 22, 2022
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

4 participants