Re: FAIL HTML-Parser-XS-2.99_03 sun4-solaris 2.7
Paul Schinder (schinder@pobox.com)
Fri, 5 Nov 1999 17:51:39 -0500
At 9:14 PM +0100 11/5/99, Gisle Aas wrote:
>Something is fishy here. Perhaps a buffer overrun or something
>similar. It is looping somewhere inside html_parse_start(), but
>if I try to add printf() statements like this one:
>
>Index: Parser.xs
>===================================================================
>RCS file: /home/cvs/aas/perl/mods/html-parser/c/Parser.xs,v
>retrieving revision 1.22
>diff -u -p -u -r1.22 Parser.xs
>--- Parser.xs 1999/11/05 20:01:46 1.22
>+++ Parser.xs 1999/11/05 20:03:58
>@@ -561,6 +561,7 @@ html_parse_start(PSTATE* p_state, char *
> while (isALPHA(*s)) {
> /* attribute */
> char *attr_beg = s;
>+printf("howdy [%s]\n", s);
> s++;
> while (s < end && isHALNUM(*s))
> s++;
>
>then it suddenly works as it should. I can't reproduce any problems
>on my Linux box. Perhaps time to find someone with purify or similar
>tools? I'll try to read my own code carefully through too.
>
>Does this patch cure the hang for you?
Yes, it does. Weird. All tests pass.
>
>
>Regards,
>Gisle
--
Paul Schinder
schinder@pobox.com