Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64594 - xsltproc segfaulting
Summary: xsltproc segfaulting
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Highest normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 70073 70075 70171 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-09-18 22:53 UTC by Evgeny Stambulchik
Modified: 2004-11-22 09:40 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
script session of emerge failure (typescript,86.45 KB, text/plain)
2004-11-03 22:10 UTC, Joe Womack
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Evgeny Stambulchik 2004-09-18 22:53:45 UTC
[...]
-- Installing ./html/home.png
-- Installing ./html/left.png
-- Installing ./html/right.png
-- Installing ./html/up.png
-- Installing ./html/index.sgml
/bin/install: cannot stat `./html/index.sgml': No such file or directory
make[3]: *** [install-data-local] Error 1
make[3]: Leaving directory `/local/tmp/portage/libgnome-2.6.1.1-r1/work/libgnome-2.6.1.1/doc/reference'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/local/tmp/portage/libgnome-2.6.1.1-r1/work/libgnome-2.6.1.1/doc/reference'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/local/tmp/portage/libgnome-2.6.1.1-r1/work/libgnome-2.6.1.1/doc'
make: *** [install-recursive] Error 1

!!! ERROR: gnome-base/libgnome-2.6.1.1-r1 failed.


Reproducible: Always
Steps to Reproduce:
Comment 1 Joe Womack 2004-11-03 22:10:58 UTC
Created attachment 43261 [details]
script session of emerge failure
Comment 2 Joe Womack 2004-11-03 22:12:29 UTC
I also have this same problem.
I did not change the above info, but here it is:
Hardware = x86
OS = Linux
Version = 2004.2

Attached is the output from the emerge command.
Comment 3 Joe Womack 2004-11-03 23:33:11 UTC
It looks like this is not the first error (for me anyway).  There is a segmentation fault earlier:

*** Building HTML ***
rm -rf ./html
mkdir ./html
cd ./html && gtkdoc-mkhtml libgnome ../libgnome-docs.sgml
head: `-1' option is obsolete; use `-n 1' since this will be removed in the future
/usr/bin/gtkdoc-mkhtml: line 45: 26227 Segmentation fault      /usr/bin/xsltproc --nonet --xinclude --stringparam gtkdoc.bo
okname $module --stringparam gtkdoc.version "1.1" $gtkdocdir/gtk-doc.xsl $document
test "x" = "x" || ( cd . && cp  html )

The segmentation fault is caused by the gtkdoc-mkhtml script above.
The gtkdoc-mkhtml script calls the program /usr/bin/xsltproc (that actual program causing the segmentation fault) which is part of
dev-libs/libxslt-1.1.8.  

I re-emerged libxslt again, and that did not help, so I re-emerged again using:
MAKEOPTS="-j1" CFLAGS="-g" USE="debug" FEATURES="nostrip maketest" emerge libxslt

I ran the faulting command in gdb:
/usr/bin/xsltproc --nonet --xinclude --stringparam gtkdoc.bookname libgnome --stringparam gtkdoc.version 1.1 /usr/share/gtk-doc/data/gtk-doc.xsl ../libgnome-docs.sgml

The backtrace points to libxml2.
I'm re-emerging libxml2 right now, and will let you know the results.
Comment 4 Joe Womack 2004-11-04 00:04:57 UTC
libxml2 tests shows some failures.  I do not know if this is normal or not:
make[3]: Entering directory `/var/tmp/portage/libxml2-2.6.15-r1/work/libxml2-2.6.15/xstc'
Rebuilding script nist-test.py
Rebuilding script ms-test.py
Rebuilding script sun-test.py
Missing the test suite description, trying to fetch it
--23:41:45--  http://www.w3.org/2001/05/xmlschema-test-collection/XSTC-20020116.tar.gz
           => `XSTC-20020116.tar.gz'
Resolving www.w3.org... 18.7.14.127, 128.30.52.24, 128.30.52.25
Connecting to www.w3.org[18.7.14.127]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,848,379 [application/octet-stream]

100%[===============================================================================>] 1,848,379     39.32K/s    ETA 00:00

