Thread overview
[Issue 21442] Calling AA.remove from a destructor might lead to InvalidMemoryOperationError
Dec 02, 2020
Dlang Bot
Dec 02, 2020
Dlang Bot
Dec 21, 2020
Dlang Bot
December 02, 2020
https://issues.dlang.org/show_bug.cgi?id=21442

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #1 from Dlang Bot <dlang-bot@dlang.rocks> ---
@Geod24 created dlang/druntime pull request #3301 "Fix 21442: Do not call shrink for AA in finalizers" fixing this issue:

- Fix 21442: Do not call shrink for AA in finalizers

  This can easily lead to InvalidMemoryOperation (e.g. in Vibe.d).

https://github.com/dlang/druntime/pull/3301

--
December 02, 2020
https://issues.dlang.org/show_bug.cgi?id=21442

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/druntime pull request #3301 "Fix 21442: Do not call shrink for AA in finalizers" was merged into stable:

- c5d3156ee98650f8055c39247f4e626b1b3abe11 by Geod24:
  Fix 21442: Do not call shrink for AA in finalizers

  This can easily lead to InvalidMemoryOperation (e.g. in Vibe.d).

https://github.com/dlang/druntime/pull/3301

--
December 21, 2020
https://issues.dlang.org/show_bug.cgi?id=21442

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/druntime pull request #3315 "merge stable" was merged into master:

- 5a6b41f69a8749a0c30d3a8bbe790aff6d91e175 by Geod24:
  Fix 21442: Do not call shrink for AA in finalizers

  This can easily lead to InvalidMemoryOperation (e.g. in Vibe.d).

https://github.com/dlang/druntime/pull/3315

--