[Issue 12130] Segmentation fault if HOME environment variable does not exist

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Sep 12 11:05:14 PDT 2014


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

--- Comment #6 from hsteoh at quickfur.ath.cx ---
Aha! The problem is caused by your PATH having a literal '~' character in it.
This causes dmd to call getenv("PATH"), but it fails to check a NULL return
value, so when HOME is unset, it calls strlen(NULL) which segfaults.

--


More information about the Digitalmars-d-bugs mailing list