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

net/rpc: panic with runtime error: invalid memory address or nil pointer dereference #4294

Closed
tgulacsi opened this issue Oct 26, 2012 · 1 comment
Milestone

Comments

@tgulacsi
Copy link
Contributor

Before filing a bug, please check whether it has been fixed since the
latest release. Search the issue tracker and check that you're running the
latest version of Go:

Run "go version" and compare against
http://golang.org/doc/devel/release.html  If a newer version of Go exists,
install it and retry what you did to reproduce the problem.

Thanks.

What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. go get github.com/tgulacsi/go-xmlrpc
2. go test github.com/tgulacsi/go-xmlrpc
3. profit :)

What is the expected output?
ok      github.com/tgulacsi/go-xmlrpc   0.028s


What do you see instead?
2012/10/26 22:41:31 fillStructWithMap(&{Quo:0 Rem:0}, map[Rem:7 Quo:0])
2012/10/26 22:41:31  t=xmlrpc.Quotient k=struct
2012/10/26 22:41:31 got response back: &{Quo:0 Rem:7} (&{%!s(int=0) %!s(int=7)})
*xmlrpc.Quotient
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x20 pc=0x4c1169]

... (see attached file)

exit status 2
FAIL    github.com/tgulacsi/go-xmlrpc   0.038s


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

Which operating system are you using?
Debian testing

Which version are you using?  (run 'go version')
go version go1.0.2

Please provide any additional information below.
The issue is disappeared somewhere, with tip (024dde07c08d) everything is as expected. 
I just cannot find the reason behind this panic.

Attachments:

  1. go-panic.txt (7549 bytes)
@robpike
Copy link
Contributor

robpike commented Oct 26, 2012

Comment 1:

assume some of the changes to fix races etc. resolved this.
marking as fixed; please reopen if you can reproduce.

Status changed to Fixed.

@rsc rsc added this to the Go1.1 milestone Apr 14, 2015
@rsc rsc removed the go1.1 label Apr 14, 2015
@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

4 participants