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

          Issue ID: 16511
           Summary: Suspected Win64 release-mode code-gen bug
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: critical
          Priority: P1
         Component: dmd
          Assignee: nob...@puremagic.com
          Reporter: cbkbbej...@mailinator.com

I've reveived a bug report on a lib of mine that I'm suspecting may be a 64-bit
release-mode code-gen bug, because it involves what, at least *appears*, to be
a fiber overflowing its stack *ONLY* on 64-bit in release mode. I could
understand a stack overlflow on 32-bit-only, but this seems backwards. And a
release-mode-only crash seems to suggest a code-gen bug as well.

Sorry I dont have a reduced case right now, but you can reproduce like this:

On a Win64 machine with DUB 1.0.0
<http://code.dlang.org/files/dub-1.0.0-setup.exe>:

- Download this Gist to a fresh directory:
https://gist.github.com/MrSmith33/c2f435937aefbc3eead25aa873363d84

- From that directory, run:

> dub --arch=x86_64 --build=release --verbose --compiler=dmd

It will build, run, and then crash.

Omitting *either* of --arch=x86_64 or --build=release will eliminate the crash.

--

Reply via email to