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

Parallel assignment of map entries crashes compiler #88

Closed
gopherbot opened this issue Nov 12, 2009 · 5 comments
Closed

Parallel assignment of map entries crashes compiler #88

gopherbot opened this issue Nov 12, 2009 · 5 comments

Comments

@gopherbot
Copy link

by punya.biswal:

What steps will reproduce the problem?
1. Assign two entries of a map in the same expression, like so:
   x := make(map[int]int, 10);
   x[0], x[1] = 2, 7

What is the expected output? What do you see instead?
Both entries should be assigned. Instead, the compiler (6g) segfaults.

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

Which revision are you sync'ed to?  (hg log -l 1)
4008:2165ee3eec5a

Please provide any additional information below.
Parallel assignment works just fine for arrays.
@rsc
Copy link
Contributor

rsc commented Nov 12, 2009

Comment 1:

Whoops.

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

Status changed to Accepted.

@rsc
Copy link
Contributor

rsc commented Nov 15, 2009

Comment 2:

Status changed to Started.

@rsc
Copy link
Contributor

rsc commented Nov 15, 2009

Comment 3:

This issue was closed by revision a338231.

Status changed to Fixed.

Merged into issue #-.

@rsc
Copy link
Contributor

rsc commented Nov 24, 2009

Comment 4:

Issue #323 has been merged into this issue.

minux pushed a commit to minux/goios that referenced this issue Feb 27, 2015
mwhudson pushed a commit to mwhudson/go that referenced this issue May 22, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
@gopherbot
Copy link
Author

CL https://golang.org/cl/35073 mentions this issue.

@rsc rsc removed their assignment 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

2 participants