Article: Finding memory bugs in D code with AddressSanitizer

Walter Bright newshound2 at digitalmars.com
Fri Jan 5 01:32:50 UTC 2018


On 1/3/2018 4:46 PM, Walter Bright wrote:
> On 1/3/2018 3:16 PM, Martin Nowak wrote:
>> https://issues.dlang.org/show_bug.cgi?id=18190
> 
> This is a stack overflow caused by having 4096 expression statements. The 
> compiler joins them with a commaexpression, and then recursively traverses it.
> 
>  > Nothing in the D part, not too surprising given dmd's approach to memory
> management though ;).
> 
> Stack overflow has nothing to do with memory management.

I'm a little curious about the stack overflow. I thought Linux would 
automatically extend the stack if it overflowed?


More information about the Digitalmars-d-announce mailing list