[Issue 11983] RDMD masks out segmentation faults
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jan 31 01:20:18 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=11983
--- Comment #4 from Walter Bright <bugzilla at digitalmars.com> 2014-01-31 01:20:09 PST ---
I did find something interesting (running on Ubuntu):
---------------------
rdmd> ./rdmd foo.d
rdmd>
rdmd> echo $?
245
rdmd> dmd foo.d
rdmd> ./foo
hello
Segmentation fault
rdmd> echo $?
139
---------------------
There's the 139 and 245 you were talking about. Looking at the source to rdmd:
private int run(string[] args, string output = null)
{
import std.conv;
yap(args.text);
if (dryRun) return 0;
File outputFile;
if (output)
outputFile = File(output, "wb");
else
outputFile = stdout;
auto process = spawnProcess(args, stdin, outputFile);
return process.wait();
}
so it must have something to do with spawnProcess() and wait().
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list