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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 23 10:26:29 UTC 2021


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

--- Comment #9 from kinke <kinke at gmx.net> ---
I've just hit a related issue, a regression in master which was unfortunately
cherry-picked for LDC 1.25 final: https://github.com/dlang/druntime/pull/3382

The problem in this specific case was that the unittest process changes the
working dir (unit-threaded SandBox) and then an exception is thrown. The
executable can thus not be opened anymore, and no file/line infos are available
(if it wouldn't segfault before). I guess this scenario is 1000x more likely
than the executable file being in Nirvana at the time an exception is thrown,
and a real problem.

--


More information about the Digitalmars-d-bugs mailing list