www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21996] New: -checkaction=context triggers

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

          Issue ID: 21996
           Summary: -checkaction=context triggers
                    InvalidMemoryOperationError in finalizer
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: moonlightsentinel disroot.org

checkaction=context allocates from the GC to create the formatted assert
message. This may cause an InvalidMemoryOperationError when called from a
destructor during GC finalization.

--
Jun 06 2021