[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 11:40:45 UTC 2021
    
    
  
https://issues.dlang.org/show_bug.cgi?id=21656
kinke <kinke at gmx.net> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kinke at gmx.net
--- Comment #1 from kinke <kinke at gmx.net> ---
This seems to boil down to the usage of `program_invocation_name` on Linux to
obtain the name of the executable file (though that hasn't changed in the
linked druntime PR). It's apparently just `argv[0]` and so not really robust.
Not sure if BSD's `getprogname()` is better in this regard. Too bad
`std.file.thisExePath()` is in Phobos and thus not usable.
--
    
    
More information about the Digitalmars-d-bugs
mailing list