This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author neologix
Recipients BreamoreBoy, amaury.forgeotdarc, anglocelt, elachuni, marcio, mcicogni, neologix, r.david.murray, taukki, trogdorsey, vila
Date 2011-05-21.10:17:17
SpamBayes Score 1.9943808e-07
Marked as misclassified No
Message-id <1305973039.56.0.922484909623.issue1441530@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-05-21 10:17:19neologixsetrecipients: + neologix, mcicogni, amaury.forgeotdarc, taukki, vila, elachuni, anglocelt, r.david.murray, marcio, trogdorsey, BreamoreBoy
2011-05-21 10:17:19neologixsetmessageid: <1305973039.56.0.922484909623.issue1441530@psf.upfronthosting.co.za>
2011-05-21 10:17:18neologixlinkissue1441530 messages
2011-05-21 10:17:18neologixcreate