Message136427
It's actually an obvious case of heap fragmentation due to long-lived chunks being realloc()ed to a smaller size. Some malloc implementations can choke on this (e.g. OS-X's malloc is known to not shrink blocks when realloc() is called with a smaller size).
The solution is simply to use a StringIO to avoid holding references to those blocks for too long.
Patch attached. |
|
Date |
User |
Action |
Args |
2011-05-21 10:17:19 | neologix | set | recipients:
+ neologix, mcicogni, amaury.forgeotdarc, taukki, vila, elachuni, anglocelt, r.david.murray, marcio, trogdorsey, BreamoreBoy |
2011-05-21 10:17:19 | neologix | set | messageid: <1305973039.56.0.922484909623.issue1441530@psf.upfronthosting.co.za> |
2011-05-21 10:17:18 | neologix | link | issue1441530 messages |
2011-05-21 10:17:18 | neologix | create | |
|