23:42:31 (39.02 KB/s) - `XSTC-20020116.tar.gz' saved [1848379/1848379]

extracting tests directories...done
## Running NIST Schemas tests
Ran 5430 of 5430 tests: 624 failed 178 unimplemented
## Running Sun Schemas tests
Ran 174 of 174 tests: 70 failed 3 internal 25 unimplemented
## Running Microsoft Schemas tests
Ran 4689 of 4689 tests: 2275 failed 5 internal 1746 unimplemented 2 leaks

Also libxslt had some failures as well:
make[3]: Entering directory `/var/tmp/portage/libxslt-1.1.8/work/libxslt-1.1.8/python'
cd . && /usr/bin/python generator.py
/usr/lib/python2.3/xmllib.py:9: DeprecationWarning: The xmllib module is obsolete.  Use xml.sax instead.
  warnings.warn("The xmllib module is obsolete.  Use xml.sax instead.", DeprecationWarning)
Found 215 functions in libxslt-api.xml
Found 27 functions in libxslt-python-api.xml
Generated 126 wrapper functions, 83 failed, 33 skipped

Missing type converters:

Running the command in gdb again fails:
uru html # gdb /usr/bin/xsltproc
GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) set arg --nonet --xinclude --stringparam gtkdoc.bookname libgnome --stringparam gtkdoc.version 1.1 /usr/share/gtk-doc/data/gtk-doc.xsl ../libgnome-docs.sgml
(gdb) run
Starting program: /usr/bin/xsltproc --nonet --xinclude --stringparam gtkdoc.bookname libgnome --stringparam gtkdoc.version1.1 /usr/share/gtk-doc/data/gtk-doc.xsl ../libgnome-docs.sgml
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 20861)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 20861)]
0x4015e719 in xmlXPathFreeObject__internal_alias (obj=0x2) at xpath.c:3390
3390    xpath.c: No such file or directory.
        in xpath.c
(gdb)
(gdb) bt
#0  0x4015e719 in xmlXPathFreeObject__internal_alias (obj=0x2) at xpath.c:3390
#1  0x400563f0 in xsltApplyOneTemplate (ctxt=0x8cc8e48, node=0x8f97448, list=0x87ff450, templ=0x880d700, params=0xb5576e8)
    at transform.c:1815
#2  0x40059173 in xsltCallTemplate (ctxt=0x8cc8e48, node=0x8f97448, inst=0x87e51e8, comp=0x87e91b8) at transform.c:3079
#3  0x40055b46 in xsltApplyOneTemplate (ctxt=0x8cc8e48, node=0x8f97448, list=0x87e51e8, templ=0x88037a8, params=0x0)
    at transform.c:1574
#4  0x4005569b in xsltProcessOneNode (ctxt=0x8cc8e48, node=0x8f97448, params=0x0) at transform.c:1413
#5  0x40059db0 in xsltApplyTemplates (ctxt=0x8cc8e48, node=0x8f97358, inst=0x85de6c0, comp=0x85ebf80) at transform.c:3370
#6  0x40055b46 in xsltApplyOneTemplate (ctxt=0x8cc8e48, node=0x8f97358, list=0x85ddd88, templ=0x0, params=0x0)
    at transform.c:1574
#7  0x40055ba8 in xsltApplyOneTemplate (ctxt=0x8cc8e48, node=0x8f97358, list=0x85ddaa0, templ=0x85dd158, params=0x0)
    at transform.c:1586
#8  0x40058ea3 in xsltApplyImports (ctxt=0x8cc8e48, node=0x8f97358, inst=0x8be2dc0, comp=0x8c0fff8) at transform.c:3000
#9  0x40055b46 in xsltApplyOneTemplate (ctxt=0x8cc8e48, node=0x8f97358, list=0x8be2dc0, templ=0x0, params=0x0)
    at transform.c:1574
#10 0x4005a2db in xsltChoose (ctxt=0x8cc8e48, node=0x8f97358, inst=0x8be29f8, comp=0x8c0f8e0) at transform.c:3508
#11 0x40055b46 in xsltApplyOneTemplate (ctxt=0x8cc8e48, node=0x8f97358, list=0x8be27a8, templ=0x8bebd30, params=0x0)
    at transform.c:1574
#12 0x4005569b in xsltProcessOneNode (ctxt=0x8cc8e48, node=0x8f97358, params=0x0) at transform.c:1413
#13 0x40059db0 in xsltApplyTemplates (ctxt=0x8cc8e48, node=0x8f999f0, inst=0x872a610, comp=0x8722188) at transform.c:3370
#14 0x40055b46 in xsltApplyOneTemplate (ctxt=0x8cc8e48, node=0x8f999f0, list=0x8729c60, templ=0x0, params=0x0)
    at transform.c:1574
