develooper Front page | perl.perl5.porters | Postings from December 2010

[perl #81230] With a -T switch: untie attempted while 1 inner references still exist

Thread Next
From:
Mark Martinec
Date:
December 24, 2010 01:55
Subject:
[perl #81230] With a -T switch: untie attempted while 1 inner references still exist
Message ID:
rt-3.6.HEAD-5425-1293157434-918.81230-75-0@perl.org
# New Ticket Created by  Mark Martinec 
# Please include the string:  [perl #81230]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=81230 >



This is a bug report for perl from Mark.Martinec@ijs.si,
generated with the help of perlbug 1.39 running under perl 5.13.8.


-----------------------------------------------------------------
[Please describe your issue here]

Switching from perl 5.12.2 to 5.13.8 I noticed SpamAssassin's
self-test producing warnings. A test case distills down to:

$ perl -Twe 'use DB_File; my %db;
  tie(%db,"DB_File","0.dat") or die $!;
  $db{"k"}="x"; untie %db if $db{"k"}'

produces:

  untie attempted while 1 inner references still exist at -e line 1.

Leaving out the -T switch avoids the problem!

I'm not sure whether this is an issue with a module DB_File
or with core tie handling. I don't see an error in usage.
Everything else seems to be running fine.

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=low
---
Site configuration information for perl 5.13.8:

Configured by mark at Thu Dec 23 19:15:09 CET 2010.

Summary of my perl5 (revision 5 version 13 subversion 8) configuration:
   
  Platform:
    osname=freebsd, osvers=7.2-release-p2, archname=amd64-freebsd
    uname='freebsd dorothy.ijs.si 7.2-release-p2 freebsd 7.2-release-p2 #0: wed jul 15 15:45:26 cest 2009 lesi@dorothy.ijs.si:usrobjusrsrcsysdorothy amd64 '
    config_args=''
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include',
    optimize='-O',
    cppflags='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.2.1 20070719  [FreeBSD]', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='cc', ldflags ='-Wl,-E  -fstack-protector -L/usr/local/lib'
    libpth=/usr/lib /usr/local/lib
    libs=-lgdbm -lm -lcrypt -lutil -lc
    perllibs=-lm -lcrypt -lutil -lc
    libc=, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-DPIC -fPIC', lddlflags='-shared  -L/usr/local/lib -fstack-protector'

Locally applied patches:
    

---
@INC for perl 5.13.8:
    /usr/local/lib/perl5/site_perl/5.13.8/amd64-freebsd
    /usr/local/lib/perl5/site_perl/5.13.8
    /usr/local/lib/perl5/5.13.8/amd64-freebsd
    /usr/local/lib/perl5/5.13.8
    /usr/local/lib/perl5/site_perl
    .

---
Environment for perl 5.13.8:
    HOME=/root
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
    PERL_BADLANG (unset)
    SHELL=/usr/local/bin/bash


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About