develooper Front page | perl.perl5.porters | Postings from November 2014

[perl #123103] Bleadperl breaks SREZIC/Tk-804.032.tar.gz

Thread Previous
From:
slaven @ rezic . de
Date:
November 2, 2014 18:52
Subject:
[perl #123103] Bleadperl breaks SREZIC/Tk-804.032.tar.gz
Message ID:
rt-4.0.18-18676-1414954308-1854.123103-75-0@perl.org
# New Ticket Created by  slaven@rezic.de 
# Please include the string:  [perl #123103]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=123103 >



This is a bug report for perl from slaven@rezic.de,
generated with the help of perlbug 1.40 running under perl 5.21.5.


-----------------------------------------------------------------
Almost all Tk tests fail. A simple test case is

    $ perl5.21.5 -Mblib -MTk -MTk::ColorEditor -e 'tkinit->ColorEditor()'
    Modification of a read-only value attempted at /home/e/eserte/src/CPAN.local/Tk/blib/lib/Tk/Widget.pm line 1219.
     at /home/e/eserte/src/CPAN.local/Tk/blib/lib/Tk/Widget.pm line 203.

Bisect says:

a623f8939cbcaa58a069807591675c0ebcd4135b is the first bad commit
commit a623f8939cbcaa58a069807591675c0ebcd4135b
Author: Father Chrysostomos <sprout@cpan.org>
Date:   Fri Sep 19 23:12:48 2014 -0700

    Implement the bipolar read-only system
    
    This fixes bugs related to Hash::Util::unlock accidentally unlocking
    internal scalars (e.g., that returned by undef()) and allowing them to
    be modified.
    
    Internal read-only values are now marked by two flags, the regular
    read-only flag, and the new ‘protected’ flag.
    
    Before this SvREADONLY served two purposes:
    
    1) The code would use it to protect things that must not be modi-
       fied, ever (except when the core sees fit to do so).
    2) Hash::Util and everybody else would use it to make this unmodifia-
       ble temporarily when requested by the user.
    
    Internals::SvREADONLY serves the latter purpose and only flips the
    read-only flag, so things that need to stay read-only will remain so,
    because of the ‘other’ read-only flag, that CPAN doesn’t know about.
    (If you are a CPAN author, do not read this.)

Another possible victim: TOBYINK/Acme-Futuristic-Perl-0.001.tar.gz
A sample fail report here:
http://www.cpantesters.org/cpan/report/39d793a4-614c-11e4-ba7c-ee3de0bfc7aa (which
also has a "Modification of a read-only value attempted" error)

Regards,
    Slaven

-----------------------------------------------------------------
---
Flags:
    category=core
    severity=high
---
Site configuration information for perl 5.21.5:

Configured by eserte at Sun Oct 26 13:16:39 CET 2014.

Summary of my perl5 (revision 5 version 21 subversion 5) configuration:
   
  Platform:
    osname=freebsd, osvers=9.2-release, archname=amd64-freebsd
    uname='freebsd cvrsnica.herceg.de 9.2-release freebsd 9.2-release #0 r255898: thu sep 26 22:50:31 utc 2013 root@bake.isc.freebsd.org:usrobjusrsrcsysgeneric amd64 '
    config_args='-D useshrplib=true -Dprefix=/usr/perl5.21.5p -Dusemymalloc=n -D cc=ccache cc -D usedevel=define -Dgccansipedantic -de'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    use64bitint=define, use64bitall=define, 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 -D_FORTIFY_SOURCE=2',
    optimize='-O2 -pipe',
    cppflags='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.2.1 20070831 patched [FreeBSD]', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16, longdblkind=3
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='ccache cc', ldflags ='-pthread -Wl,-E  -fstack-protector -L/usr/local/lib'
    libpth=/usr/lib /usr/local/lib /usr/include/gcc/4.2 /usr/lib
    libs=-lgdbm -lm -lcrypt -lutil -lc
    perllibs=-lm -lcrypt -lutil -lc
    libc=, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='  -Wl,-R/usr/perl5.21.5p/lib/5.21.5/amd64-freebsd/CORE'
    cccdlflags='-DPIC -fPIC', lddlflags='-shared  -L/usr/local/lib -fstack-protector'


---
@INC for perl 5.21.5:
    /usr/perl5.21.5p/lib/site_perl/5.21.5/amd64-freebsd
    /usr/perl5.21.5p/lib/site_perl/5.21.5
    /usr/perl5.21.5p/lib/5.21.5/amd64-freebsd
    /usr/perl5.21.5p/lib/5.21.5
    .

---
Environment for perl 5.21.5:
    HOME=/home/e/eserte
    LANG (unset)
    LANGUAGE (unset)
    LC_ALL=de_DE.UTF-8
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/e/eserte/bin/freebsd9.1:/home/e/eserte/bin/sh:/home/e/eserte/bin:/usr/games:/home/e/eserte/devel
    PERLDOC=-MPod::Perldoc::ToTextOverstrike
    PERL_BADLANG (unset)
    PERL_HTML_DISPLAY_CLASS=HTML::Display::Mozilla
    SHELL=/usr/local/bin/zsh


Thread Previous


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