[OT] OT: Null checks.
Walter Bright
newshound2 at digitalmars.com
Tue May 6 00:10:25 UTC 2025
On 5/4/2025 1:07 PM, Timon Gehr wrote:
> On 5/4/25 19:37, Walter Bright wrote:
>> Have you considered it might be a stack overflow?
>
> Yes, that is also an option, though I think it is not very likely for this
> particular application.
I've had many crashes due to stack overflows. The most recent was when I was
trying to get move constructors to work, the semantic routines would go into an
infinite recursive loop that was hard to untangle.
Code generation relies on seg faults to detect them. A guard page is inserted
past the end of the stack allocation which generates a seg fault when it gets
touched.
Divide by zero also generates a seg fault.
More information about the Digitalmars-d
mailing list