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 591329 - xsltParseStylesheetDoc produces segmentation fault
xsltParseStylesheetDoc produces segmentation fault
Status: RESOLVED INCOMPLETE
Product: libxslt
Classification: Platform
Component: general
1.1.2
Other All
: Normal critical
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2009-08-10 13:33 UTC by Corey Stinson
Modified: 2009-08-10 15:51 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Corey Stinson 2009-08-10 13:33:10 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:
  • #0 xmlXPathCacheNewString
    at xpath.c line 2128
  • #1 xmlXPathCompPathExpr
    at xpath.c line 10184
  • #2 xmlXPathCompUnaryExpr
    at xpath.c line 10616
  • #3 xmlXPathCompMultiplicativeExpr
    at xpath.c line 10681
  • #4 xmlXPathCompAdditiveExpr
    at xpath.c line 10722
  • #5 xmlXPathCompRelationalExpr
    at xpath.c line 10760
  • #6 xmlXPathCompEqualityExpr
    at xpath.c line 10802
  • #7 xmlXPathCompAndExpr
    at xpath.c line 10833
  • #8 xmlXPathCompileExpr
    at xpath.c line 10859
  • #9 xmlXPathCompPathExpr
    at xpath.c line 10309
  • #10 xmlXPathCompUnaryExpr
    at xpath.c line 10616
  • #11 xmlXPathCompMultiplicativeExpr
    at xpath.c line 10681
  • #12 xmlXPathCompAdditiveExpr
    at xpath.c line 10722
  • #13 xmlXPathCompRelationalExpr
    at xpath.c line 10760
  • #14 xmlXPathCompEqualityExpr
    at xpath.c line 10802
  • #15 xmlXPathCompAndExpr
    at xpath.c line 10833
  • #16 xmlXPathCompileExpr
    at xpath.c line 10859
  • #17 xmlXPathCtxtCompile__internal_alias
  • #18 xsltXPathCompile
    from /usr/lib/libxslt.so.1
  • #19 xsltStylePreCompute
    from /usr/lib/libxslt.so.1
  • #20 xsltParseStylesheetOutput
    from /usr/lib/libxslt.so.1
  • #21 xsltParseStylesheetProcess
    from /usr/lib/libxslt.so.1
  • #22 xsltParseStylesheetImportedDoc
    from /usr/lib/libxslt.so.1
  • #23 xsltParseStylesheetDoc
    from /usr/lib/libxslt.so.1
  • #24 ??
  • #25 ??
  • #26 __libc_start_main
    from /lib/tls/libc.so.6
  • #27 ??


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?
Comment 1 Daniel Veillard 2009-08-10 15:51:18 UTC
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