Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 219383 - gtkdoc-mkhtml segfault within xsltproc
Summary: gtkdoc-mkhtml segfault within xsltproc
Status: RESOLVED DUPLICATE of bug 194089
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-26 21:02 UTC by Marcin Gryszkalis
Modified: 2008-04-27 12:21 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Gryszkalis 2008-04-26 21:02:09 UTC
With USE="doc" during creating docs for gtk related packages I get segmentation fault in xsltproc. Example ebuild - liboil-0.3.14.

message:
/usr/bin/gtkdoc-mkhtml: line 53: 30420 Segmentation fault      /usr/bin/xsltproc --nonet --xinclude --stringparam gtkdoc.bookname $module --stringparam gtkdoc.version "1.10" $gtkdocdir/gtk-doc.xsl $document

stacktrace:
#0  0x40123443 in __xmlRaiseError (schannel=0, channel=0, data=0x0, ctx=0x0, nod=0x8acbf68, domain=24, code=5011, level=XML_ERR_ERROR, file=0x0, line=0, str1=0x0, str2=0x0, str3=0x0, int1=0,
    col=0, msg=0x401f95ee "Unknown node type %d\n") at error.c:515
#1  0x40165191 in xmlDebugErr2 (ctxt=<value optimized out>, error=145538920, msg=0x8acbf68 "�S�\b", extra=0) at debugXML.c:171
#2  0x4016654a in xmlCtxtDumpOneNode (ctxt=0xbff6b9a0, node=0x8acbf68) at debugXML.c:1010
#3  0x40167604 in xmlCtxtDumpNode (ctxt=0xbff6b9a0, node=0x8acbf68) at debugXML.c:1067
#4  0x401676d6 in xmlCtxtDumpNodeList (ctxt=0xbff6b9a0, node=0x8acbf68) at debugXML.c:1088
#5  0x40167626 in xmlCtxtDumpNode (ctxt=0xbff6b9a0, node=0x8acfc20) at debugXML.c:1071
#6  0x401676d6 in xmlCtxtDumpNodeList (ctxt=0xbff6b9a0, node=0x8acbf68) at debugXML.c:1088
#7  0x40167626 in xmlCtxtDumpNode (ctxt=0xbff6b9a0, node=0x8abb158) at debugXML.c:1071
#8  0x401676d6 in xmlCtxtDumpNodeList (ctxt=0xbff6b9a0, node=0x8acbf68) at debugXML.c:1088
#9  0x4016786b in xmlCtxtDumpDocument (ctxt=0xbff6b9a0, doc=0x8abb0f8) at debugXML.c:1222
#10 0x401678ec in xmlDebugCheckDocument__internal_alias (output=0x40381560, doc=0x8abb0f8) at debugXML.c:1580
#11 0x401430ff in xmlFreeDoc__internal_alias (cur=0x8abb0f8) at tree.c:1185
#12 0x400679d3 in xsltFreeStyleDocuments (style=0x80823b8) at documents.c:244
#13 0x40051ddd in xsltFreeStylesheet (style=0x80823b8) at xslt.c:947
#14 0x40051f27 in xsltFreeStylesheet (style=0x8081770) at xslt.c:831
#15 0x40051f27 in xsltFreeStylesheet (style=0x8059890) at xslt.c:831
#16 0x0804a450 in main (argc=11, argv=0xbff6bbd4) at xsltproc.c:867

(gdb) p *doc
$3 = {_private = 0x0, type = XML_DOCUMENT_NODE, name = 0x0, children = 0x8abb158, last = 0x8abb038, parent = 0x0, next = 0x0, prev = 0x0, doc = 0x8abb0f8, compression = -1, standalone = -2,
  intSubset = 0x8abb158, extSubset = 0x0, oldNs = 0x0, version = 0x88b7228 "1.0", encoding = 0x0, ids = 0x0, refs = 0x0,
  URL = 0x8abaf88 "file:///usr/share/sgml/docbook/xsl-stylesheets/html/glossary.xsl", charset = 1, dict = 0x80500e0, psvi = 0x0}

You can manually call it with
/usr/bin/xsltproc --nonet --xinclude --stringparam gtkdoc.bookname liboil --stringparam gtkdoc.version "1.10" /usr/share/gtk-doc/data/gtk-doc.xsl /usr/share/sgml/docbook/xsl-stylesheets/html/glossary.xsl


Reproducible: Always




I re-emeregd related apps, current versions are:
dev-libs/libxml2-2.6.31 
app-text/docbook-xsl-stylesheets-1.73.2 
dev-libs/libxslt-1.1.23
Comment 1 Jan Kundrát (RETIRED) gentoo-dev 2008-04-27 12:21:58 UTC

*** This bug has been marked as a duplicate of bug 194089 ***