[libxml-devel] Memory leak with 0.9.6 and 0.9.7
Joseph Palermo
jpalermo at pivotallabs.com
Wed Jan 7 17:09:46 EST 2009
On Jan 7, 1:38 pm, Joseph Palermo <jpale... at pivotallabs.com> wrote:
> On Jan 7, 1:08 pm, Charlie Savage <c... at savagexi.com> wrote:
>
>
>
> > Hi Joseph,
>
> > > We are using some code that utilizes libxml and creates XML
> > > documents. Using 0.9.5 everything is fine. Using 0.9.6 or 0.9.7, the
> > > more we use this code, the higher our memory usage gets.
>
> > > Seems likely that a memory leak was introduced in 0.9.6. We are
> > > seeing this same behavior on OS X and Gentoo.
>
> > Can you be more specific? Do you know what code is causing the problem?
> > Can can put together a test case? If you can identify the code that
> > is causing the issue, then it should be easy enough to fix.
>
> > Charlie
>
> > smime.p7s
> > 4KViewDownload
>
> I'll see if I can put something together, we know it's in the
> to_solr_doc from acts_as_solr somewhere.
Looks like the problem is in to_s on Node
10000.times do
node = XML::Node.new 'node'
node.to_s
end
If I run that on 0.9.5 my memory usage is fine, if I run it on 0.9.6
it balloons.
More information about the libxml-devel
mailing list