Bug in StyleElement class?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug in StyleElement class?

Eliot Kimber
I have a stylesheet that fails with a stack overflow
error when Saxon 8.6B (and 8.4B) tries to compile it.
I've tracked the failure to this line, line 1442 of
StyleElement in the 8.6B source:

            Expression tail =
compileSequenceConstructor(exec, iter, includeParams);

This is in compileSequenceConstructor(), which means
this is a recursive call on the input style element. I
think this line should be passing in "child", not
exec.

I tried to debug this locally but I couldn't figure
out how to set up a working Saxon project in Eclipse
in the time I had.

I couldn't see any obvious problems with the input
style sheet (it validates with Oxygen 6.2 and runs to
completion using the version of Saxon 8B integrated
with Oxygen.

I can provide the style sheet separately if needed
(it's client-specific so I'd rather not post it).

Thanks,

Eliot



Eliot Kimber
Austin, TX


       
               
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
saxon-help mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help
Reply | Threaded
Open this post in threaded view
|

RE: Bug in StyleElement class?

Michael Kay
I think the recursion here should always terminate, because each call reads
an item off the SequenceIterator by calling next(). It's possible, however,
that it runs out of stack space first if there's a long sequence of sibling
instructions. Send me the stylesheet by private email, and I'll see what I
can do.

Michael Kay
 

> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]] On Behalf Of
> Eliot Kimber
> Sent: 14 November 2005 17:32
> To: [hidden email]
> Subject: [saxon] Bug in StyleElement class?
>
> I have a stylesheet that fails with a stack overflow
> error when Saxon 8.6B (and 8.4B) tries to compile it.
> I've tracked the failure to this line, line 1442 of
> StyleElement in the 8.6B source:
>
>             Expression tail =
> compileSequenceConstructor(exec, iter, includeParams);
>
> This is in compileSequenceConstructor(), which means
> this is a recursive call on the input style element. I
> think this line should be passing in "child", not
> exec.
>
> I tried to debug this locally but I couldn't figure
> out how to set up a working Saxon project in Eclipse
> in the time I had.
>
> I couldn't see any obvious problems with the input
> style sheet (it validates with Oxygen 6.2 and runs to
> completion using the version of Saxon 8B integrated
> with Oxygen.
>
> I can provide the style sheet separately if needed
> (it's client-specific so I'd rather not post it).
>
> Thanks,
>
> Eliot
>
>
>
> Eliot Kimber
> Austin, TX
>
>
>
>
> __________________________________
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> http://mail.yahoo.com
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
> Register for a JBoss Training Course.  Free Certification Exam
> for All Training Attendees Through End of 2005. For more info visit:
> http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
> _______________________________________________
> saxon-help mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/saxon-help
>




-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
saxon-help mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help