Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
encoding/gob: Weird errors when using gob in more than one goroutine #1238
What steps will reproduce the problem? 1. Run attached code with more than one client goroutine. What do you see instead? panic: Encode of Msg1 failed: "encoder: buffer not empty" or sometimes: Decode failed: "gob: unknown type id or corrupted data" Which compiler are you using (5g, 6g, 8g, gccgo)? 6g Which operating system are you using? linux Which revision are you using? (hg identify) 4798dc1f040a+ tip Please provide any additional information below. In the code that originally caused this crash, we also see stuff like: gob: internal error: field numbers out of bounds