Re: [xml] libxml2 + RELAX NG bug



On Thu, Jul 03, 2003 at 02:29:21PM +0100, tadgh oleary comhairle ie wrote:


Hi,

I'm getting a segfault while trying to validate documents using a RELAX NG
schema. Valid files
are okay, but invalid ones lead to the segfault.

  I can't reproduce this with CVS version on Linux. Even running with
valgrind, no memory access error is detected:

paphio:~/XML -> ./xmllint --noout --relaxng testcase.rng testcase1.xml
testcase1.xml validates
paphio:~/XML -> ./xmllint --noout --relaxng testcase.rng testcase2.xml
RNG validity error: file testcase2.xml line 2 element dcument
Expecting element document, got dcument
testcase2.xml fails to validate
paphio:~/XML -> valgrind  ./xmllint --noout --relaxng testcase.rng testcase2.xml==31613== Memcheck, a.k.a. 
Valgrind, a memory error detector for x86-linux.
==31613== Copyright (C) 2002, and GNU GPL'd, by Julian Seward.
==31613== Using valgrind-1.9.4, a program instrumentation system for x86-linux.
==31613== Copyright (C) 2000-2002, and GNU GPL'd, by Julian Seward.
==31613== Estimated CPU clock rate is 1199 MHz
==31613== For more details, rerun with: -v
==31613==
RNG validity error: file testcase2.xml line 2 element dcument
Expecting element document, got dcument
testcase2.xml fails to validate
==31613==
==31613== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==31613== malloc/free: in use at exit: 4096 bytes in 1 blocks.
==31613== malloc/free: 269 allocs, 268 frees, 175226 bytes allocated.
==31613== For a detailed leak analysis,  rerun with: --leak-check=yes
==31613== For counts of detected errors, rerun with: -v
paphio:~/XML -> 

  This seems platcform/version specific, try to upgrade with the CVs version
and if you still have a problem debug it on your platform. This kind of error
is really basic I have no idea where this came from,

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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