GNOME Bugzilla – Bug 140861
segmentation fault in running 1.1.6
Last modified: 2009-08-15 18:40:50 UTC
It, uh..., segmentation faults. The same input on 1.0.33 works. The test file is of a slightly commercially-sensitive nature, so I don't want to splat it into the public; but will send it if you ask. You will instantly be able to tell if the problem is my fault or yours :-) Keep up the excellent work.
Without further information it's impossible for me to do anything (the software is heavily tested against a suite of "regression tests", so I must assume the problem is triggered by something within your data which is not within those tests). Could you email your testfile to me directly? I will respect it's slightly sensitive nature and will destroy it when the bug is resolved. Regards, Bill
After some exchange of emails, the trouble has been identified. This problem was caused by a bug in transform.c concerning XPath Nodesets, which has been fixed in CVS. It can be identified by running the program under Valgrind, which will detect an 'invalid' memory write, e.g.: ==25538== Invalid write of size 4 ==25538== at 0x3C047C65: xsltApplyTemplates (transform.c:3168) ==25538== by 0x3C044D1D: xsltApplyOneTemplate (transform.c:1557) ==25538== by 0x3C0485F4: xsltIf (transform.c:3585) ==25538== by 0x3C044D1D: xsltApplyOneTemplate (transform.c:1557) ==25538== Address 0x41E7DE54 is not stack'd, malloc'd or free'd ==25538== Thanks for the report Bill
This should be closed in libxslt-1.1.8, thanks, Daniel