#15 0x40055ba8 in xsltApplyOneTemplate (ctxt=0x8cc8e48, node=0x8f999f0, list=0x8729498, templ=0x872c570, params=0x0)
    at transform.c:1586
#16 0x40058ea3 in xsltApplyImports (ctxt=0x8cc8e48, node=0x8f999f0, inst=0x8bd02d0, comp=0x8bd8cc0) at transform.c:3000
#17 0x40055b46 in xsltApplyOneTemplate (ctxt=0x8cc8e48, node=0x8f999f0, list=0x8bd02d0, templ=0x0, params=0x0)
    at transform.c:1574
#18 0x40042714 in xsltEvalVariable (ctxt=0x8cc8e48, elem=0xb557688, precomp=0x8bd8be0) at variables.c:520
#19 0x400438e2 in xsltBuildVariable (ctxt=0x8cc8e48, comp=0x8bd8be0, tree=0x8bd02d0) at variables.c:1195
#20 0x40043a53 in xsltRegisterVariable (ctxt=0x8cc8e48, comp=0x8bd8be0, tree=0x8bd02d0, param=1) at variables.c:1238
#21 0x400442f1 in xsltParseStylesheetParam (ctxt=0x8cc8e48, cur=0x8bd01c0) at variables.c:1534
#22 0x40055c11 in xsltApplyOneTemplate (ctxt=0x8cc8e48, node=0x8f999f0, list=0x8bd01c0, templ=0x8bcf138, params=0x0)
    at transform.c:1594
#23 0x40059173 in xsltCallTemplate (ctxt=0x8cc8e48, node=0x8f999f0, inst=0x8be24f8, comp=0x8c0f620) at transform.c:3079
#24 0x40055b46 in xsltApplyOneTemplate (ctxt=0x8cc8e48, node=0x8f999f0, list=0x8be24f8, templ=0x0, params=0x0)
    at transform.c:1574
#25 0x4005a419 in xsltChoose (ctxt=0x8cc8e48, node=0x8f999f0, inst=0x8be2050, comp=0x8c0f1c0) at transform.c:3530
#26 0x40055b46 in xsltApplyOneTemplate (ctxt=0x8cc8e48, node=0x8f999f0, list=0x8be2050, templ=0x8bee148, params=0x0)
    at transform.c:1574
#27 0x4005569b in xsltProcessOneNode (ctxt=0x8cc8e48, node=0x8f999f0, params=0x0) at transform.c:1413
#28 0x40059db0 in xsltApplyTemplates (ctxt=0x8cc8e48, node=0x88f23c8, inst=0x86aa150, comp=0x86a74d0) at transform.c:3370
#29 0x40055b46 in xsltApplyOneTemplate (ctxt=0x8cc8e48, node=0x88f23c8, list=0x86a9138, templ=0x86a90f8, params=0x0)
    at transform.c:1574
#30 0x40058ea3 in xsltApplyImports (ctxt=0x8cc8e48, node=0x88f23c8, inst=0x8bd02d0, comp=0x8bd8cc0) at transform.c:3000
#31 0x40055b46 in xsltApplyOneTemplate (ctxt=0x8cc8e48, node=0x88f23c8, list=0x8bd02d0, templ=0x0, params=0x0)
    at transform.c:1574
#32 0x40042714 in xsltEvalVariable (ctxt=0x8cc8e48, elem=0xb5548d8, precomp=0x8bd8be0) at variables.c:520
---Type <return> to continue, or q <return> to quit---
#33 0x400438e2 in xsltBuildVariable (ctxt=0x8cc8e48, comp=0x8bd8be0, tree=0x8bd02d0) at variables.c:1195
#34 0x40043a53 in xsltRegisterVariable (ctxt=0x8cc8e48, comp=0x8bd8be0, tree=0x8bd02d0, param=1) at variables.c:1238
#35 0x400442f1 in xsltParseStylesheetParam (ctxt=0x8cc8e48, cur=0x8bd01c0) at variables.c:1534
#36 0x40055c11 in xsltApplyOneTemplate (ctxt=0x8cc8e48, node=0x88f23c8, list=0x8bd01c0, templ=0x8bcf138, params=0x0)
    at transform.c:1594
#37 0x40059173 in xsltCallTemplate (ctxt=0x8cc8e48, node=0x88f23c8, inst=0x8be24f8, comp=0x8c0f620) at transform.c:3079
#38 0x40055b46 in xsltApplyOneTemplate (ctxt=0x8cc8e48, node=0x88f23c8, list=0x8be24f8, templ=0x0, params=0x0)
    at transform.c:1574
