On Dec 5, 3:09 pm, Adam Langley <
a...@golang.org> wrote:
> Does anyone else see this?
Actually, I see if a different error. rpc is failing for me. It fails
like:
2009/12/05 20:35:20 Test RPC server listening on
0.0.0.0:50023
2009/12/05 20:35:20 Test HTTP RPC server listening on
0.0.0.0:50024
--- FAIL: rpc.TestHTTPRPC
Add: expected 4121272 got 15
2009/12/05 20:35:20 rpc: client protocol error: gob: type mismatch: no
fields matched compiling decoder for Reply
2009/12/05 20:35:20 rpc: client protocol error: gob: type mismatch: no
fields matched compiling decoder for Reply
2009/12/05 20:35:20 rpc: tearing down Arith connection: gob: type
mismatch: no fields matched compiling decoder for Args
2009/12/05 20:35:20 ArgNotPointer arg type not a pointer: rpc.Args
2009/12/05 20:35:20 ArgNotPointerToStruct arg type not a pointer to a
struct: *int
2009/12/05 20:35:20 ArgNotPublic argument type not public: *rpc.local
2009/12/05 20:35:20 ReplyNotPointer reply type not a pointer:
rpc.Reply
2009/12/05 20:35:20 ReplyNotPointerToStruct reply type not a pointer
to a struct: *int
2009/12/05 20:35:20 ReplyNotPublic reply type not public: *rpc.local
2009/12/05 20:35:20 rpc Register: type Bad has no public methods of
suitable type
FAIL
So I added:
println("reply: ", reply.C);
at line 92 of src/pkg/rpc/server_test.go just before:
if reply.C != args.A+args.B {
t.Errorf("Add: expected %d got %d", reply.C, args.A+args.B)
}
then the line in the test run:
Add: expected 4121272 got 15
goes away. I assumed the code generation changed and print caused
reply.C to be set correctly. The rest of the tests started to throw
exceptions.
It looks like the compiler is not generating correct code. I reverted
back to version 4329 and my build succeeds.
But wait, there's more. I then updated to 4330 and the build
succeeded, and then 4331, and 4332, and even tip succeeds. I figured
I'd go through the versions to see which change caused the issue. Now
my build works fine. Something really weird is happening...
geoff