Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object not destroyed when @_ updated #180

p5pRT opened this issue Jul 10, 1999 · 1 comment

Object not destroyed when @_ updated #180

p5pRT opened this issue Jul 10, 1999 · 1 comment


Copy link

p5pRT commented Jul 10, 1999

Migrated from (status was 'resolved')

Searchable as RT985$

Copy link

p5pRT commented Jul 10, 1999


sub DESTROY { print "DESTROY ", shift, "\n" };

sub bb { @​_= bless {} };
sub aa { bb(); };
print "This should follow first DESTROY\n";
print "This should follow second DESTROY\n";

% perl -w leak.destroy/test
DESTROY main=HASH(0xbe864)
This should follow first DESTROY
This should follow second DESTROY
DESTROY main=HASH(0xbe864)

This error occurs with perl5.004_05, perl5.005_03 and perl5.005_57.

Mike Guy

% perl -V
Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration​:
  osname=solaris, osvers=2.6, archname=sun4-solaris
  hint=previous, useposix=true, d_sigaction=define
  usethreads=undef useperlio=undef d_sfio=undef
  cc='gcc', optimize='-O', gccversion=
  cppflags='-I/usr/local/include -I/opt/local/include -DREG_INFTY=22786'
  ccflags ='-I/usr/local/include -I/opt/local/include -DREG_INFTY=22786'
  stdchar='unsigned char', d_stdstdio=define, usevfork=false
  intsize=4, longsize=4, ptrsize=4, doublesize=8
  d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
  alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries​:
  ld='gcc', ldflags =' -L/usr/local/lib -L/opt/local/lib'
  libpth=/usr/local/lib /opt/local/lib /lib /usr/lib /usr/ccs/lib
  libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
  libc=/lib/, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking​:
  dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
  cccdlflags='-fpic', lddlflags='-G -L/usr/local/lib -L/opt/local/lib'

Characteristics of this binary (from libperl)​:
  Built under solaris
  Compiled at Mar 30 1999 14​:22​:18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

1 participant