[xml/sgml-pkgs] Bug#750593: xsltproc: bus error on some architectures

Peter De Wachter pdewacht at gmail.com
Sun Nov 9 11:13:44 UTC 2014


Followup-For: Bug #750593

I spent some time looking at what happens in the specific instance of
the smb.conf.5 document. The docbook-xsl stylesheets do a global
search-and-replace on the generated manpage: this is done recursively
using the string.subst template. Eventually for long enough documents
with sufficient matches it will hit implementation limits, whatever
they are.

The attached patch against docbook-xsl modifies string.subst to use
the EXSLT 'replace' function when it is available (it is in xsltproc).
With this change the crash no longer occurs on i386.  Output is
identical on the smb.conf manpage and generating it is noticeably
faster. I did not test other documents or architectures.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=nl_BE.UTF-8, LC_CTYPE=nl_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages xsltproc depends on:
ii  libc6       2.19-13
ii  libxml2     2.9.2+dfsg1-1
ii  libxslt1.1  1.1.28-2+b2

xsltproc recommends no packages.

xsltproc suggests no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nonrecursive-string-subst.patch
Type: text/x-diff
Size: 1278 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-xml-sgml-pkgs/attachments/20141109/063069c4/attachment.patch>


More information about the debian-xml-sgml-pkgs mailing list