[Issue 21656] [REG2.091] Wrong file read during exception stringification leads to SIGBUS

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 22 16:05:28 UTC 2021


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

--- Comment #5 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> ---
It would have to be a different function. `thisExePath` returns a string, but
what we really need is a file descriptor. (And, we can't return the string
literal "/proc/self/exe" from `thisExePath` on Linux, that would break other
uses such as reading files adjacent to the program's executable.)

--


More information about the Digitalmars-d-bugs mailing list