Skip Menu |
 

This queue is for tickets about the Devel-Size CPAN distribution.

Report information
The Basics
Id: 99573
Status: resolved
Priority: 0/
Queue: Devel-Size

People
Owner: Nobody in particular
Requestors: richard.jelinek [...] gmail.com
Cc:
AdminCc:

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



MIME-Version: 1.0
X-Spam-Status: No, score=-2.699 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
X-Spam-Flag: NO
content-type: text/plain; charset="utf-8"
Message-ID: <CACwjj7_msAq3VB5-35GQcvMhQ0Yx8s55-utXkovL3i5uP5xfOw [...] mail.gmail.com>
X-Received: by 10.107.8.152 with SMTP id h24mr28004ioi.84.1413648826721; Sat, 18 Oct 2014 09:13:46 -0700 (PDT)
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -2.699
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 10ADC24062F for <cpan-bug+Devel-Size [...] hipster.bestpractical.com>; Sat, 18 Oct 2014 12:13:55 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ixI0NVhGKWHb for <cpan-bug+Devel-Size [...] hipster.bestpractical.com>; Sat, 18 Oct 2014 12:13:54 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 0E068240024 for <bug-Devel-Size [...] rt.cpan.org>; Sat, 18 Oct 2014 12:13:53 -0400 (EDT)
Received: (qmail 15906 invoked by alias); 18 Oct 2014 16:13:53 -0000
Received: from mail-ie0-f175.google.com (HELO mail-ie0-f175.google.com) (209.85.223.175) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Sat, 18 Oct 2014 09:13:51 -0700
Received: by mail-ie0-f175.google.com with SMTP id x19so2492336ier.34 for <bug-Devel-Size [...] rt.cpan.org>; Sat, 18 Oct 2014 09:13:46 -0700 (PDT)
Received: by 10.107.150.76 with HTTP; Sat, 18 Oct 2014 09:13:46 -0700 (PDT)
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
Delivered-To: cpan-bug+Devel-Size [...] hipster.bestpractical.com
Subject: Crash if structure contains anonymous sub
Return-Path: <richard.jelinek [...] gmail.com>
X-RT-Mail-Extension: devel-size
X-Original-To: cpan-bug+Devel-Size [...] hipster.bestpractical.com
X-Spam-Check-BY: la.mx.develooper.com
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=70wzZP06pedGebSmKTZf1Np1MvelwcC8rWP1yX6ldqM=; b=R2HJcWyQnVlr283JMUTIAVvyBMk6JD24ZEYSOpzrCtwJdoXOPawNHhIxIKq4/tgNrA C2OIjHYWHioWZWIDtQqNooeHhhrU6KaSCHHo3RFpTMvMzPJlRNQ5TR5dhNNDDeKcTHpd kzmX2OtskLB/zqLTAE0e6jEtzfAVFAjzNwEVbKIMNUzs1SGU3jRT4xlxFRPItuTiOGy4 CunMYePOPF5GNE+x/xv+JHqp02COL9n6GhSgpKA6r6ta2irnz135K4hCPlGHX6ZNX/co NJP9eTc+NnvUhPankt9Hq7eASMYblDWYeNUUbN1CScHu8U6Wr0vL8t1X+ZGTaOaLmRuc F3CQ==
Date: Sat, 18 Oct 2014 18:13:46 +0200
X-Spam-Level:
To: bug-Devel-Size [...] rt.cpan.org
From: Richard Jelinek <richard.jelinek [...] gmail.com>
X-RT-Original-Encoding: utf-8
X-RT-Interface: Email
Content-Length: 140
Download (untitled) / with headers
text/plain 140b
total_size({ a => sub { }}); works in 5.18.2 (and before), gives a segv in 5.20.0 and 5.20.1 clearly room for improvement here. Richard
MIME-Version: 1.0
In-Reply-To: <CACwjj7_msAq3VB5-35GQcvMhQ0Yx8s55-utXkovL3i5uP5xfOw [...] mail.gmail.com>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <CACwjj7_msAq3VB5-35GQcvMhQ0Yx8s55-utXkovL3i5uP5xfOw [...] mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-12595-1426888572-1001.99573-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 465
Download (untitled) / with headers
text/plain 465b
On Sat Oct 18 12:13:55 2014, richard.jelinek@gmail.com wrote: Show quoted text
> total_size({ a => sub { }}); > > works in 5.18.2 (and before), gives a segv in 5.20.0 and 5.20.1 > > clearly room for improvement here.
Yes, not going SEGV would be an improvement :-) Giving the right answer would be a big improvement. I've just uploaded 0.79_52, and I believe that I've fixed the cause of the SEGV. (I could replicate it on earlier versions, but not on this one) Nicholas Clark


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.