Skip Menu |

This queue is for tickets about the Module-Pluggable CPAN distribution.

Report information
The Basics
Id: 14381
Status: resolved
Priority: 0/
Queue: Module-Pluggable

People
Owner: simonw [...] cpan.org
Requestors: alexmv [...] bestpractical.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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.

Date: Thu, 1 Sep 2005 14:36:06 +0100
From: Simon Wistow <simon [...] thegestalt.org>
To: Alex Vandiver via RT <bug-Module-Pluggable [...] rt.cpan.org>
Subject: Re: [cpan #14381] Prevent infinite recursion in list_packages
RT-Send-Cc:
On Wed, Aug 31, 2005 at 03:58:41PM -0400, Alex Vandiver via RT said: Show quoted text
> 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.
Cheers. Applied and released as 2.96