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

[perl #74280] Warnings in Hash::Util::lock_hashref_recurse

From:
srezic @ cpan . org
Date:
April 11, 2010 08:07
Subject:
[perl #74280] Warnings in Hash::Util::lock_hashref_recurse
Message ID:
rt-3.6.HEAD-6227-1270982168-1931.74280-75-0@perl.org
# New Ticket Created by  srezic@cpan.org 
# Please include the string:  [perl #74280]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=74280 >


This is a bug report for perl from srezic@cpan.org,
generated with the help of perlbug 1.39 running under perl 5.12.0.


-----------------------------------------------------------------
Using lock_hash_recurse or lock_hashref_recurse on a hash with undef values
throws warnings:

$ /usr/perl-5.12.0-RC0/bin/perl -MHash::Util -e '$x={a=>undef}; Hash::Util::lock_hashref_recurse($x)'
Use of uninitialized value in string eq at /usr/perl-5.12.0-RC0/lib/5.12.0/i386-freebsd/Hash/Util.pm line 323.

(Same with perl 5.10.1 or 5.12.0 RC5)

Regards,
    Slaven

-----------------------------------------------------------------
---
Flags:
    category=library
    severity=low
    module=Hash::Util
---
Site configuration information for perl 5.12.0:

Configured by eserte at Tue Mar 23 19:52:31 CET 2010.

Summary of my perl5 (revision 5 version 12 subversion 0) configuration:
   
  Platform:
    osname=freebsd, osvers=8.0-release, archname=i386-freebsd
    uname='freebsd biokovo.herceg.de 8.0-release freebsd 8.0-release #0: sat nov 21 15:48:17 utc 2009 root@almeida.cse.buffalo.edu:usrobjusrsrcsysgeneric i386 '
    config_args='-Dprefix=/usr/perl-5.12.0-RC0 -Dusemymalloc=n -D cc=ccache cc -Dgccansipedantic -Duse64bit -de -D hintfile=myfreebsd'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=undef, use64bitall=undef, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='ccache cc', ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include',
    optimize='-O2 -mtune=athlon64 -pipe',
    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=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='ccache 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:
    RC0

---
@INC for perl 5.12.0:
    /usr/perl-5.12.0-RC0/lib/site_perl/5.12.0/i386-freebsd
    /usr/perl-5.12.0-RC0/lib/site_perl/5.12.0
    /usr/perl-5.12.0-RC0/lib/5.12.0/i386-freebsd
    /usr/perl-5.12.0-RC0/lib/5.12.0
    .

---
Environment for perl 5.12.0:
    HOME=/home/e/eserte
    LANG (unset)
    LANGUAGE (unset)
    LC_ALL=de_DE.ISO8859-1
    LC_CTYPE=de_DE.ISO8859-1
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/usr/local/bin:/usr/bin:/bin:/usr/gnu/bin:/usr/TeX/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/pilot/bin:/home/e/eserte/bin/FreeBSD:/home/e/eserte/bin/sh:/home/e/eserte/bin:/usr/X11R6/bin:/usr/X11/bin:/usr/X386/bin:/usr/games:/home/e/eserte/devel
    PERLDOC=-MPod::Perldoc::ToTextOverstrike
    PERL_BADLANG (unset)
    PERL_HTML_DISPLAY_CLASS=HTML::Display::Mozilla
    SHELL=/bin/tcsh




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