Fix D's segfaults!

Shachar Shemesh via Digitalmars-d digitalmars-d at puremagic.com
Mon Aug 21 01:11:15 PDT 2017


On 20/08/17 22:34, Bastiaan Veelo wrote:
> On Sunday, 20 August 2017 at 19:14:10 UTC, Johnson Jones wrote:
>>> Dne 20. 8. 2017 8:06 odpoledne napsal uživatel "Johnson Jones via 
>>> Digitalmars-d" <digitalmars-d at puremagic.com>:
>>>
>>>> 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 at 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 should be quite easy with a stacktrace, simply walk back until 
>> the location is in user code.
> 
> You are looking at the stack trace. The reason you don't see line 
> numbers is probably that you did not compile with debugging information on?

No. It's the same problem as https://issues.dlang.org/show_bug.cgi?id=17727

It's a bug in DMD.

Shachar


More information about the Digitalmars-d mailing list