digitalmars.D.bugs - [Issue 17102] New: std.write.file generates a segmentation fault
- via Digitalmars-d-bugs (31/31) Jan 16 2017 https://issues.dlang.org/show_bug.cgi?id=17102
https://issues.dlang.org/show_bug.cgi?id=17102 Issue ID: 17102 Summary: std.write.file generates a segmentation fault when the file name is a string with a default value Product: D Version: D2 Hardware: x86 OS: Mac OS X Status: NEW Severity: enhancement Priority: P1 Component: phobos Assignee: nobody puremagic.com Reporter: donte5379 comcast.net The following program generates a segmentation fault with rdmd or compiling with dmd and running the resulting executable. The data is a valid string and the file name is a string that is left at the default value. import std.stdio; import std.file; void main (string[] args) { string the_text = "File with bad name"; // some data to write string file_name; // set to default string value std.file.write(file_name, the_text); } % dmd --version DMD64 D Compiler v2.072.2 Copyright (c) 1999-2016 by Digital Mars written by Walter Bright % OSX 10.11.5 (15F34) --
Jan 16 2017