develooper Front page | perl.perl5.porters | Postings from January 2017

Re: [perl #130635] [PATCH] Stack overflow in Storable retrieve_hook

Thread Previous | Thread Next
From:
John Lightsey
Date:
January 25, 2017 15:44
Subject:
Re: [perl #130635] [PATCH] Stack overflow in Storable retrieve_hook
Message ID:
1485359026.3334.2.camel@nixnuts.net
On Wed, 2017-01-25 at 07:21 -0800, James E Keenan via RT wrote:
> On Wed, 25 Jan 2017 04:04:15 GMT, jkeenan wrote:
> > This revision failed on FreeBSD-11.  See:  http://perl5.test-
> > smoke.org/report/53470
> > 
> > When I ran the test file individually, it hung at 'ok 24', then
> > printed these error messages:
> > 
> > #####
> > swap_pager: out of swap space
> > swap_pager_getswapspace(16): failed
> > swap_pager_getswapspace(16): failed
> > swap_pager_getswapspace(16): failed
> > #####
> > 
> > kernel: pid 18627 (perl), uid 1001, was killed: out of swap space
> > 
> > So something is clearly amiss with this patch.
> > 
> > Thank you very much.
> 
> Similar results on FreeBSD-10.3:
> http://perl5.test-smoke.org/report/53481

Makes sense.. When the bug is fixed, it ends up allocating an insanely large
amount of memory. On Linux, malloc doesn't even try to allocate the memory. It
sounds like BSD does try to allocate it.

Maybe it's possible to limit the maximum allowed classname length to what Perl
actually supports. I'll try and adjust the patch to do this.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About