Re: [xml] controlling xpath streaming

  Hello Daniel,

  thank you very much for the suggestion. I've updated the very latest
xpath.c from CVS. Now my application works without problems. It seems
that this patch helped a lot:

$ diff xpath.c xpath.c.r1.288 
<      namespaces = xmlMalloc(2 * (ctxt->nsNr + 1) * sizeof(xmlChar*));
     namespaces = xmlMalloc(2 * (ctxt->nsNr + 1));

On Thu, 5 May 2005 04:46:19 -0400
Daniel Veillard <veillard redhat com> wrote:

On Thu, May 05, 2005 at 01:24:46AM +0400, Oleg A. Paraschenko wrote:

  getting coredump in malloc is a programmer's nightmare, and my
application does so after recent update of libxml/libxslt from CVS.
Unfortunately, I can't produce a test case. But I can say that the
problem sometimes appears when I use namespaces (ctxt->nsNr,
ctxt->namespaces) in xmlXPathContextPtr, and when an XPath expression
is streamable.

  Fortunately, I found a workaround which works for me. In the file
"xpath.c", I deleted the following code fragment:


  The question is: would you please add a parameter to the configure
script to control whether to use XPath streaming or not?

  I disagree. It's likely a bug. I want the bug fixed, not people
working around the bug using yet another tweaking interface.
Did you checked Mark Vakoc recent patch ? 


Daniel Veillard      | Red Hat Desktop team
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

Oleg Paraschenko  olpa@  XML news in Russian  Generative Programming, XML, TeX, Scheme

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]