www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18196] New: segmentation fault on "fwrite" on any system with


          Issue ID: 18196
           Summary: segmentation fault on "fwrite" on any system with
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: critical
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: gleb asd.iao.ru

dmd, installed from "official" rpm:

any program (for example, code follows) traps on "writeln" with follows

module main;

import std.stdio;

int main(string[] args)
    writefln("Hello World\n");
        return 0;

Fatal error: glibc detected an invalid stdio handle

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7460299 in fwrite () from /lib64/libc.so.6

(gdb) bt


    at /usr/include/d/std/stdio.d:2775







Jan 05 2018