Skip Menu |
 

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

Report information
The Basics
Id: 16105
Status: resolved
Priority: 0/
Queue: Scalar-List-Utils

People
Owner: Nobody in particular
Requestors: user2004 [...] bk.ru
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 1.14
  • 1.16
  • 1.17
Fixed in: (no value)



Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Subject: Memory leak in first()
X-RT-Original-Encoding: iso-8859-1
Content-Length: 1024
Download (untitled) / with headers
text/plain 1024b
Distribution name and version: Scalar-List-Utils-1.17 Perl version: v5.8.7 OS: FreeBSD 5.4-RELEASE-p4 i386 Distribution name and version: Scalar-List-Utils-1.13 Perl version: v5.8.4 OS: Linux Knoppix 2.6.11 i686 Code: ------------------------------------------------------------ #!/usr/bin/perl use warnings; use strict; use Devel::Peek; use List::Util qw(first); my @list = (1, 2, 3, 4, 5); my $value = 1; print "BEFORE:\n---------------\n"; Dump($value); my $foo = first { $_ > $value } @list; print "AFTER:\n---------------\n"; Dump($value); ------------------------------------------------------------ Output: ------------------------------------------------------------ BEFORE: --------------- SV = IV(0x8076880) at 0x8057bf8 REFCNT = 1 FLAGS = (PADBUSY,PADMY,IOK,pIOK) IV = 1 AFTER: --------------- SV = IV(0x8076880) at 0x8057bf8 REFCNT = 2 FLAGS = (PADBUSY,PADMY,IOK,pIOK) IV = 1 ------------------------------------------------------------ REFCNT changed from 1 to 2. It's a bug, I mean.
Return-Path: <gbarr [...] pobox.com>
X-Original-To: bug-Scalar-List-Utils [...] rt.cpan.org
Delivered-To: cpan-bug+scalar-list-utils [...] diesel.bestpractical.com
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 2F2DE4D80CD for <bug-Scalar-List-Utils [...] rt.cpan.org>; Fri, 25 Nov 2005 12:00:33 -0500 (EST)
Received: (qmail 4687 invoked by alias); 25 Nov 2005 17:00:11 -0000
X-Spam-Check-BY: la.mx.develooper.com
Received-SPF: neutral (x1.develooper.com: 67.19.103.170 is neither permitted nor denied by domain of gbarr [...] pobox.com)
Received: from 170.67-19-103.reverse.theplanet.com (HELO mail.goingon.net) (67.19.103.170) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Fri, 25 Nov 2005 09:00:04 -0800
Received: from [192.168.252.98] (cust207.fchtwr.frvwtx.dfwair.net [63.249.42.207]) by mail.goingon.net (Postfix) with ESMTP id C6B8448347 for <bug-Scalar-List-Utils [...] rt.cpan.org>; Fri, 25 Nov 2005 10:59:58 -0600 (CST)
MIME-Version: 1.0 (Apple Message framework v746.2)
In-Reply-To: <rt-16105-48065.11.2156859833447 [...] cpan.org>
References: <rt-16105-48065.11.2156859833447 [...] cpan.org>
Content-Type: text/plain; charset=US-ASCII; format=flowed
Message-ID: <0B43E87C-6B20-4FD9-B705-986752CD28A1 [...] pobox.com>
Content-Transfer-Encoding: 7bit
From: Graham Barr <gbarr [...] pobox.com>
Subject: Re: [cpan #16105] Memory leak in first()
Date: Fri, 25 Nov 2005 10:59:57 -0600
To: bug-Scalar-List-Utils [...] rt.cpan.org
X-Mailer: Apple Mail (2.746.2)
RT-Send-Cc:
X-RT-Original-Encoding: us-ascii
Content-Length: 70
This is fixed in 1.18 which has just been released to CPAN. Graham.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.