www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20532] New: [betterC] methods utilizing stdout cause a segfault

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

          Issue ID: 20532
           Summary: [betterC] methods utilizing stdout cause a segfault
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: DragonDePlatino gmail.com

DMD 2.090.0 on Windows 8.1 x64. Compiling this betterC program with "dub run"
or "dub run -ax86_64" causes program to exit with a garbage error code:

module main;
import core.stdc.stdio;

extern(C) void main() {
        fprintf(stdout, "foo");
        putchar(' ');
}

Calling either of these functions causes a crash. Program runs successfully
when using "dub run -ax86".

--
Jan 25