Bug 203250

Summary: textproc/libxslt: xsltproc segfaults on git documentation
Product: Ports & Packages Reporter: Lacey Powers <lacey.leanne>
Component: Individual Port(s)Assignee: freebsd-gnome (Nobody) <gnome>
Status: Closed Overcome By Events    
Severity: Affects Only Me    
Priority: ---    
Version: Latest   
Hardware: amd64   
OS: Any   
Attachments:
Description Flags
xsl files causing the core xsltproc core dump none

Description Lacey Powers 2015-09-21 19:51:55 UTC

    
Comment 1 Lacey Powers 2015-09-21 20:00:12 UTC
When building from poudriere, xmlto fails to build the git documentation. This is caused by an underlying segmentation fault in xsltproc.

Rebuilding libxslt-1.1.28_7 doesn't seem to help fix this. 

xmlto -m ../../Documentation/manpage-normal.xsl man git-subtree.xml
/usr/local/bin/xmlto: line 585: 35665 Segmentation fault      (core dumped) "/usr/local/bin/xsltproc" --nonet --xinclude --param passivetex.extensions '1' -o "/tmp/xmlto.Pa861F/git-subtree.proc" "/tmp/xmlto-xsl.pBst4O" "/usr/ports/devel/git/work/git-2.5.3/contrib/subtree/git-subtree.xml"

/usr/local/bin/xsltproc --nonet --xinclude --param passivetex.extensions 1 -o /tmp/xmlto.ePqpYB/git-subtree.proc /tmp/xmlto-xsl.5ykwCy /usr/ports/devel/git/work/git-2.5.3/contrib/subtree/git-subtree.xml

xsl files are attached.
Comment 2 Lacey Powers 2015-09-21 20:00:44 UTC
Created attachment 161252 [details]
xsl files causing the core xsltproc core dump
Comment 3 Lacey Powers 2015-09-21 20:03:30 UTC
Link to core dump from 10.2-RELEASE-p3

http://kassandry.net/drop/xsltproc.core.0
Comment 4 Matthias Andree freebsd_committer freebsd_triage 2015-09-26 10:11:13 UTC
reassign to proper port and maintainer
Comment 5 Lacey Powers 2015-10-01 18:45:22 UTC
The errors reported for this bug are similar to the bug reported here:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195044
Comment 6 Lacey Powers 2016-10-17 05:46:31 UTC
After spending a few months on and off analyzing this core dump and the program, this comes about because of the recommended settings for DTrace.

https://wiki.freebsd.org/DTrace/userland

CFLAGS+=-fno-omit-frame-pointer

This library uses the frame pointer for its own work. Omitting this flag for the build of this specific port gets rid of the bug.