[Issue 17102] std.write.file generates a segmentation fault when the file name is a string with a default value

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jan 20 08:57:06 PST 2017


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

--- Comment #2 from donte5379 at comcast.net ---
I think that std.file.write should throw an exception before the null gets
passed to the C API. Even if I add a try-catch block all I see is a message
"Segmentation fault" on the terminal. 

  std.file.write(file_name, the_text);
  } catch (Exception e){
    writeln(e);
  }


As an added frustration the redirection is corrupted in bash (and tcsh) and so
it is difficult to run dustmite. I ended up reducing the failing case by hand.

--


More information about the Digitalmars-d-bugs mailing list