#39 0x4005a419 in xsltChoose (ctxt=0x8cc8e48, node=0x88f23c8, inst=0x8be2050, comp=0x8c0f1c0) at transform.c:3530
#40 0x40055b46 in xsltApplyOneTemplate (ctxt=0x8cc8e48, node=0x88f23c8, list=0x8be2050, templ=0x8bee148, params=0x0)
    at transform.c:1574
#41 0x40058ea3 in xsltApplyImports (ctxt=0x8cc8e48, node=0x88f23c8, inst=0x80596e8, comp=0x8051470) at transform.c:3000
#42 0x40055b46 in xsltApplyOneTemplate (ctxt=0x8cc8e48, node=0x88f23c8, list=0x80596e8, templ=0x8c31eb8, params=0x0)
    at transform.c:1574
#43 0x4005569b in xsltProcessOneNode (ctxt=0x8cc8e48, node=0x88f23c8, params=0x0) at transform.c:1413
#44 0x40059db0 in xsltApplyTemplates (ctxt=0x8cc8e48, node=0x88f23c8, inst=0x8be1dd0, comp=0x8c0ef28) at transform.c:3370
#45 0x40055b46 in xsltApplyOneTemplate (ctxt=0x8cc8e48, node=0x88f23c8, list=0x8be1dd0, templ=0x8bee580, params=0x0)
    at transform.c:1574
#46 0x4005569b in xsltProcessOneNode (ctxt=0x8cc8e48, node=0x88f23c8, params=0x0) at transform.c:1413
#47 0x40054f8a in xsltDefaultProcessOneNode (ctxt=0x8cc8e48, node=0x80e1388, params=0x0) at transform.c:1268
#48 0x4005552f in xsltProcessOneNode (ctxt=0x8cc8e48, node=0x80e1388, params=0x0) at transform.c:1389
#49 0x40059db0 in xsltApplyTemplates (ctxt=0x8cc8e48, node=0x80e1388, inst=0x8be14d8, comp=0x8c0e368) at transform.c:3370
#50 0x40055b46 in xsltApplyOneTemplate (ctxt=0x8cc8e48, node=0x80e1388, list=0x8be14d8, templ=0x0, params=0x0)
    at transform.c:1574
#51 0x4005a717 in xsltIf (ctxt=0x8cc8e48, node=0x80e1388, inst=0x8be13e0, comp=0x8c0e058) at transform.c:3615
#52 0x40055b46 in xsltApplyOneTemplate (ctxt=0x8cc8e48, node=0x80e1388, list=0x8be1158, templ=0x0, params=0x0)
    at transform.c:1574
#53 0x4005a419 in xsltChoose (ctxt=0x8cc8e48, node=0x80e1388, inst=0x8bdc2d0, comp=0x8c083d8) at transform.c:3530
#54 0x40055b46 in xsltApplyOneTemplate (ctxt=0x8cc8e48, node=0x80e1388, list=0x8bdc2d0, templ=0x8beec88, params=0x0)
    at transform.c:1574
#55 0x4005569b in xsltProcessOneNode (ctxt=0x8cc8e48, node=0x80e1388, params=0x0) at transform.c:1413
#56 0x4005b733 in xsltApplyStylesheetInternal (style=0x8057d68, doc=0x80e1388, params=0x804c2c0, output=0x0, profile=0x0,
    userCtxt=0x8cc8e48) at transform.c:4090
#57 0x4005bc54 in xsltApplyStylesheetUser (style=0x8057d68, doc=0x80e1388, params=0x804c2c0, output=0x0, profile=0x0,
    userCtxt=0x8cc8e48) at transform.c:4288
#58 0x080499d1 in xsltProcess (doc=0x80e1388, cur=0x8057d68, filename=0xbffff5ec "../libgnome-docs.sgml")
    at xsltproc.c:422
#59 0x0804b100 in main (argc=11, argv=0xbffff3e4) at xsltproc.c:880


