Segmentation fault in DMD - how to debug?
Steven Schveighoffer
schveiguy at gmail.com
Thu Sep 29 14:50:05 UTC 2022
On 9/29/22 9:57 AM, Andrey Zherikov wrote:
> On Thursday, 29 September 2022 at 03:19:08 UTC, Steven Schveighoffer wrote:
>> On 9/28/22 9:01 PM, Andrey Zherikov wrote:
>>> On Thursday, 29 September 2022 at 00:48:03 UTC, Andrey Zherikov wrote:
>>>> I actually see that DMD is very unstable.
>>>
>>
>> This seems like it *might be* an out of memory problem. When the
>> compiler runs out of memory, any of a number of things might happen,
>> including segfaults.
>>
>
> Why doesn't it fail with "out of memory exception"? I remember it did in
> previous versions (I use 2.100.2 now).
>
Classic problem for memory allocation is nobody checks if it succeeds,
or if they do, they don't handle it properly. This likely includes
various places in the compiler.
-Steve
More information about the Digitalmars-d
mailing list