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

encoding/gob: Weird errors when using gob in more than one goroutine #1238

Closed
alberts opened this issue Oct 29, 2010 · 1 comment
Closed

encoding/gob: Weird errors when using gob in more than one goroutine #1238

alberts opened this issue Oct 29, 2010 · 1 comment

Comments

@alberts
Copy link
Contributor

@alberts alberts commented Oct 29, 2010

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

Attachments:

  1. gobbork.go (1315 bytes)
@robpike
Copy link
Contributor

@robpike robpike commented Oct 31, 2010

Comment 1:

This issue was closed by revision 7f7cb16.

Status changed to Fixed.

@alberts alberts added fixed labels Oct 31, 2010
@mikioh mikioh changed the title Weird errors when using gob in more than one goroutine encoding/gob: Weird errors when using gob in more than one goroutine Feb 26, 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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.