I'm pretty much at the end of my skill level to try and resolve this, but I would be willing to try some things.
Comment 5 Mike Gardiner (RETIRED) gentoo-dev 2004-11-04 00:32:15 UTC
Is it your catalog files? Do you have the newest versions of docbook-xml-dtd's (all slots) and docbook-sgml-dtd's ?
Comment 6 Joe Womack 2004-11-04 20:14:39 UTC
If I understand your question correctly, it looks like I'm down one:
uru root # qpkg -nc -I | grep docbook
app-text/build-docbook-catalog
app-text/docbook-dsssl-stylesheets
app-text/docbook-sgml
app-text/docbook-sgml-dtd
app-text/docbook-sgml-utils
app-text/docbook-xml-dtd
app-text/docbook-xml-simple-dtd
app-text/docbook-xsl-stylesheets
uru root # qpkg -nc -I | grep docbook
uru root # emerge --pretend app-text/build-docbook-catalog pp-text/docbook-dsssl-stylesheets
uru root # emerge --pretend app-text/build-docbook-catalog app-text/docbook-dsssl-stylesheets app-text/docbook-sgml app-text/docbook-sgml-dtd app-text/docbook-sgml-utils app-text/docbook-xml-dtd app-text/docbook-xml-simple-dtd app-text/docbook-xsl-stylesheets

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] app-text/build-docbook-catalog-1.2
[ebuild   R   ] app-text/docbook-dsssl-stylesheets-1.77-r2
[ebuild   R   ] app-text/docbook-sgml-1.0
[ebuild  NS   ] app-text/docbook-sgml-dtd-4.2-r1
[ebuild   R   ] app-text/docbook-sgml-utils-0.6.12
[ebuild   R   ] app-text/docbook-xml-dtd-4.3
[ebuild   R   ] app-text/docbook-xml-simple-dtd-4.1.2.4
[ebuild   R   ] app-text/docbook-xsl-stylesheets-1.65.1
Comment 7 Joe Womack 2004-11-04 21:32:17 UTC
I still get the same thing.  I emerged app-text/docbook-sgml-dtd-4.2-r1 and then ran the emerge for libgnome again.  It failed in the same place.  I re-emerged libxml2 and libxslt just in case, but that did not help either.

*** Building HTML ***
rm -rf ./html
mkdir ./html
cd ./html && gtkdoc-mkhtml libgnome ../libgnome-docs.sgml
head: `-1' option is obsolete; use `-n 1' since this will be removed in the future
/usr/bin/gtkdoc-mkhtml: line 45:  2706 Segmentation fault      /usr/bin/xsltproc --nonet --xinclude --stringparam gtkdoc.bookname $module --stringparam gtkdoc.version "1.1" $gtkdocdir/gtk-doc.xsl $document
test "x" = "x" || ( cd . && cp  html )
-- Fixing Crossreferences
Comment 8 Mike Gardiner (RETIRED) gentoo-dev 2004-11-06 08:08:04 UTC
*** Bug 70075 has been marked as a duplicate of this bug. ***
Comment 9 Mike Gardiner (RETIRED) gentoo-dev 2004-11-06 08:08:47 UTC
*** Bug 70171 has been marked as a duplicate of this bug. ***
Comment 10 Mike Gardiner (RETIRED) gentoo-dev 2004-11-06 08:09:47 UTC
Can everyone please try the newest libxslt (1.1.9-r1) thanks.
Comment 11 Mike Gardiner (RETIRED) gentoo-dev 2004-11-06 08:12:21 UTC
*** Bug 70073 has been marked as a duplicate of this bug. ***
Comment 12 Mike Gardiner (RETIRED) gentoo-dev 2004-11-06 08:13:38 UTC
Not just amd64 bug, updated title.
Comment 13 Mike Gardiner (RETIRED) gentoo-dev 2004-11-06 08:44:43 UTC
Verified problem, is fixed with an update to 1.1.9-r1.
Comment 14 Toon Verstraelen 2004-11-06 11:46:57 UTC
I had the same problem with two other ebuilds (solfege-2.0.5 and gtkglext-1.0.5). After upgrading libxslt, everything worked fine. Thanks!
Comment 15 Andre Schieleit 2004-11-07 09:57:16 UTC
I updated libxslt, remerged gconf and now could emerge gnome-vfs.
This solved my problem.
Thanks for your help.
Comment 16 Timothy Miller 2004-11-07 15:21:36 UTC
All fixed for me too.  Thanks.
Comment 17 Joe Womack 2004-11-07 21:33:19 UTC
Yes, the upgrade fixed the problem.

Thanks!
Comment 18 Wayne 2004-11-17 11:42:23 UTC
Hi, I know this sounds thick but how do I download libxslt (1.1.9-r1). The latest I can get is 1.1.8 :( I have just done a sync.

any pointers,links?
Comment 19 Mike Gardiner (RETIRED) gentoo-dev 2004-11-22 09:40:42 UTC
1.1.9-r1 fixes.