Bug#750593: xsltproc: bus error on some architectures

2014-10-06 Thread Nick Wellnhofer
On Oct 6, 2014, at 06:21 , Jelmer Vernooij jel...@samba.org wrote:

 Nick, which bug in the GNOME bug tracker are you referring to?

https://bugzilla.gnome.org/show_bug.cgi?id=736077

 Even if this is a bug in docbook-xsl, it would still be good if
 xsltproc printed an error rather than crashing - though perhaps that
 wouldn't need to be priority serious.

It’s not that easy. Actually, it’s not really a bug in libxslt or docbook-xsl 
but a memory issue (stack overflow). libxslt doesn’t optimize tail calls, so 
recursive templates should be used with great care because after a couple of 
hundred recursions, stack space runs out.

If you set the --maxdepth option of xsltproc to a value that’s low enough, 
you’ll get an error message instead of a crash, but finding a suitable value 
depends on stack size and the actual stylesheet.

Nick


--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#750593: xsltproc: bus error on some architectures

2014-10-04 Thread Nick Wellnhofer
As noted in the GNOME bug tracker, this looks very much like a stack overflow 
from a recursive XSLT template. Your options are:

- Increase stack size.
- Isolate the recursive template that causes the error and ask the docbook-xsl
maintainers whether they can replace it with a non-recursive version.

I’d change the package to docbook-xsl.

HTH,
Nick


--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#566587: FTBFS: tests fail

2010-04-02 Thread Nick Wellnhofer

I can't test this but to me it looks like the correct fix is:

-   my $low4bytes = ( ( $self-get_byte( $offset )  1  )  
0x30 )  30;
+   my $low4bytes = ( ( $self-get_byte( $offset )  1  )  
0x03 )  30;


Nick



--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org