www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15019] New: [ICE] Heisencrash with -fPIC and non-trivial

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

          Issue ID: 15019
           Summary: [ICE] Heisencrash with -fPIC and non-trivial projects
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: aliloko gmail.com

Created attachment 1547
  --> https://issues.dlang.org/attachment.cgi?id=1547&action=edit
Repro kit

OS version: OS X 10.10.4

DMD version: 2.068.0

How to reproduce: 

Use ./build.sh in the attachment several time. DMD will occasionally crash with
one of the following errors:

  - dmd(1328,0x7fff72416300) malloc: *** error for object 0x100a58c08:
incorrect checksum for freed object - object was probably modified after being
freed.

  - Assertion failed: (0), function merge2, file mtype.c, line 1701.

  - dmd failed with exit code -11.

This is a heisenbug. I haven't reduced the testcase further since it tends to
make the bug disappear or more rare.

--
Sep 06 2015