GNOME Bugzilla – Bug 591329
xsltParseStylesheetDoc produces segmentation fault
Last modified: 2009-08-10 15:51:18 UTC
Steps to reproduce: It can be reproduced with an application I've developed for libxml2/libxslt, and an XML document / stylesheet pair I'm working with. It can also be reproduced with the sample application found here: http://xmlsoft.org/XSLT/tutorial/libxslttutorial.html ...when compiled simply as follows: gcc -o sample sample.c -I/usr/local/include/libxml2 /usr/local/lib/libxslt.so BTW, both of these application work fine in the Win32 environment, they just aren't working in a Linux (RedHat) environment. Stack trace:
+ Trace 216868
Other information: Curiously, the xsltproc tool doesn't crash when processing the sample XML and stylesheet documents I'm working with. In fact, I've stripped xsltproc down to literally nothing in an effort to break it or reproduce this crash and cannot! I am at a loss to figure out what xsltproc is doing differently and feel it may may having something to do with the compile environment for that tool?
If xsltproc works then that very certainly means that the program or the way it was build is bogus. I don't think you can link just by adding a .so on a command line, instruction online, if you know better you should also be abble to debug the issue ! FAQ entry #1 http://xmlsoft.org/XSLT/FAQ.html Daniel