[xsl] Endless loop in xsltExtensionInstructionResultFinalize

Subject: [xsl] Endless loop in xsltExtensionInstructionResultFinalize
From: Stephan Suerken <stephan.suerken@xxxxxxxx>
Date: Wed, 25 Apr 2007 17:11:06 +0200
Hi,

[ this is FYI, and info to be provided for http://bugzilla.gnome.org/show_bug.cgi?id=378766 ]

running a xsl transformation w/ the attached files finally
ends up in a endless loop in xsltExtensionInstructionResultFinalize:

---
xsltproc -v xsl.xsl xml.xml
(snip)
Lookup variable 'part'
Lookup variable 'part'
xsltChoose: test evaluate to 1
xsltApplySequenceConstructor: extension construct result
(HANG)
---

This applies at least to versions 1.1.19, 1.1.20 and an svn co of
today (Apr 25).

Just skipping the last part of the function xsltExtensionInstructionResultFinalize
(labelled "Enable remaining local tree fragments to be freed by the fragment
garbage collector") is a workaround.

Obviously, the cause it that at some point cur->next contains garbage.

It would also be nice if s.o. could point me to the part(s) in the
stylesheet actually provoking the bug -- I meekly failed minimising
it due to a lack of stylesheet knowledge ;(.

Thanks,

Stephan

P.S.: "Attached" files: xsl, xml:

http://tmp.stephan-suerken.de/libxslt-loop/xsl.xsl
http://tmp.stephan-suerken.de/libxslt-loop/xml.xml

-- 
Stephan Suerken <stephan.suerken@xxxxxxxx>
Phone: +49.721.913744-393

1&1 Internet AG, Karlsruhe

Current Thread