www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16386] New: std.concurrency: destructors called twice on

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

          Issue ID: 16386
           Summary: std.concurrency: destructors called twice on objects
                    passed as Message
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: r.sagitario gmx.de

I don't have a reduced repro case, but the unittests for std.concurrency
crashed for me on Win32 when enabling the precise GC in
https://github.com/dlang/druntime/pull/1603.

This is caused by the destructor of a Variant being called twice when a Node of
the Message List is reused by the MessageBox.

--
Aug 14 2016