Bug 16597 – Initializing a shared hashmap segfaults

Status
NEW
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-10-05T22:10:28Z
Last change time
2024-12-13T18:50:24Z
Keywords
ice-on-invalid-code, pull
Assigned to
No Owner
Creator
Andrej Mitrovic
See also
https://issues.dlang.org/show_bug.cgi?id=14068
Moved to GitHub: dmd#19199 →

Comments

Comment #0 by andrej.mitrovich — 2016-10-05T22:10:28Z
I don't understand how something this basic can segfault. ----- shared int[int] aa; void main ( ) { aa = [1:1, 2:2]; } -----
Comment #1 by andrej.mitrovich — 2016-10-05T22:11:18Z
DMD 2.071.1 on both Linux and Win32.
Comment #2 by dfj1esp02 — 2016-10-06T08:28:06Z
AA is not thread-safe and shouldn't support shared API.
Comment #3 by dlang-bot — 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
Comment #4 by b2.temp — 2019-03-20T22:11:42Z
*** Issue 14068 has been marked as a duplicate of this issue. ***
Comment #5 by robert.schadek — 2024-12-13T18:50:24Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19199 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB