tech-userlevel archive

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

Re: odd awk memory leak?



>> (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.

But, at least, it explains the behaviour.

>> So, I'm tentatively considering this a bug in awk.
> The memory leak seems to be in gensub().

Ah!  Thank you very much; that's a substantial narrowing-down.  I'll go
a-chasing.

/~\ The ASCII                             Mouse
\ / Ribbon Campaign
 X  Against HTML                mouse%rodents-montreal.org@localhost
/ \ Email!           7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


Home | Main Index | Thread Index | Old Index