tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: odd awk memory leak?



On Sun, Oct 27, 2013 at 11:27:17AM -0400, Mouse wrote:
> >> (On 5.2, it blows past its soft datasize limit and just keeps on
> >> growing, whereas on 4.0.1 it fails with an out-of-memory error when
> >> it hits its datasize limit.)
> > That's an effect of the changed malloc implementation that no longer
> > takes memory from the 'data segment'.
> 
> That strikes me as a bit of a bug, or at least a regression, if the
> data size limit is no longer an effective way to bound the memory used
> by a naïve program that just malloc()s.

There is a new address space limit in place. I'd say it is just as
surprising that malloc changed the data segment...

Joerg


Home | Main Index | Thread Index | Old Index