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

[PATCH perl5.005_62] scalars leaked in op/lex_assign.t and pragma/warnings.t #765

Closed
p5pRT opened this issue Oct 22, 1999 · 1 comment
Closed

Comments

@p5pRT
Copy link

p5pRT commented Oct 22, 1999

Migrated from rt.perl.org#1689 (status was 'resolved')

Searchable as RT1689$

@p5pRT
Copy link
Author

p5pRT commented Oct 22, 1999

From rmb1@cise.npl.co.uk

When compiled with -Doptimize=-g
t/op/lex_assign.t reports `Scalars leaked​: 1'
and t/pragma/warnings.t fails because `Scalars leaked​: 1' appears in `GOT​:'

The following patch fixes the output from the tests
(but does not fix the fact that the scalars leaked :-()

Robin

Index​: perl5.005_62/t/op/lex_assign.t

Inline Patch
diff -u perl5.005_62/t/op/lex_assign.t:1.1.1.1 perl5.005_62/t/op/lex_assign.t:1.2
--- perl5.005_62/t/op/lex_assign.t:1.1.1.1	Tue Oct 19 10:40:41 1999
+++ perl5.005_62/t/op/lex_assign.t	Tue Oct 19 12:08:41 1999
@@ -4,6 +4,7 @@
     chdir 't' if -d 't';
     unshift @INC, '../lib';
 }
+$ENV{PERL_DESTRUCT_LEVEL} = 0 unless $ENV{PERL_DESTRUCT_LEVEL} > 3; 
 
 umask 0;
 $xref = \ "";
Index: perl5.005_62/t/pragma/warn/op
Inline Patch
diff -u perl5.005_62/t/pragma/warn/op:1.1.1.1 perl5.005_62/t/pragma/warn/op:1.2
--- perl5.005_62/t/pragma/warn/op:1.1.1.1	Tue Oct 19 10:40:44 1999
+++ perl5.005_62/t/pragma/warn/op	Tue Oct 19 12:09:27 1999
@@ -558,7 +558,7 @@
 Useless use of a constant in void context at - line 4.
 ########
 # op.c
-$ENV{PERL_DESTRUCT_LEVEL} = 0 unless $ENV{PERL_DESTRUCT_LEVEL} > 3; # known scalar leak
+BEGIN{ $ENV{PERL_DESTRUCT_LEVEL} = 0 unless $ENV{PERL_DESTRUCT_LEVEL} > 3; } # known scalar leak
 use warnings 'unsafe' ;
 my $a ; my @a = () ; my %a = () ; my $b = \@a ; my $c = \%a ;
 @a =~ /abc/ ;
Perl Info


Site configuration information for perl 5.00562:

Configured by rmb1 at Tue Oct 19 12:24:41 BST 1999.

Summary of my perl5 (revision 5.0 version 5 subversion 62) configuration:
  Platform:
    osname=solaris, osvers=2.7, archname=sun4-solaris
    uname='sunos tempest 5.7 generic_106541-04 sun4u sparc sunw,ultra-5_10 '
    config_args='-des -Doptimize=-g'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
    use64bits=undef usemultiplicity=undef
  Compiler:
    cc='cc', optimize='-g', gccversion=2.95.1 19990816 (release)
    cppflags='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include -I/opt/gnu/include'
    ccflags ='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include -I/opt/gnu/include'
    stdchar='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='cc', ldflags =' -L/usr/local/lib -L/opt/gnu/lib'
    libpth=/usr/local/lib /opt/gnu/lib /lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt -lsec
    libc=/lib/libc.so, 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/gnu/lib'

Locally applied patches:
    


@INC for perl 5.00562:
    lib
    /home/rmb1/appl/lib/perl5/site_perl/5.005/sun4-solaris
    /home/rmb1/appl/lib/perl5/site_perl/5.005
    /usr/local/lib/perl5/5.00562/sun4-solaris
    /usr/local/lib/perl5/5.00562
    /usr/local/lib/site_perl/5.00562/sun4-solaris
    /usr/local/lib/site_perl
    .


Environment for perl 5.00562:
    HOME=/home/rmb1
    LANG=C
    LANGUAGE (unset)
    LD_LIBRARY_PATH=/usr/lib
    LOGDIR (unset)
    PATH=/home/rmb1/appl/script:/opt/gnu/script:/opt/gnu/bin:/usr/appl/script:/usr/local/appl/bin:/usr/tempest/bin:/usr/local/bin:/usr/local/Admigration/exec:/usr/local/hotjava/bin:/usr/openwin/bin:/usr/dt/bin:/usr/ccs/bin:/usr/bin
    PERL5LIB=/home/rmb1/appl/lib/perl5/site_perl/5.005
    PERL_BADLANG (unset)
    SHELL=/bin/csh

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

No branches or pull requests

1 participant