Subject: | Prevent infinite recursion in list_packages |
From: | Alex Vandiver <alexmv [...] bestpractical.com> |
To: | bug-Module-Pluggable [...] rt.cpan.org |
Date: | Wed, 31 Aug 2005 15:58:16 -0400 |
Heya,
Module::Pluggable sometimes goes into infinite recursion, hosing the
CPU and consuming increasing memory until it grinds to a halt. This is
because it is possible for the package stash to contain "::", which
causes list_packages to spiral downhill. A patch is attached.
I'm still not sure exactly what causes the "::" in the package, at
this point -- it happens when there are Emacs lock files in the plugin
directory, but I've been unable to make a simple test case that
reproduces the problem. There may be a Perl bug under this somewhere,
as well. As soon as I have a test case, I'll submit a patch with it.
- Alex
Message body is not shown because sender requested not to inline it.