ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl5-porters
perl5-porters
Re: [ID 20000928.004] mysterious extra refcount in debugger
by Andrew Pimlott other posts by this author
Sep 29 2000 9:30PM messages near this date
[ID 20000928.004] mysterious extra refcount in debugger | SuSE's gcc-2.95.2 and //depot/perl
In case a slightly more compact test case will help:

    package Foo;

    sub new {
        my $self = {};
        &{ sub { $self } };  # This is the culprit; no idea why
        return bless $self =>  'Foo';
    }
    sub DESTROY { warn "destroying\n"; }

    package main;

    { my $foo = new Foo; }
    warn "one down\n";

In case you don't have the last message, compare output in and out
of the debugger to see the bug in 5.005_03.

Andrew
Thread:
Andrew Pimlott
Andrew Pimlott

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved