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: crash across program boundaries. #470

Closed
gopherbot opened this issue Dec 28, 2009 · 3 comments
Closed

encoding/gob: crash across program boundaries. #470

gopherbot opened this issue Dec 28, 2009 · 3 comments

Comments

@gopherbot
Copy link

by soniakeys:

Before filing a bug, please check whether it has been fixed since
the latest release: run "hg pull -u" and retry what you did to
reproduce the problem.  Thanks.

What steps will reproduce the problem?
1. Two source files, http://pastebin.com/f26179f31 and
http://pastebin.com/f557e27bb
2. compile and link as two separate programs.
3. run the first one, then the second.

What is the expected output? What do you see instead?
expected: 42.
instead:
throw: runtime·mapaccess1: key not in map
panic PC=0x2ad775b949e8
... (complete output: http://pastebin.com/f47eacf2f)

What is your $GOOS?  $GOARCH?
linux, amd64

Which revision are you using?  (hg identify)
16355a0398ab+ tip

Please provide any additional information below.
Possibly related to https://golang.org/issue/459, but I
think this is a separate issue.

The problem doesn't reproduce when the two programs are combined into one!
 That is, http://pastebin.com/f724d1c22 produces the expected output, 42.

Possibly some state is stored in the program address space that needs to be
encoded in the gob?  This would allow the one-program version to work but
would leave the two program version to make a bad assumption at some point.
@rsc
Copy link
Contributor

rsc commented Dec 28, 2009

Comment 1:

Owner changed to r...@golang.org.

Status changed to Accepted.

@robpike
Copy link
Contributor

robpike commented Dec 29, 2009

Comment 2:

Status changed to Started.

@robpike
Copy link
Contributor

robpike commented Dec 29, 2009

Comment 3:

This issue was closed by revision 1f55115.

Status changed to Fixed.

Merged into issue #-.

@mikioh mikioh changed the title Gob crash across program boundaries. encoding/gob: crash across program boundaries. Feb 26, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc unassigned robpike Jun 22, 2022
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

3 participants