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

Initializing a shared hashmap segfaults #19199

Open
dlangBugzillaToGithub opened this issue Oct 5, 2016 · 4 comments
Open

Initializing a shared hashmap segfaults #19199

dlangBugzillaToGithub opened this issue Oct 5, 2016 · 4 comments

Comments

@dlangBugzillaToGithub
Copy link

Andrej Mitrovic (@AndrejMitrovic) reported this on 2016-10-05T22:10:28Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=16597

CC List

  • anonymous4

Description

I don't understand how something this basic can segfault.

-----
shared int[int] aa;
void main ( ) { aa = [1:1, 2:2]; }
-----
@dlangBugzillaToGithub
Copy link
Author

andrej.mitrovich (@AndrejMitrovic) commented on 2016-10-05T22:11:18Z

DMD 2.071.1 on both Linux and Win32.

@dlangBugzillaToGithub
Copy link
Author

dfj1esp02 commented on 2016-10-06T08:28:06Z

AA is not thread-safe and shouldn't support shared API.

@dlangBugzillaToGithub
Copy link
Author

dlang-bot commented on 2019-02-19T04:00:40Z

@Basile-z updated dlang/dmd pull request #9366 "fix issue 16597 - deprecate `shared` as associative array storage class" fixing this issue:

- fix issue 16597 - deprecate `shared` as associative array storage class

https://github.com/dlang/dmd/pull/9366

@dlangBugzillaToGithub
Copy link
Author

b2.temp commented on 2019-03-20T22:11:42Z

*** Issue 14068 has been marked as a duplicate of this issue. ***

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant