Skip Menu |
 

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

Report information
The Basics
Id: 61468
Status: new
Priority: 0/
Queue: B-Size

People
Owner: Nobody in particular
Requestors: sprout [...] cpan.org
Cc:
AdminCc:

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



From sprout [...] cpan.org Sun Sep 19 20: 19:36 2010
MIME-Version: 1.0 (Apple Message framework v1081)
X-Spam-Status: No, score=-9.831 tagged_above=-99.9 required=10 tests=[AWL=0.767, BAYES_00=-2.599, HS_INDEX_PARAM=0.001, RCVD_IN_DNSWL_HI=-8] autolearn=ham
X-Mailer: Apple Mail (2.1081)
X-Spam-Flag: NO
Message-ID: <117DD1DD-2918-43CD-AFCA-2AACCA41709B [...] cpan.org>
content-type: text/plain; charset="utf-8"
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -9.831
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id EF562240CE6 for <cpan-bug+b-size [...] hipster.bestpractical.com>; Sun, 19 Sep 2010 20:19:35 -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 Lj3wN3VcOGud for <cpan-bug+b-size [...] hipster.bestpractical.com>; Sun, 19 Sep 2010 20:19:33 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 2819A240BFF for <bug-b-size [...] rt.cpan.org>; Sun, 19 Sep 2010 20:19:33 -0400 (EDT)
Received: (qmail 8509 invoked by uid 103); 20 Sep 2010 00:22:36 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 20 Sep 2010 00:22:36 -0000
Received: from director.trueband.net (HELO trueband.net) (216.163.120.8) by 16.mx.develooper.com (qpsmtpd/0.80) with SMTP; Sun, 19 Sep 2010 17:22:34 -0700
Received: (qmail 8933 invoked by uid 1006); 20 Sep 2010 00:22:31 -0000
Received: from sprout [...] cpan.org by rs0 by uid 1003 with qmail-scanner-1.16 (spamassassin: 3.2.5. Clear:SA:0(2.3/100.0):. Processed in 0.970663 secs); 20 Sep 2010 00:22:31 -0000
Received: from unknown (HELO trueband.net) (172.16.0.10) by director.trueband.net with SMTP; 20 Sep 2010 00:22:30 -0000
Received: (qmail 2496 invoked from network); 20 Sep 2010 00:22:29 -0000
Received: from unknown (HELO ?10.10.10.22?) (65.170.242.70) by -v with SMTP; 20 Sep 2010 00:22:29 -0000
Delivered-To: cpan-bug+b-size [...] hipster.bestpractical.com
Subject: Segfault
Return-Path: <sprout [...] cpan.org>
X-RT-Mail-Extension: b-size
X-Original-To: cpan-bug+b-size [...] hipster.bestpractical.com
X-Spam-Check-BY: 16.mx.develooper.com
X-Old-Spam-Status: No, hits=2.3 required=100.0
X-Old-Spam-Level: **
Date: Sun, 19 Sep 2010 17:22:28 -0700
X-Spam-Level:
To: bug-B-Size [...] rt.cpan.org
Content-Transfer-Encoding: quoted-printable
From: Father Chrysostomos <sprout [...] cpan.org>
X-RT-Original-Encoding: us-ascii
Content-Length: 2529
Download (untitled) / with headers
text/plain 2.4k
This was reported as a perl bug (<http://rt.perl.org/rt3/Ticket/Display.html?id=52284>). According to Reini Urban, this is actually a bug in B::Size. This script crashes. sub z{ #must be local my ($ref, $self); #must be local _and_ initialized #here's version from original code #but '= (1..3)' suits as well my(@keys) = keys(%$ref); #these 2 lines must be together $ref = $ref->{$keys[0]}; $self->{rootname} = $keys[0]; } use B::TerseSize; #B::debug(undef, 1); $cv = B::svref_2object(\&{"main::z"}); B::walkoptree_slow($cv->ROOT, "op_size"); __END__ These notes might be helpful: On Mon Mar 31 13:10:53 2008, rurban wrote: Show quoted text
> B::Size failure. Please report there. > > SVOP's are beasts. Esp. with this GV. > See http://www.perlfoundation.org/perl5/index.cgi?optree_guts > > However with my threaded perl aelemfast is no SVOP, > it's a PADOP, so the sv access does not fail. Need to check this with a > non-threaded perl, but I have non. > > But I doubt that is a core failure, I would blame B::Size. > It should check if the op_flag is SPECIAL. Only then there's a SV, > otherwise a PAD at op_targ. > > ... > > $ perl bug52284.pl > walkoptree: 0. UNOP (0x681738) leavesub > walkoptree: 1. LISTOP (0x681180) lineseq > walkoptree: 2. COP (0x680eb8) nextstate > walkoptree: 2. LISTOP (0x675358) list > walkoptree: 3. OP (0x681140) pushmark > walkoptree: 3. OP (0x6810c8) padsv > walkoptree: 3. OP (0x681110) padsv > walkoptree: 2. COP (0x681308) nextstate > walkoptree: 2. BINOP (0x6812e0) aassign > walkoptree: 3. UNOP (0x681298) null > walkoptree: 4. OP (0x6812c0) pushmark > walkoptree: 4. UNOP (0x675328) keys > walkoptree: 5. UNOP (0x6811f8) rv2hv > walkoptree: 6. OP (0x6811d8) padsv > walkoptree: 3. UNOP (0x681250) null > walkoptree: 4. OP (0x681278) pushmark > walkoptree: 4. OP (0x6811a8) padav > walkoptree: 2. COP (0x681480) nextstate > walkoptree: 2. BINOP (0x681458) sassign > walkoptree: 3. BINOP (0x681430) helem > walkoptree: 4. UNOP (0x681410) rv2hv > walkoptree: 5. OP (0x681388) padsv > walkoptree: 4. UNOP (0x6813e8) null > walkoptree: 5. PADOP (0x6813a8) aelemfast > walkoptree: 5. OP (0x6813c8) null > walkoptree: 3. OP (0x681368) padsv > walkoptree: 2. COP (0x681608) nextstate > walkoptree: 2. BINOP (0x6815e0) sassign > walkoptree: 3. UNOP (0x6815b8) null > walkoptree: 4. PADOP (0x681578) aelemfast > walkoptree: 4. OP (0x681598) null > walkoptree: 3. BINOP (0x681550) helem > walkoptree: 4. UNOP (0x681530) rv2hv > walkoptree: 5. OP (0x6814e0) padsv > walkoptree: 4. SVOP (0x681510) const


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.