Skip Menu |

This queue is for tickets about the List-MoreUtils CPAN distribution.

Report information
The Basics
Id: 15689
Status: resolved
Priority: 0/
Queue: List-MoreUtils

People
Owner: Nobody in particular
Requestors: tlowery [...] cc3.com
Cc:
AdminCc:

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



Subject: Receiving Attempt to free unreferenced scalar
I'm receiving the following message: Attempt to free unreferenced scalar at none_memory_leak.pl line 45. with the 0.13 use strict; use warnings; use List::MoreUtils qw{all any none}; my @checkme = qw{HI FL AK}; my @states = qw{AZ CA NV MI DE PA}; my $misses = 0; while ( 1 == 1 ) { foreach my $to_check (@checkme) { # if (all { $to_check eq $_ } @states) { # $misses++; # } # if (any { $to_check eq $_ } @states) { # $misses++; # } if (none { $to_check eq $_ } @states) { $misses++; } } } exit; perl -VSummary of my perl5 (revision 5.0 version 6 subversion 1) configuration: Platform: osname=linux, osvers=2.4.18-4smp, archname=i686-linux uname='linux rip 2.4.18-4smp #1 smp thu may 2 18:32:34 edt 2002 i686 unknown ' config_args='-Dprefix=/u01/app/perl' hint=previous, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef Compiler: cc='cc', ccflags ='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O2', cppflags='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' ccversion='', gccversion='2.96 20000731 (Red Hat Linux 7.3 2.96-112)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=4, usemymalloc=n, prototype=define Linker and Libraries: ld='cc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-lnsl -lndbm -lgdbm -ldl -lm -lc -lcrypt -lutil perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil libc=/lib/libc-2.2.5.so, so=so, useshrplib=false, libperl=libperl.a Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic' cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib -L/u01/app/perl/lib' Characteristics of this binary (from libperl): Compile-time options: USE_LARGE_FILES Built under linux Compiled at Aug 7 2002 18:40:37 %ENV: PERL5LIB="/lf/21st/devel/lib:/lf/utils/devel/lib" @INC: /lf/21st/devel/lib /lf/utils/devel/lib/i686-linux /lf/utils/devel/lib /u01/app/perl/lib/perl5/5.6.1/i686-linux /u01/app/perl/lib/perl5/5.6.1 /u01/app/perl/lib/perl5/site_perl/5.6.1/i686-linux /u01/app/perl/rip/lib/perl5/site_perl/5.6.1 /u01/app/perl/rip/lib/perl5/site_perl .
Date: Fri, 11 Nov 2005 08:22:44 +0100
From: Tassilo von Parseval <tassilo.von.parseval [...] rwth-aachen.de>
Subject: Re: [cpan #15689] Receiving Attempt to free unreferenced scalar
To: via RT <bug-List-MoreUtils [...] rt.cpan.org>
RT-Send-Cc:
On Thu, Nov 10, 2005 at 05:44:56PM -0500 via RT wrote: Show quoted text
> > This message about List-MoreUtils was sent to you by TLOWERY <TLOWERY@cpan.org> via rt.cpan.org > > Full context and any attached attachments can be found at: > <URL: https://rt.cpan.org/Ticket/Display.html?id=15689 > > > > I'm receiving the following message: > Attempt to free unreferenced scalar at none_memory_leak.pl line 45. > with the 0.13
Blast. Fixing this is infinitely more complicated than I envisioned it to be under the premise that the module is supposed to work on all versions starting with 5.005_03 up to the 5.9.x branch. But a fix is underway and will be in 0.15 (0.14 that I had released in the meantime shows the same behaviour as 0.13, by the way). Cheers, Tassilo -- use bigint; $n=71423350343770280161397026330337371139054411854220053437565440; $m=-8,;;$_=$n&(0xff)<<$m,,$_>>=$m,,print+chr,,while(($m+=8)<=200);
[TLOWERY - Thu Nov 10 17:44:56 2005]: Show quoted text
> > I'm receiving the following message: > Attempt to free unreferenced scalar at none_memory_leak.pl line 45. > with the 0.13
0.15 hopefully fixes this problem. I also tried to make sure that the previous memory leak didn't creep up again. Please test extensively. The whole XS was rewritten to make use of a new backwards-compatible API introduced in the development branch of perl a few weeks ago. I don't yet fully trust it. Cheers, Tassilo