Article: Finding memory bugs in D code with AddressSanitizer
codephantom
me at noyb.com
Fri Jan 5 06:33:14 UTC 2018
On Friday, 5 January 2018 at 01:32:50 UTC, Walter Bright wrote:
> 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?
it will, but only up to the rlimit. then it will SIGSEGV.
http://man7.org/linux/man-pages/man2/getrlimit.2.html
More information about the Digitalmars-d-announce
mailing list