Re: [xslt] Segmentation fault with an infinite loop



John Fleck said:
> On Mon, 2004-07-05 at 08:13, Mike Hommey wrote:
>> Hi
>>
>> I triggered a segmentation fault with an infinite loop.
>> Just use attached files with the following command line:
>> $ xsltproc html.xsl menu.xml
>>
>> Mike
>>
>> ______________________________________________________________________
> I can't duplicate this with the most recent version (well, it was
> the
> version that was most recent when you sent the email, anyway - tough
> to
> keep up with Daniel :-)
>
> [jfleck localhost hommey]$ xsltproc --version
> Using libxml 20610, libxslt 10107 and libexslt 805
> xsltproc was compiled against libxml 20610, libxslt 10107 and
> libexslt
> 805
> libxslt 10107 was compiled against libxml 20610
> libexslt 805 was compiled against libxml 20610
>
> Can you provide details about your environment?
>
> Cheers,
> John

Assuming your attached file toto.xml really should have been
menu.xml, with the "Very Latest" software under Linux (compiled with
debug features) I get:

bill billsuper work $ xsltproc --version
Using libxml 20611, libxslt 10108 and libexslt 806
xsltproc was compiled against libxml 20611, libxslt 10108 and
libexslt 806
libxslt 10108 was compiled against libxml 20611
libexslt 806 was compiled against libxml 20611

bill billsuper work $ xsltproc html.xsl menu.xml
runtime error: file html.xsl line 7 element variable
xsltApplyOneTemplate: loop found ???
try increasing xsltMaxDepth (--maxdepth)
Templates:
#0 name menu
#1 name menu
#2 name menu
<snip>
#13 name menu
#14 name menu
Variables:
#0
var test   Object is a Node Set :
Set contains 1 nodes:
  1     /

#1
var test   Object is a Node Set :
Set contains 1 nodes:
  1     /

<snip>
#14
var test   Object is a Node Set :
Set contains 1 nodes:
  1     /

no result for menu.xml
bill billsuper work $

Running under valgrind shows there are no illegal mem accesses or
leaks.

Regards,
Bill



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]