GNOME Bugzilla – Bug 495215
Freeing the schema document in schematron crashes unpredictably
Last modified: 2007-11-13 20:30:21 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: