W3C home > Mailing lists > Public > www-validator@w3.org > May 2002

checklink goes into internal infinite loop when faced with redirection loop

From: Ganesh Sittampalam <ganesh@earth.li>
Date: Sat, 11 May 2002 17:06:29 -0400 (EDT)
To: www-validator@w3.org
Message-ID: <Pine.LNX.4.44.0205112200020.28981-100000@urchin.earth.li>

Sorry if this is a known issue, I could find it from a quick search 
through the archives.

I accidentally created a redirect from a page to itself - page A
redirected to page B redirected to page B etc. The checklink script
read the redirections fine, but when it came to printing out
the report it hung. I had to run the script under the perl debugger to 
discover what was going on.

The problem is in &get_redirects - it seems to declare a %seen hash which
would be the obvious thing to use to check for loops, but it doesn't use
it. I'd be happy to supply a patch if anyone wants.


Received on Friday, 17 May 2002 01:57:08 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:33 UTC