After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 495215 - Freeing the schema document in schematron crashes unpredictably
Freeing the schema document in schematron crashes unpredictably
Status: RESOLVED FIXED
Product: libxml2
Classification: Platform
Component: general
2.6.30
Other All
: Normal critical
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2007-11-09 07:19 UTC by Stefan Behnel
Modified: 2007-11-13 20:30 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Stefan Behnel 2007-11-09 07:19:18 UTC
Steps to reproduce:
I keep running into segfaults when freeing the parsed document I pass into
xmlSchematronNewDocParserCtxt(). It looks like the "preserve" flag in the
xmlSchematron struct is not set correctly in xmlSchematronParse(). There is a
local variable that is set instead, but never stored back in the struct, so there are a number of cases where the document can be safely freed after use and in other cases it will just crash in xmlSchematronFree().

libxml2 should show predictable behaviour here. Currently, it's either leak or crash.


Stack trace:


Other information: