On Sunday, 20 August 2017 at 18:01:06 UTC, Johnson Jones wrote:
D has a major issue with segfaults! It always reports the fault
in the lowest function that it occurs! This is completely
useless!
std.file.FileException@std\file.d(755): Attempting to rename
file X.lib to Y.lib: The system cannot find the file specified.
----------------
0x0041015E
0x00402C69
0x004025A3
0x00413ECF
0x00413E93
0x00413D94
0x0040DAD7
0x76D78744 in BaseThreadInitThunk
0x76FD582D in RtlGetAppContainerNamedObjectPath
0x76FD57FD in RtlGetAppContainerNamedObjectPath
This tells me nothing about where the error occurred in *my*
program!
Dmd needs to be modified so that errors try to show from the
source code. This should be obvious the reasons, if it is not
possible, make it possible! There are no excuses why dmd should
make me go on an easter egg hunt when a seg fault occurs.
There are many issues and ideas reported in bugzilla about this:
https://issues.dlang.org/show_bug.cgi?id=14885
https://issues.dlang.org/show_bug.cgi?id=5944 etc. Here's the one
that specifically tackles the `FileException` and the problem
you're reporting: https://issues.dlang.org/show_bug.cgi?id=13543