www.digitalmars.com         C & C++   DMDScript  

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


          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