[Rd] Significant memory leak when using XML on Windows

Duncan Temple Lang dtemplelang at ucdavis.edu
Mon Dec 15 05:07:58 CET 2014

Janko and I have been in touch.
This is, I believe, a Windows specific issue and a compilation issue.
I could be wrong, but that is my impression from other reports.

When I have time (?! :-)), I will deal with it. Hopefully this will
be very soon.

Thanks Janko.


On 12/14/14, 7:54 PM, Jeroen Ooms wrote:
> On Thu, Dec 11, 2014 at 12:13 PM, Janko Thyson
> <janko.thyson at gmail.com <mailto:janko.thyson at gmail.com>> wrote:
> I'd so much appreciate if someone could have a look at this. If I can
> be of any help whatsoever, please let me know!
> Your current code uses various functions from XML and rvest so it is
> not a *minimal* reproducible example. Even if you are unfamiliar with
> C, you should be able to investigate exactly which function in the
> XML package you think has issues. Once you found the problematic R
> function, inspect the source code or use debug() to see if you can
> narrow it down even further, preferably to a particular call to C.
> Moreover you should create a reproducible example that allows us (and
> you) to test if this problem appears on other systems such as OSX or
> linux. Development and debugging on Windows is very painful so your
> windows-only example is not too helpful. Making people use windows is
> not a good strategy for getting help.
> If the "leak" does not appear on other systems, it is likely a
> problem in the libxml2 windows library on cran. In that case we can
> try to link against another build. On the other hand, if the problem
> does appear across systems, and you have provided a minimal
> reproducible example that pinpoints the problematic C function, we
> can help you review/debug the code C to see if/where some allocated
> object is not properly freed.

More information about the R-devel mailing list