You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. Download program at:
http://play.golang.org/p/6GOV397bC9
2. Run it:
go run a.go
3. Send an invalid request:
(printf '{"id":"spameggs","method":"Foo.Bar"}';
cat /dev/stdin) | nc localhost 1234
What is the expected output?
No crash, error returned.
What do you see instead?
Crash.
goroutine 4 [running]:
net/rpc/jsonrpc.(*serverCodec).ReadRequestBody(0xf8400ca000, 0x547330, 0xf84006fc40,
0x547330, 0xf84006fc40, ...)
/usr/lib/go/src/pkg/net/rpc/jsonrpc/server.go:97 +0x89
net/rpc.(*Server).readRequest(0xf8400b40f0, 0xf8400b1800, 0xf8400ca000, 0xf8400b1080,
0xf8400a7300, ...)
/usr/lib/go/src/pkg/net/rpc/server.go:507 +0x23b
net/rpc.(*Server).ServeCodec(0xf8400b40f0, 0xf8400b1800, 0xf8400ca000, 0x44026b)
/usr/lib/go/src/pkg/net/rpc/server.go:407 +0x69
net/rpc.ServeCodec(0xf8400b1800, 0xf8400ca000)
/usr/lib/go/src/pkg/net/rpc/server.go:604 +0x3e
net/rpc/jsonrpc.ServeConn(0xf8400b14c0, 0xf8400854c8)
/usr/lib/go/src/pkg/net/rpc/jsonrpc/server.go:135 +0x4b
created by main.main
/home/brtzsnr/source/a.go:21 +0xd8
Which compiler are you using (5g, 6g, 8g, gccgo)?
6g
Which operating system are you using?
Ubuntu 12.04 LTS
Which version are you using? (run 'go version')
go version go1
The text was updated successfully, but these errors were encountered:
by alexandru@mosoi.ro:
The text was updated successfully, but these errors were encountered: