[Issue 21484] Infinite recursion in core.memory : GC.{get,set,clr}Attr(const scope void*...)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 16 17:52:33 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=21484

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

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

--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@Geod24 created dlang/druntime pull request #3314 "Fix 21484: Infinite loop in
core.memory : GC.{get,set,clr}Attr(const scope void*...)" fixing this issue:

- Fix 21484: Infinite loop in core.memory : GC.{get,set,clr}Attr(const scope
void*...)

  Those functions never worked, and would cause an infinite recursion.
  In a non-optimized build that would exhaust the stack and trigger a SEGV,
  however in the optimized build we distribute, it results in an infinite
  loop as tail call optimization is performed.

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

--


More information about the Digitalmars-d-bugs mailing list