|
|
Perl IO documentation
By Torsten Foertsch at Feb 21, 2010, 7:42 pm UTC
Hi, where can I read more about perl IO? Are there API docs that explain what can be used and what should better be avoided in external modules? The reason for the question is this, why are there 2 FPs in an IO? There is an IFP and an OFP, why? Can I open a file by IoIFP(io)=PerlIO_fdopen(1, "w")?... More...
Hi,
where can I read more about perl IO? Are there API docs that explain what can be used and what should better be avoided in external modules?
The reason for the question is this, why are there 2 FPs in an IO? There is an IFP and an OFP, why? Can I open a file by IoIFP(io)=PerlIO_fdopen(1, "w")? Is this sufficient?
Thanks, Torsten
0 Replies
|
|
|
[perl #72982] B::Deparse does not deparse PACKAGE NAME VERSION syntax
By Kevin Wolf at Feb 21, 2010, 6:40 pm UTC
# New Ticket Created by Frank Wiegand # Please include the string: [perl #72982] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=72982 > This is a bug report for perl from frank.wiegand@gmail.com, generated with the help of... More...
# New Ticket Created by Frank Wiegand # Please include the string: [perl #72982] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=72982 >
This is a bug report for perl from [email protected: frank.wi...@gmail.com], generated with the help of perlbug 1.39 running under perl 5.11.5.
-----------------------------------------------------------------
B::Deparse does not deparse the new PACKAGE NAME VERSION syntax:
% perl-5.11.5 -wE 'package main 2; say $::VERSION' 2 % perl-5.11.5 -MO=Deparse -wE 'package main 2; say $::VERSION' BEGIN { $^W = 1; } BEGIN { $^H{'feature_unicode'} = q(1); $^H{'feature_say'} = q(1); $^H{'feature_state'} = q(1); $^H{'feature_switch'} = q(1); } say $VERSION; -e syntax OK
% perl-5.11.5 -MO=Deparse -wE 'package main 2; say $::VERSION' | perl-5.11.5 - -e syntax OK Use of uninitialized value $VERSION in say at - line 8.
Thanks, Frank
----------------------------------------------------------------- --- Flags: category=core severity=low --- Site configuration information for perl 5.11.5:
Configured by fw at Sun Feb 21 11:31:15 CET 2010.
Summary of my perl5 (revision 5 version 11 subversion 5) configuration: Platform: osname=linux, osvers=2.6.32-trunk-amd64, archname=x86_64-linux uname='linux hal2 2.6.32-trunk-amd64 #1 smp sun jan 10 22:40:40 utc 2010 x86_64 gnulinux ' config_args='-de -Dusedevel -DDEBUGGING=both -Doptimize=-g -Dcc=ccache gcc -Dld=gcc -Dprefix=/opt/perl/perl-5.11.5/ -Dmad' 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='ccache gcc', ccflags ='-DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-g', cppflags='-DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include' ccversion='', gccversion='4.4.3 20100108 (prerelease)', 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='gcc', ldflags =' -fstack-protector -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib /lib64 /usr/lib64 libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc libc=/lib/libc-2.10.2.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='2.10.2' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' cccdlflags='-fPIC', lddlflags='-shared -g -L/usr/local/lib -fstack-protector'
Locally applied patches:
--- @INC for perl 5.11.5: /opt/perl/perl-5.11.5/lib/site_perl/5.11.5/x86_64-linux /opt/perl/perl-5.11.5/lib/site_perl/5.11.5 /opt/perl/perl-5.11.5/lib/5.11.5/x86_64-linux /opt/perl/perl-5.11.5/lib/5.11.5 .
--- Environment for perl 5.11.5: HOME=/home/fw LANG=de_DE.UTF-8 LANGUAGE= LD_LIBRARY_PATH (unset) LOGDIR (unset) PATH=/sbin:/usr/sbin:/home/fw/bin:/home/fw/bin:/usr/local/bin:/usr/bin:/bin:/usr/games PERL_AUTOINSTALL=--defaultdeps PERL_BADLANG (unset) PERL_EXTUTILS_AUTOINSTALL=--defaultdeps PERL_MM_USE_DEFAULT=1 SHELL=/bin/zsh
3 Replies
|
|
|
[perl #72878] Tie::Scalar looping
By Kevin Wolf at Feb 21, 2010, 4:56 pm UTC
# New Ticket Created by Abigail # Please include the string: [perl #72878] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=72878 > This is a bug report for perl from abigail@abigail.be, generated with the help of perlbug... More...
# New Ticket Created by Abigail # Please include the string: [perl #72878] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=72878 >
This is a bug report for perl from [email protected: ab...@abigail.be], generated with the help of perlbug 1.39 running under perl 5.10.1.
----------------------------------------------------------------- [Please describe your issue here]
The following program loops forever (calling new and TIESCALAR):
perl -wE 'use base "Tie::Scalar"; tie my $x => "main"'
>From IRC:
<Bram> It appeared between 5.7.1 and 5.7.3. (5.7.1 is ok; 5.7.3 is not) <rgs> it's a dirty trick to allow defining only one of new() or TIESCALAR()
I'll try to look into this later today or tomorrow.
[Please do not change anything below this line] ----------------------------------------------------------------- --- Flags: category=library severity=low module=Tie::Scalar --- Site configuration information for perl 5.10.1:
Configured by abigail at Sun Aug 23 22:26:52 CEST 2009.
Summary of my perl5 (revision 5 version 10 subversion 1) configuration: Platform: osname=linux, osvers=2.6.11-1.1369_fc4smp, archname=i686-linux-64int-ld uname='linux almanda 2.6.11-1.1369_fc4smp #1 smp thu jun 2 23:08:39 edt 2005 i686 i686 i386 gnulinux ' config_args='-des -Dusedevel -Uversiononly -Dmydomain=.abigail.be -Dcf_email=abigail@abigail.be -Dperladmin=abigail@abigail.be -Doptimize=-g -Dcc=gcc -Dprefix=/opt/perl -Dusemorebits' hint=recommended, useposix=true, d_sigaction=define useithreads=undef, usemultiplicity=undef useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=define, use64bitall=undef, uselongdouble=define usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags ='-DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-g', cppflags='-DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include' ccversion='', gccversion='4.0.2 20051125 (Red Hat 4.0.2-8)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long long', ivsize=8, nvtype='long double', nvsize=12, Off_t='off_t', lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='gcc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc libc=/lib/libc-2.3.5.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='2.3.5' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' cccdlflags='-fPIC', lddlflags='-shared -g -L/usr/local/lib'
Locally applied patches:
--- @INC for perl 5.10.1: /home/abigail/Perl /opt/perl/lib/5.10.1/i686-linux-64int-ld /opt/perl/lib/5.10.1 /opt/perl/lib/site_perl/5.10.1/i686-linux-64int-ld /opt/perl/lib/site_perl/5.10.1 /opt/perl/lib/site_perl/5.10.0/i686-linux-64int-ld /opt/perl/lib/site_perl/5.10.0 /opt/perl/lib/site_perl/5.8.8 /opt/perl/lib/site_perl .
--- Environment for perl 5.10.1: HOME=/home/abigail LANG=en_US.UTF-8 LANGUAGE (unset) LC_CTYPE=en_US.utf8 LC_MESSAGES=en_US.utf8 LD_LIBRARY_PATH=/home/abigail/Lib:/usr/local/lib:/usr/lib:/lib:/usr/X11R6/lib LOGDIR (unset) PATH=/home/abigail/Bin:/opt/perl/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/games:/opt/git/bin:/home/abigail/Perl/Photos:/home/abigail/Perl/Bin:/opt/mysql/bin PERL5LIB=/home/abigail/Perl PERLDIR=/opt/perl PERL_BADLANG (unset) SHELL=/bin/bash
2 Replies
|
|
|
Perl 5.11.5 is now available!
By Steve Hay at Feb 21, 2010, 4:17 pm UTC
A little child, a limber elf, Singing, dancing to itself, A fairy thing with red round cheeks, That always finds, and never seeks, Makes such a vision to the sight As fills a father's eyes with light; And pleasures flow in so thick and fast Upon his heart, that he at last Must needs express his... More...
A little child, a limber elf, Singing, dancing to itself, A fairy thing with red round cheeks, That always finds, and never seeks, Makes such a vision to the sight As fills a father's eyes with light; And pleasures flow in so thick and fast Upon his heart, that he at last Must needs express his love's excess With words of unmeant bitterness. Perhaps 'tis pretty to force together Thoughts so all unlike each other; To mutter and mock a broken charm, To dally with wrong that does no harm. Perhaps 'tis tender too and pretty At each wild word to feel within A sweet recoil of love and pity. And what, if in a world of sin (O sorrow and shame should this be true!) Such giddiness of heart and brain Comes seldom save from rage and pain, So talks as it's most used to do.
-- Samuel Taylor Coleridge, /Christabel/
It gives me great pleasure to announce the release of Perl 5.11.5.
This is the sixth DEVELOPMENT release in the 5.11.x series leading to a stable release of Perl 5.12.0. You can find a list of high-profile changes in this release in the file "perl5115delta.pod" inside the distribution.
Perl 5.11.5 is the second release of Perl 5.11.x since the code freeze for = Perl 5.12.0. It and subsequent releases in the 5.11 series include very limited code changes, almost entirely related to regressions from previous released versions of Perl or which resolve issues we believe would make a stable release of Perl 5.12.0 inadvisable.
You can download the 5.11.5 release from:
http://search.cpan.org/~shay/perl-5.11.5/
The release's SHA1 signatures are:
MD5: cce1928d12d2b05524cce3e79ea4776e perl-5.11.5.tar.gz SHA1: a7cb585b226220d28d0cd6a1e159ab38d88917a8 perl-5.11.5.tar.gz
MD5: 07dca6906670ded63e535f95c0c82dff perl-5.11.5.tar.bz2 SHA1: 91892615c1d85d727baec3589640015eb6109fe8 perl-5.11.5.tar.bz2
This release corresponds to commit b3289bd223 in Perl's git repository. It is tagged as 'v5.11.5'.
We welcome your feedback on this release. If you discover issues with Perl 5.11.5, please use the 'perlbug' tool included in this distribution to report them. If Perl 5.11.5 works well for you, please use the 'perlthanks' tool included with this distribution to tell the all-volunteer development team how much you appreciate their work.
If you write software in Perl, it is particularly important that you test your software against development releases. While we strive to maintain source compatibility with prior stable versions of Perl wherever possible, it is always possible that a well-intentioned change can have unexpected consequences. If you spot a change in a development version which breaks your code, it's much more likely that we will be able to fix it before the next stable release. If you only test your code against stable releases of Perl, it may not be possible to undo a backwards-incompatible change which breaks your code.
Perl 5.11.5 represents approximately one month of development since Perl 5.11.4 and contains 9618 lines of changes across 151 files from 33 authors and committers:
=C3=86var Arnfj=C3=B6r=C3=B0 Bjarmason, Abigail, brian d foy, Chris William= s, David Golden, David Mitchell, Eric Brine, Frank Wiegand, Gisle Aas, H.Merijn Brand, Jan Dubois, Jesse Vincent, Jim Cromie, John Peacock, Josh ben Jore, Karl Williamson, Marcus Holland-Moritz, Michael G Schwern, Nicholas Clark, Offer Kaye, Philippe Bruhat (BooK), Rafael Garcia-Suarez, Reini Urban, Ricardo Signes, Robin Barker, Slaven Rezic, Steffen Mueller, Steve Hay, Steve Peter= s, Tim Bunce, Todd Rinaldo, Tony Cook and Vincent Pit.
Many of the changes included in this version originated in the CPAN modules included in Perl's core. We're grateful to the entire CPAN community for helping Perl to flourish.
Notable changes in this release:
* The 32-bit limit on substr arguments has now been removed.
* Numerous improvements to the charnames handler, the processing of \N{...} and the reporting of related warnings and errors.
* A bug in gmtime64 that caused it to break around 2**48 has been fixed.
* Several crashing bugs or regressions from earlier releases of Perl were fixed for this release.
Development versions of Perl are released monthly on or about the 20th of the month by a monthly "release manager". You can expect following upcoming releases:
March 20 - Ask Bj=C3=B8rn Hansen April 20 - Leon Brocard May 20 - Ricardo Signes June 20 - Philippe Bruhat July 20 - Matt Trout August 20 - David Golden
Enjoy!
Steve Hay
0 Replies
|
|
|
REPOSITORY NOW UNFROZEN
By Steve Hay at Feb 21, 2010, 4:01 pm UTC
The problems with the PAUSE indexing of the perl-5.11.5 tarballs have now been resolved (many thanks to Andreas Koenig for that) and an announcement of the release of perl-5.11.5 will follow very soon. Therefore, please feel free to start committing again. I'll be embarking on the various... More...
The problems with the PAUSE indexing of the perl-5.11.5 tarballs have now been resolved (many thanks to Andreas Koenig for that) and an announcement of the release of perl-5.11.5 will follow very soon.
Therefore, please feel free to start committing again. I'll be embarking on the various post-release tasks once I've got the announcement out.
0 Replies
|
|
|
Smoke [5.11.4] Intel(R) FAIL(M) MSWin32 WinXP/.Net SP3 (x86/4 cpu)
By perl5-win32-...@corion.net at Feb 21, 2010, 11:48 am UTC
Automated smoke report for 5.11.4 patch hellboy: Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz(~2500 MHz) (x86/4 cpu) on MSWin32 - WinXP/.Net SP3 using ccache-gcc version 3.4.5 (mingw-vista special r3) smoketime 2 hours 55 minutes (average 21 minutes 57 seconds) Summary: FAIL(M) O = OK F =... More...
Automated smoke report for 5.11.4 patch hellboy: Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz(~2500 MHz) (x86/4 cpu) on MSWin32 - WinXP/.Net SP3 using ccache-gcc version 3.4.5 (mingw-vista special r3) smoketime 2 hours 55 minutes (average 21 minutes 57 seconds)
Summary: FAIL(M)
O = OK F = Failure(s), extended report at the bottom X = Failure(s) under TEST but not under harness ? = still running or test results not (yet) available Build failures during: - = unknown or N/A c = Configure, m = make, M = make (after miniperl), t = make test-prep
Configuration (common) none ----------- --------------------------------------------------------- M O M O -Duselargefiles O M -Duseithreads O M -Duseithreads -Duselargefiles | +--------- -DDEBUGGING +----------- no debugging
Compiler messages(gcc): Bzip2.xs:136: warning: unused variable `Perl___notused' Bzip2.xs:266: warning: unused variable `Perl___notused' Bzip2.xs:300: warning: unused variable `Perl___notused' Bzip2.c:410: warning: unused variable `Perl___notused' Bzip2.c:522: warning: unused variable `Perl___notused' Bzip2.c:543: warning: unused variable `Perl___notused' Bzip2.c:642: warning: unused variable `Perl___notused' Bzip2.c:748: warning: unused variable `Perl___notused' Bzip2.c:786: warning: unused variable `Perl___notused' Bzip2.c:878: warning: unused variable `Perl___notused' Bzip2.c:908: warning: unused variable `Perl___notused' Bzip2.c:994: warning: unused variable `Perl___notused' Bzip2.c:1082: warning: unused variable `Perl___notused' Bzip2.c:1114: warning: unused variable `Perl___notused' Bzip2.c:1146: warning: unused variable `Perl___notused' Bzip2.c:1178: warning: unused variable `Perl___notused' Bzip2.c:1210: warning: unused variable `Perl___notused' Bzip2.c:1248: warning: unused variable `Perl___notused' Bzip2.c:1402: warning: unused variable `Perl___notused' Bzip2.c:1434: warning: unused variable `Perl___notused' Bzip2.c:1464: warning: unused variable `Perl___notused' Bzip2.c:1496: warning: unused variable `Perl___notused' Bzip2.c:1528: warning: unused variable `Perl___notused' Bzip2.c:1560: warning: unused variable `Perl___notused' Bzip2.c:1592: warning: unused variable `Perl___notused' Bzip2.c:1626: warning: unused variable `Perl___notused' APItest.xs:930: warning: `Perl_pmflag' is deprecated (declared at ../../lib/CORE/proto.h:2615) C:\DOKUME~1\corion\LOKALE~1\Temp\compilet.exp:fake:(.edata+0x3c): undefined reference to `boot_compilet' C:\DOKUME~1\corion\LOKALE~1\Temp\compilet.exp:fake:(.edata+0x40): undefined reference to `boot_compilet' t\compilet.exp:fake:(.edata+0x3c): undefined reference to `boot_compilet' t\compilet.exp:fake:(.edata+0x40): undefined reference to `boot_compilet' win32.c:2863: warning: passing arg 2 of `fsetpos' from incompatible pointer type win32io.c:260: warning: right shift count >= width of type win32io.c:285: warning: left shift count >= width of type perlhost.h:248: warning: invalid access to non-static data member `CPerlHost::m_hostperlMem' of NULL object perlhost.h:248: warning: (perhaps the `offsetof' macro was used incorrectly) perlhost.h:253: warning: invalid access to non-static data member `CPerlHost::m_hostperlMemShared' of NULL object perlhost.h:253: warning: (perhaps the `offsetof' macro was used incorrectly) perlhost.h:258: warning: invalid access to non-static data member `CPerlHost::m_hostperlMemParse' of NULL object perlhost.h:258: warning: (perhaps the `offsetof' macro was used incorrectly) perlhost.h:263: warning: invalid access to non-static data member `CPerlHost::m_hostperlEnv' of NULL object perlhost.h:263: warning: (perhaps the `offsetof' macro was used incorrectly) perlhost.h:268: warning: invalid access to non-static data member `CPerlHost::m_hostperlStdIO' of NULL object perlhost.h:268: warning: (perhaps the `offsetof' macro was used incorrectly) perlhost.h:273: warning: invalid access to non-static data member `CPerlHost::m_hostperlLIO' of NULL object perlhost.h:273: warning: (perhaps the `offsetof' macro was used incorrectly) perlhost.h:278: warning: invalid access to non-static data member `CPerlHost::m_hostperlDir' of NULL object perlhost.h:278: warning: (perhaps the `offsetof' macro was used incorrectly) perlhost.h:283: warning: invalid access to non-static data member `CPerlHost::m_hostperlSock' of NULL object perlhost.h:283: warning: (perhaps the `offsetof' macro was used incorrectly) perlhost.h:288: warning: invalid access to non-static data member `CPerlHost::m_hostperlProc' of NULL object perlhost.h:288: warning: (perhaps the `offsetof' macro was used incorrectly) Bzip2.xs:136: warning: unused variable `my_perl' Bzip2.xs:266: warning: unused variable `my_perl' Bzip2.xs:300: warning: unused variable `my_perl'
-- Report by Test::Smoke v1.40 build 1242 running on perl 5.10.0 (Reporter v0.035 / Smoker v0.044)
6 Replies
|
|
|
Smoke [5.11.5] v5.11.4-143-gb3289bd FAIL(F) MSWin32 Win2000 SP4 (x86/1 cpu)
By George Greer at Feb 21, 2010, 07:58 am UTC
Automated smoke report for 5.11.5 patch b3289bd223cc434b2247c06d40ffe8d467f= 241de v5.11.4-143-gb3289bd perl-win2k: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz(~2672 MHz) (x86/1 cpu) on MSWin32 - Win2000 SP4 using cl version 14.00.50727.762 smoketime 4 hours 21 minutes (average 32 minutes 43 seconds)... More...
Automated smoke report for 5.11.5 patch b3289bd223cc434b2247c06d40ffe8d467f241de v5.11.4-143-gb3289bd perl-win2k: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz(~2672 MHz) (x86/1 cpu) on MSWin32 - Win2000 SP4 using cl version 14.00.50727.762 smoketime 4 hours 21 minutes (average 32 minutes 43 seconds)
Summary: FAIL(F)
O = OK F = Failure(s), extended report at the bottom X = Failure(s) under TEST but not under harness ? = still running or test results not (yet) available Build failures during: - = unknown or N/A c = Configure, m = make, M = make (after miniperl), t = make test-prep
v5.11.4-143-gb3289bd Configuration (common) none ----------- --------------------------------------------------------- O O O O -Duselargefiles O O -Duseithreads F F -Duseithreads -Duselargefiles | +--------- -DDEBUGGING +----------- no debugging
Locally applied patches: SMOKEb3289bd223cc434b2247c06d40ffe8d467f241de
Failures: (common-args) none [default] -Duseithreads -Duselargefiles [default] -DDEBUGGING -Duseithreads -Duselargefiles ../dist/threads-shared/t/waithires.t........................FAILED Non-zero exit status: 1 Bad plan. You planned 57 tests but ran 14.
Passed Todo tests: (common-args) none [default] [default] -DDEBUGGING [default] -Duselargefiles [default] -DDEBUGGING -Duselargefiles ../dist/Safe/t/safesort.t...................................PASSED 10
Compiler messages(MSWin32): Cwd.xs(75) : warning C4101: 'symlink' : unreferenced local variable
-- Report by Test::Smoke v1.42 build 1267 running on perl 5.10.0 (Reporter v0.035 / Smoker v0.045)
0 Replies
|
|
|
Smoke [5.11.5] v5.11.4-143-gb3289bd FAIL(F) MSWin32 WinXP/.Net SP3 (x86/2 cpu)
By "Steve Hay" at Feb 21, 2010, 07:56 am UTC
Automated smoke report for 5.11.5 patch b3289bd223cc434b2247c06d40ffe8d467f= 241de v5.11.4-143-gb3289bd maldoror.bath.planit.group: Intel(R) Core(TM)2 CPU 6700 @ 2.66GHz(~2660 MHz= ) (x86/2 cpu) on MSWin32 - WinXP/.Net SP3 using bcc32 version 5.5.1 smoketime 7 hours 51 minutes (average 47 minutes... More...
Automated smoke report for 5.11.5 patch b3289bd223cc434b2247c06d40ffe8d467f241de v5.11.4-143-gb3289bd maldoror.bath.planit.group: Intel(R) Core(TM)2 CPU 6700 @ 2.66GHz(~2660 MHz) (x86/2 cpu) on MSWin32 - WinXP/.Net SP3 using bcc32 version 5.5.1 smoketime 7 hours 51 minutes (average 47 minutes 10 seconds)
Summary: FAIL(F)
O = OK F = Failure(s), extended report at the bottom X = Failure(s) under TEST but not under harness ? = still running or test results not (yet) available Build failures during: - = unknown or N/A c = Configure, m = make, M = make (after miniperl), t = make test-prep
v5.11.4-143-gb3289bd Configuration (common) -DCCTYPE=BORLAND -DINST_TOP=$(INST_DRV)\Smoke\doesntexist ----------- --------------------------------------------------------- F F -Duselargefiles F F -Duselargefiles -Dusemymalloc F F -Duselargefiles -Duseithreads -Uuseimpsys F F -Duselargefiles -Duseithreads -Uuseimpsys -Dusemymalloc F F -Duselargefiles -Duseithreads | +--------- -DDEBUGGING +----------- no debugging
Locally applied patches: SMOKEb3289bd223cc434b2247c06d40ffe8d467f241de
Failures: (common-args) -DCCTYPE=BORLAND -DINST_TOP=$(INST_DRV)\Smoke\doesntexist [default] -Duselargefiles [default] -DDEBUGGING -Duselargefiles [default] -Duselargefiles -Dusemymalloc [default] -DDEBUGGING -Duselargefiles -Dusemymalloc [default] -Duselargefiles -Duseithreads -Uuseimpsys [default] -DDEBUGGING -Duselargefiles -Duseithreads -Uuseimpsys [default] -DDEBUGGING -Duselargefiles -Duseithreads -Uuseimpsys -Dusemymalloc [default] -Duselargefiles -Duseithreads ../t/io/errno.t.............................................FAILED 1-16
[default] -Duselargefiles -Duseithreads -Uuseimpsys -Dusemymalloc ../t/io/errno.t.............................................FAILED 1-16 ../t/op/threads.t...........................................FAILED Non-zero exit status: 5 Bad plan. You planned 17 tests but ran 9.
[default] -DDEBUGGING -Duselargefiles -Duseithreads ../t/io/errno.t.............................................FAILED 1-16 ../dist/IO/t/io_sock.t......................................FAILED 25 Non-zero exit status: 54 Bad plan. You planned 26 tests but ran 25.
Passed Todo tests: (common-args) -DCCTYPE=BORLAND -DINST_TOP=$(INST_DRV)\Smoke\doesntexist [default] -Duselargefiles [default] -DDEBUGGING -Duselargefiles [default] -Duselargefiles -Dusemymalloc [default] -DDEBUGGING -Duselargefiles -Dusemymalloc ../dist/Safe/t/safesort.t...................................PASSED 10
Compiler messages(bcc32): Warning W8004 blocksort.c 901: 'numQSorted' is assigned a value that is never used in function mainSort Warning W8004 compress.c 225: 'zPend' is assigned a value that is never used in function generateMTFValues Warning W8004 compress.c 598: 'nBytes' is assigned a value that is never used in function sendMTFValues Warning W8008 decompress.c 588: Condition is always true in function BZ2_decompress Warning W8008 decompress.c 591: Condition is always true in function BZ2_decompress Warning W8008 bzlib.c 93: Condition is always false in function bz_config_ok Warning W8066 bzlib.c 93: Unreachable code in function bz_config_ok Warning W8008 bzlib.c 94: Condition is always false in function bz_config_ok Warning W8066 bzlib.c 94: Unreachable code in function bz_config_ok Warning W8008 bzlib.c 95: Condition is always false in function bz_config_ok Warning W8066 bzlib.c 95: Unreachable code in function bz_config_ok Warning W8057 bzlib.c 111: Parameter 'opaque' is never used in function default_bzalloc Warning W8057 bzlib.c 117: Parameter 'opaque' is never used in function default_bzfree Warning W8004 bzlib.c 454: 'progress' is assigned a value that is never used in function BZ2_bzCompress Warning W8066 bzlib.c 866: Unreachable code in function BZ2_bzDecompress Warning W8008 bzlib.c 866: Condition is always true in function BZ2_bzDecompress Warning W8008 crc32.c 232: Condition is always true in function crc32 Warning W8066 crc32.c 242: Unreachable code in function crc32 Warning W8004 deflate.c 351: 'hash_head' is assigned a value that is never used in function deflateSetDictionary Warning W8008 deflate.c 1278: Condition is always false in function fill_window Warning W8066 deflate.c 1279: Unreachable code in function fill_window Warning W8004 deflate.c 1669: 'bflush' is assigned a value that is never used in function deflate_slow
-- Report by Test::Smoke v1.42 build 1267 running on perl 5.11.0 (Reporter v0.035 / Smoker v0.045)
0 Replies
|
|
|
Smoke [5.10.1] perl-5.10.1-1-gca8de22 FAIL(F) MSWin32 WinXP/.Net SP3 (x86/2 cpu)
By "Steve Hay" at Feb 20, 2010, 11:58 pm UTC
Automated smoke report for 5.10.1 patch ca8de220718ba91d5a5fdd9779497cd5b02= 50258 perl-5.10.1-1-gca8de22 maldoror.bath.planit.group: Intel(R) Core(TM)2 CPU 6700 @ 2.66GHz(~2660 MHz= ) (x86/2 cpu) on MSWin32 - WinXP/.Net SP3 using bcc32 version 5.5.1 smoketime 4 hours 43 minutes (average 28 minutes... More...
Automated smoke report for 5.10.1 patch ca8de220718ba91d5a5fdd9779497cd5b0250258 perl-5.10.1-1-gca8de22 maldoror.bath.planit.group: Intel(R) Core(TM)2 CPU 6700 @ 2.66GHz(~2660 MHz) (x86/2 cpu) on MSWin32 - WinXP/.Net SP3 using bcc32 version 5.5.1 smoketime 4 hours 43 minutes (average 28 minutes 24 seconds)
Summary: FAIL(F)
O = OK F = Failure(s), extended report at the bottom X = Failure(s) under TEST but not under harness ? = still running or test results not (yet) available Build failures during: - = unknown or N/A c = Configure, m = make, M = make (after miniperl), t = make test-prep
perl-5.10.1-1-gca8de22 Configuration (common) -DCCTYPE=BORLAND -DINST_TOP=$(INST_DRV)\Smoke\doesntexist ----------- --------------------------------------------------------- O O -Duselargefiles O O -Duselargefiles -Dusemymalloc F O -Duselargefiles -Duseithreads -Uuseimpsys O O -Duselargefiles -Duseithreads -Uuseimpsys -Dusemymalloc F F -Duselargefiles -Duseithreads | +--------- -DDEBUGGING +----------- no debugging
Locally applied patches: SMOKEca8de220718ba91d5a5fdd9779497cd5b0250258
Failures: (common-args) -DCCTYPE=BORLAND -DINST_TOP=$(INST_DRV)\Smoke\doesntexist [default] -Duselargefiles -Duseithreads -Uuseimpsys ../t/op/threads.t...........................................FAILED Bad plan. You planned 14 tests but ran 9.
[default] -Duselargefiles -Duseithreads [default] -DDEBUGGING -Duselargefiles -Duseithreads ../ext/IO/t/io_sock.t.......................................FAILED
Compiler messages(bcc32): Warning W8019 ..\regexec.c 4874: Code has no effect in function S_regmatch Warning W8004 blocksort.c 901: 'numQSorted' is assigned a value that is never used in function mainSort Warning W8004 compress.c 225: 'zPend' is assigned a value that is never used in function generateMTFValues Warning W8004 compress.c 598: 'nBytes' is assigned a value that is never used in function sendMTFValues Warning W8008 decompress.c 588: Condition is always true in function BZ2_decompress Warning W8008 decompress.c 591: Condition is always true in function BZ2_decompress Warning W8008 bzlib.c 93: Condition is always false in function bz_config_ok Warning W8066 bzlib.c 93: Unreachable code in function bz_config_ok Warning W8008 bzlib.c 94: Condition is always false in function bz_config_ok Warning W8066 bzlib.c 94: Unreachable code in function bz_config_ok Warning W8008 bzlib.c 95: Condition is always false in function bz_config_ok Warning W8066 bzlib.c 95: Unreachable code in function bz_config_ok Warning W8057 bzlib.c 111: Parameter 'opaque' is never used in function default_bzalloc Warning W8057 bzlib.c 117: Parameter 'opaque' is never used in function default_bzfree Warning W8004 bzlib.c 454: 'progress' is assigned a value that is never used in function BZ2_bzCompress Warning W8066 bzlib.c 866: Unreachable code in function BZ2_bzDecompress Warning W8008 bzlib.c 866: Condition is always true in function BZ2_bzDecompress Warning W8008 crc32.c 232: Condition is always true in function crc32 Warning W8066 crc32.c 242: Unreachable code in function crc32 Warning W8004 deflate.c 351: 'hash_head' is assigned a value that is never used in function deflateSetDictionary Warning W8008 deflate.c 1278: Condition is always false in function fill_window Warning W8066 deflate.c 1279: Unreachable code in function fill_window Warning W8004 deflate.c 1669: 'bflush' is assigned a value that is never used in function deflate_slow Warning W8019 re_exec.c 4874: Code has no effect in function S_regmatch Warning W8075 Peek.c 391: Suspicious pointer conversion in function XS_Devel__Peek_mstat Warning W8019 ..\regexec.c 2292: Code has no effect in function S_regtry Warning W8019 re_exec.c 2292: Code has no effect in function S_regtry
-- Report by Test::Smoke v1.39 build 1235 running on perl 5.11.0 (Reporter v0.035 / Smoker v0.044)
48 Replies
|
|
|
Smoke [5.11.5] v5.11.4-143-gb3289bd FAIL(M) MSWin32 Win2000 SP4 (x86/1 cpu)
By George Greer at Feb 20, 2010, 10:22 pm UTC
Automated smoke report for 5.11.5 patch b3289bd223cc434b2247c06d40ffe8d467f= 241de v5.11.4-143-gb3289bd perl-win2k: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz(~2672 MHz) (x86/1 cpu) on MSWin32 - Win2000 SP4 using cl version 14.00.50727.762 smoketime 56 minutes 57 seconds (average 7 minutes 7 seconds)... More...
Automated smoke report for 5.11.5 patch b3289bd223cc434b2247c06d40ffe8d467f241de v5.11.4-143-gb3289bd perl-win2k: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz(~2672 MHz) (x86/1 cpu) on MSWin32 - Win2000 SP4 using cl version 14.00.50727.762 smoketime 56 minutes 57 seconds (average 7 minutes 7 seconds)
Summary: FAIL(M)
O = OK F = Failure(s), extended report at the bottom X = Failure(s) under TEST but not under harness ? = still running or test results not (yet) available Build failures during: - = unknown or N/A c = Configure, m = make, M = make (after miniperl), t = make test-prep
v5.11.4-143-gb3289bd Configuration (common) none ----------- --------------------------------------------------------- M M M M -Duselargefiles M M -Duseithreads M M -Duseithreads -Duselargefiles | +--------- -DDEBUGGING +----------- no debugging
Locally applied patches: SMOKEb3289bd223cc434b2247c06d40ffe8d467f241de
MANIFEST did not declare 'PERL.EXE' MANIFEST did not declare 'PERL511.DLL'
Compiler messages(MSWin32): LINK : fatal error LNK1104: cannot open file '..\perl511.dll'
-- Report by Test::Smoke v1.42 build 1267 running on perl 5.10.0 (Reporter v0.035 / Smoker v0.045)
0 Replies
|
|
|
perldoc, $Config{'scriptdirexp'}, and $PATH
By Chris Nehren at Feb 20, 2010, 10:09 pm UTC
In the course of helping someone debug a library, it was discovered that perldoc searches $Config{'scriptdirexp'} before all of $PATH for the POD to display. This happens regardless of whether $Config{'scriptdirexp'} is in $PATH or even if an item before $Config{'scriptdirexp'} in $PATH has the... More...
In the course of helping someone debug a library, it was discovered that perldoc searches $Config{'scriptdirexp'} before all of $PATH for the POD to display. This happens regardless of whether $Config{'scriptdirexp'} is in $PATH or even if an item before $Config{'scriptdirexp'} in $PATH has the requested name and POD. This seems to be by design. Does anyone remember why this special-case decision was made? I've tried poking the Pod::Perldoc changelog but it doesn't seem to mention it (or I fail at searching). This contradicts the behavior of perldoc when reading documentation for libraries, and I'd like to know if we can resolve this idiosyncrasy.
-- Thanks and best regards, Chris Nehren
0 Replies
|
|
|
Smoke [5.11.5] v5.11.4-142-g3b63b11 FAIL(M) MSWin32 Win2000 SP4 (x86/1 cpu)
By George Greer at Feb 20, 2010, 9:22 pm UTC
Automated smoke report for 5.11.5 patch 3b63b116a8d96118e14be92ac4b10bedd6d= 2cd2e v5.11.4-142-g3b63b11 perl-win2k: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz(~2672 MHz) (x86/1 cpu) on MSWin32 - Win2000 SP4 using cl version 14.00.50727.762 smoketime 1 hour 44 minutes (average 13 minutes 1 seconds)... More...
Automated smoke report for 5.11.5 patch 3b63b116a8d96118e14be92ac4b10bedd6d2cd2e v5.11.4-142-g3b63b11 perl-win2k: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz(~2672 MHz) (x86/1 cpu) on MSWin32 - Win2000 SP4 using cl version 14.00.50727.762 smoketime 1 hour 44 minutes (average 13 minutes 1 seconds)
Summary: FAIL(M)
O = OK F = Failure(s), extended report at the bottom X = Failure(s) under TEST but not under harness ? = still running or test results not (yet) available Build failures during: - = unknown or N/A c = Configure, m = make, M = make (after miniperl), t = make test-prep
v5.11.4-142-g3b63b11 Configuration (common) none ----------- --------------------------------------------------------- O O M M -Duselargefiles M M -Duseithreads M M -Duseithreads -Duselargefiles | +--------- -DDEBUGGING +----------- no debugging
Locally applied patches: SMOKE3b63b116a8d96118e14be92ac4b10bedd6d2cd2e
Passed Todo tests: (common-args) none [default] [default] -DDEBUGGING ../dist/Safe/t/safesort.t...................................PASSED 10
Compiler messages(MSWin32): Cwd.xs(75) : warning C4101: 'symlink' : unreferenced local variable LINK : fatal error LNK1104: cannot open file '..\perl511.dll'
-- Report by Test::Smoke v1.42 build 1267 running on perl 5.10.0 (Reporter v0.035 / Smoker v0.045)
0 Replies
|
|
|
Smoke [5.11.4] v5.11.4-133-gcca4e9f FAIL(F) MSWin32 Win2000 SP4 (x86/1 cpu)
By George Greer at Feb 20, 2010, 7:34 pm UTC
Automated smoke report for 5.11.4 patch cca4e9fab7291545636e94a7bf2f606ae75= 26371 v5.11.4-133-gcca4e9f perl-win2k: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz(~2672 MHz) (x86/1 cpu) on MSWin32 - Win2000 SP4 using cl version 14.00.50727.762 smoketime 4 hours 20 minutes (average 32 minutes 34 seconds)... More...
Automated smoke report for 5.11.4 patch cca4e9fab7291545636e94a7bf2f606ae7526371 v5.11.4-133-gcca4e9f perl-win2k: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz(~2672 MHz) (x86/1 cpu) on MSWin32 - Win2000 SP4 using cl version 14.00.50727.762 smoketime 4 hours 20 minutes (average 32 minutes 34 seconds)
Summary: FAIL(F)
O = OK F = Failure(s), extended report at the bottom X = Failure(s) under TEST but not under harness ? = still running or test results not (yet) available Build failures during: - = unknown or N/A c = Configure, m = make, M = make (after miniperl), t = make test-prep
v5.11.4-133-gcca4e9f Configuration (common) none ----------- --------------------------------------------------------- O O O O -Duselargefiles O F -Duseithreads O O -Duseithreads -Duselargefiles | +--------- -DDEBUGGING +----------- no debugging
Locally applied patches: SMOKEcca4e9fab7291545636e94a7bf2f606ae7526371
Failures: (common-args) none [default] -DDEBUGGING -Duseithreads ../dist/threads-shared/t/waithires.t........................FAILED 17, 19
Passed Todo tests: (common-args) none [default] [default] -DDEBUGGING [default] -Duselargefiles [default] -DDEBUGGING -Duselargefiles ../t/re/reg_fold.t..........................................PASSED 458, 2632, 4398, 4404, 4410, 4416, 4422 4428, 4434 ../dist/Safe/t/safesort.t...................................PASSED 10
[default] -Duseithreads [default] -DDEBUGGING -Duseithreads [default] -Duseithreads -Duselargefiles [default] -DDEBUGGING -Duseithreads -Duselargefiles ../t/re/reg_fold.t..........................................PASSED 458, 2632, 4398, 4404, 4410, 4416, 4422 4428, 4434
Compiler messages(MSWin32): Cwd.xs(75) : warning C4101: 'symlink' : unreferenced local variable
-- Report by Test::Smoke v1.42 build 1267 running on perl 5.10.0 (Reporter v0.035 / Smoker v0.045)
0 Replies
|
|
|
REPOSITORY FROZEN FOR RELEASE OF 5.11.5
By Steve Hay at Feb 20, 2010, 3:53 pm UTC
I am beginning the final steps to release Perl 5.11.5 in about 10 minutes time. Committers, please do not push anything else to blead until v5.11.5 is tagged. Thank you. More...
I am beginning the final steps to release Perl 5.11.5 in about 10 minutes time.
Committers, please do not push anything else to blead until v5.11.5 is tagged.
Thank you.
0 Replies
|
|
|
Smoke [5.11.4] v5.11.4-129-g749123f FAIL(F) MSWin32 Win2000 SP4 (x86/1 cpu)
By George Greer at Feb 20, 2010, 3:07 pm UTC
Automated smoke report for 5.11.4 patch 749123ff5f0f5da3f3eb842fc225137c682= 1a6fe v5.11.4-129-g749123f perl-win2k: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz(~2672 MHz) (x86/1 cpu) on MSWin32 - Win2000 SP4 using cl version 14.00.50727.762 smoketime 4 hours 25 minutes (average 33 minutes 8 seconds)... More...
Automated smoke report for 5.11.4 patch 749123ff5f0f5da3f3eb842fc225137c6821a6fe v5.11.4-129-g749123f perl-win2k: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz(~2672 MHz) (x86/1 cpu) on MSWin32 - Win2000 SP4 using cl version 14.00.50727.762 smoketime 4 hours 25 minutes (average 33 minutes 8 seconds)
Summary: FAIL(F)
O = OK F = Failure(s), extended report at the bottom X = Failure(s) under TEST but not under harness ? = still running or test results not (yet) available Build failures during: - = unknown or N/A c = Configure, m = make, M = make (after miniperl), t = make test-prep
v5.11.4-129-g749123f Configuration (common) none ----------- --------------------------------------------------------- O O O O -Duselargefiles O F -Duseithreads F O -Duseithreads -Duselargefiles | +--------- -DDEBUGGING +----------- no debugging
Locally applied patches: SMOKE749123ff5f0f5da3f3eb842fc225137c6821a6fe
Failures: (common-args) none [default] -DDEBUGGING -Duseithreads ../dist/threads-shared/t/waithires.t........................FAILED 17, 19
[default] -Duseithreads -Duselargefiles ../dist/threads/t/free2.t...................................FAILED Non-zero exit status: 1 Bad plan. You planned 78 tests but ran 70.
Passed Todo tests: (common-args) none [default] [default] -DDEBUGGING [default] -Duselargefiles [default] -DDEBUGGING -Duselargefiles ../t/re/reg_fold.t..........................................PASSED 458, 2632, 4398, 4404, 4410, 4416, 4422 4428, 4434 ../dist/Safe/t/safesort.t...................................PASSED 10
[default] -Duseithreads [default] -DDEBUGGING -Duseithreads [default] -Duseithreads -Duselargefiles [default] -DDEBUGGING -Duseithreads -Duselargefiles ../t/re/reg_fold.t..........................................PASSED 458, 2632, 4398, 4404, 4410, 4416, 4422 4428, 4434
Compiler messages(MSWin32): Cwd.xs(75) : warning C4101: 'symlink' : unreferenced local variable
-- Report by Test::Smoke v1.42 build 1267 running on perl 5.10.0 (Reporter v0.035 / Smoker v0.045)
0 Replies
|
|
|
Smoke [5.11.4] v5.11.4-128-gc500e02 FAIL(F) MSWin32 Win2000 SP4 (x86/1 cpu)
By George Greer at Feb 20, 2010, 10:05 am UTC
Automated smoke report for 5.11.4 patch c500e02848ab1c4e57ca96ba7209e093aea= c70a6 v5.11.4-128-gc500e02 perl-win2k: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz(~2672 MHz) (x86/1 cpu) on MSWin32 - Win2000 SP4 using cl version 14.00.50727.762 smoketime 4 hours 23 minutes (average 32 minutes 57 seconds)... More...
Automated smoke report for 5.11.4 patch c500e02848ab1c4e57ca96ba7209e093aeac70a6 v5.11.4-128-gc500e02 perl-win2k: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz(~2672 MHz) (x86/1 cpu) on MSWin32 - Win2000 SP4 using cl version 14.00.50727.762 smoketime 4 hours 23 minutes (average 32 minutes 57 seconds)
Summary: FAIL(F)
O = OK F = Failure(s), extended report at the bottom X = Failure(s) under TEST but not under harness ? = still running or test results not (yet) available Build failures during: - = unknown or N/A c = Configure, m = make, M = make (after miniperl), t = make test-prep
v5.11.4-128-gc500e02 Configuration (common) none ----------- --------------------------------------------------------- O O O O -Duselargefiles O F -Duseithreads O O -Duseithreads -Duselargefiles | +--------- -DDEBUGGING +----------- no debugging
Locally applied patches: SMOKEc500e02848ab1c4e57ca96ba7209e093aeac70a6
Failures: (common-args) none [default] -DDEBUGGING -Duseithreads ../t/io/openpid.t...........................................FAILED Non-zero exit status: 9
Passed Todo tests: (common-args) none [default] [default] -DDEBUGGING [default] -Duselargefiles [default] -DDEBUGGING -Duselargefiles ../t/re/reg_fold.t..........................................PASSED 458, 2632, 4398, 4404, 4410, 4416, 4422 4428, 4434 ../dist/Safe/t/safesort.t...................................PASSED 10
[default] -Duseithreads [default] -DDEBUGGING -Duseithreads [default] -Duseithreads -Duselargefiles [default] -DDEBUGGING -Duseithreads -Duselargefiles ../t/re/reg_fold.t..........................................PASSED 458, 2632, 4398, 4404, 4410, 4416, 4422 4428, 4434
Compiler messages(MSWin32): Cwd.xs(75) : warning C4101: 'symlink' : unreferenced local variable
-- Report by Test::Smoke v1.42 build 1267 running on perl 5.10.0 (Reporter v0.035 / Smoker v0.045)
0 Replies
|
|
|
PATCH: deprecate certain unreasonable names in \N{...}
By karl williamson at Feb 20, 2010, 07:02 am UTC
This patch does what has been discussed on this forum some, to define reasonable charnames and warn on those which don't fit in. Names outside of latin1 are accepted without being tested. I couldn't quickly come up with tests for utf8 names, so there are no tests for those now. >From... More...
This patch does what has been discussed on this forum some, to define reasonable charnames and warn on those which don't fit in.
Names outside of latin1 are accepted without being tested. I couldn't quickly come up with tests for utf8 names, so there are no tests for those now. >From b63b15d8d8daf719975509c5c6b9f7f1619b27af Mon Sep 17 00:00:00 2001 From: Karl Williamson <khw@khw-desktop.(none)> Date: Fri, 19 Feb 2010 23:53:36 -0700 Subject: [PATCH] PATCH: deprecation warnings for unreasonable charnames
Prior to now just about anything has been legal for a character name in \N{...}. This means that legal code was broken by having \N{3,4} for example mean [^\n]{3,4}. Such code doesn't come from standard charnames, but from legal custom translators.
This patch deprecates "unreasonable" names. handy.h is changed by the addition of macros that taken together define the names we deem reasonable, namely alpha beginning with alphanumerics and some punctuations as continuations.
toke.c is changed to parse each name and to raise a warning if any problematic characters are found.
Some tests and diagnostic documentation are also included. --- handy.h | 12 +++++++++ pod/perldiag.pod | 8 ++++++ t/re/pat_advanced.t | 16 +++++++++++- toke.c | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++- 4 files changed, 99 insertions(+), 2 deletions(-)
diff --git a/handy.h b/handy.h index 911deca..d12972d 100644 --- a/handy.h +++ b/handy.h @@ -462,6 +462,18 @@ US-ASCII (Basic Latin) range are viewed as not having any case. #define isALNUM(c) (isALPHA(c) || isDIGIT(c) || (c) == '_') #define isIDFIRST(c) (isALPHA(c) || (c) == '_') #define isALPHA(c) (isUPPER(c) || isLOWER(c)) +/* ALPHAU includes Unicode semantics for latin1 characters. It has an extra + * >= AA test to speed up ASCII-only tests at the expense of the others */ +#define isALPHAU(c) (isALPHA(c) || (NATIVE_TO_UNI((U8) c) >= 0xAA \ + && ((NATIVE_TO_UNI((U8) c) >= 0xC0 \ + && NATIVE_TO_UNI((U8) c) != 0xD7 && NATIVE_TO_UNI((U8) c) != 0xF7) \ + || NATIVE_TO_UNI((U8) c) == 0xAA \ + || NATIVE_TO_UNI((U8) c) == 0xB5 \ + || NATIVE_TO_UNI((U8) c) == 0xBA))) +#define isALNUMU(c) (isDIGIT(c) || isALPHAU(c) || (c) == '_') + +/* continuation character for legal NAME in \N{NAME} */ +#define isCHARNAME_CONT(c) (isALNUMU(c) || (c) == ' ' || (c) == '-' || (c) == '(' || (c) == ')' || (c) == ':' || NATIVE_TO_UNI((U8) c) == 0xA0) #define isSPACE(c) \ ((c) == ' ' || (c) == '\t' || (c) == '\n' || (c) =='\r' || (c) == '\f') #define isPSXSPC(c) (isSPACE(c) || (c) == '\v') diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 95b45f7..e1f02db 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -1457,6 +1457,14 @@ there are neither package declarations nor a C<$VERSION>. long for Perl to handle. You have to be seriously twisted to write code that triggers this error. +=item Deprecated character(s) in \\N{...} starting at '%s' + +(D deprecated) Just about anything is legal for the C<...> in C<\N{...}>. +But starting in 5.12, non-reasonable ones that don't look like names are +deprecated. A reasonable name begins with an alphabetic character and +continues with any combination of alphanumerics, dashes, spaces, parentheses or +colons. + =item Deprecated use of my() in false conditional (D deprecated) You used a declaration similar to C<my $x if 0>. diff --git a/t/re/pat_advanced.t b/t/re/pat_advanced.t index 86735ec..881fd9e 100644 --- a/t/re/pat_advanced.t +++ b/t/re/pat_advanced.t @@ -21,7 +21,7 @@ BEGIN { } -plan tests => 1155; # Update this when adding/deleting tests. +plan tests => 1159; # Update this when adding/deleting tests. run_tests() unless caller; @@ -1065,6 +1065,20 @@ sub run_tests { undef $w; eval 'q(syntax error) =~ /\N{MALFORMED}/'; ok $@ && $@ =~ /Malformed/, 'Verify that malformed utf8 gives an error'; + undef $w; + eval 'q() =~ /\N{4F}/'; + ok $w && $w =~ /Deprecated/, 'Verify that leading digit in name gives warning'; + undef $w; + eval 'q() =~ /\N{COM,MA}/'; + ok $w && $w =~ /Deprecated/, 'Verify that comma in name gives warning'; + undef $w; + my $name = "A\x{D7}O"; + eval "q(W) =~ /\\N{$name}/"; + ok $w && $w =~ /Deprecated/, 'Verify that latin1 symbol in name gives warning'; + undef $w; + $name = "A\x{D1}O"; + eval "q(W) =~ /\\N{$name}/"; + ok ! $w, 'Verify that latin1 letter in name doesnt give warning'; } diff --git a/toke.c b/toke.c index 27cf53e..9251916 100644 --- a/toke.c +++ b/toke.c @@ -3204,7 +3204,70 @@ S_scan_const(pTHX_ char *start) d += len; } SvREFCNT_dec(res); - } + + /* Deprecate non-approved name syntax */ + if (ckWARN_d(WARN_DEPRECATED)) { + bool problematic = FALSE; + char* i = s; + + /* For non-ut8 input, look to see that the first + * character is an alpha, then loop through the rest + * checking that each is a continuation */ + if (! this_utf8) { + if (! isALPHAU(*i)) problematic = TRUE; + else for (i = s + 1; i < e; i++) { + if (isCHARNAME_CONT(*i)) continue; + problematic = TRUE; + break; + } + } + else { + /* Similarly for utf8. For invariants can check + * directly. We accept anything above the latin1 + * range because it is immaterial to Perl if it is + * correct or not, and is expensive to check. But + * it is fairly easy in the latin1 range to convert + * the variants into a single character and check + * those */ + if (UTF8_IS_INVARIANT(*i)) { + if (! isALPHAU(*i)) problematic = TRUE; + } else if (UTF8_IS_DOWNGRADEABLE_START(*i)) { + if (! isALPHAU(UNI_TO_NATIVE(UTF8_ACCUMULATE(*i, + *(i+1))))) + { + problematic = TRUE; + } + } + if (! problematic) for (i = s + UTF8SKIP(s); + i < e; + i+= UTF8SKIP(i)) + { + if (UTF8_IS_INVARIANT(*i)) { + if (isCHARNAME_CONT(*i)) continue; + } else if (! UTF8_IS_DOWNGRADEABLE_START(*i)) { + continue; + } else if (isCHARNAME_CONT( + UNI_TO_NATIVE( + UTF8_ACCUMULATE(*i, *(i+1))))) + { + continue; + } + problematic = TRUE; + break; + } + } + if (problematic) { + char *string; + Newx(string, e - i + 1, char); + Copy(i, string, e - i, char); + string[e - i] = '\0'; + Perl_warner(aTHX_ packWARN(WARN_DEPRECATED), + "Deprecated character(s) in \\N{...} starting at '%s'", + string); + Safefree(string); + } + } + } /* End \N{NAME} */ #ifdef EBCDIC if (!dorange) native_range = FALSE; /* \N{} is defined to be Unicode */
-- 1.5.6.3
0 Replies
|
|
|
[perl #72942] Can't perform unicode operations in Safe compartment
By Kevin Wolf at Feb 20, 2010, 04:52 am UTC
# New Ticket Created by Tim Bunce # Please include the string: [perl #72942] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=72942 > This is a bug report for perl from Tim.Bunce@pobox.com generated with the help of perlbug... More...
# New Ticket Created by Tim Bunce # Please include the string: [perl #72942] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=72942 >
This is a bug report for perl from [email protected: Tim...@pobox.com] generated with the help of perlbug 1.39 running under perl 5.10.1.
----------------------------------------------------------------- [Please describe your issue here]
Basic operations on unicode strings don't work inside a Safe compartment:
perl -MSafe -MOpcode=full_opset -e '$a=Safe->new; $a->permit(full_opset()); $a->reval(q{ pack("U",0xC4) =~ /\\xE4/i; 1 }) or die $@ ' Undefined subroutine Safe::Root0::utf8::SWASHNEW called at (eval 5) line 1
Recent (unrelated) changes to Safe have exposed this problem in PostgreSQL PL/Perl (a high-profile user of Safe). See the pgsql-bugs message http://archives.postgresql.org/pgsql-bugs/2010-02/msg00163.php and the following thread.
The thread includes an outline of what I've learnt from my investigation into the issue.
I developed a patch to Safe that works around the issue by only sharing utf8::SWASHNEW *iff* utf8 is loaded (unconditional sharing doesn't work, see thread).
On reflection though, I think it would be better for Safe to simply *always* require utf8 (and ensure utf8_heavy.pl is run) so it can always share utf8::SWASHNEW. That's not only cleaner because it hides the implementation details of perl unicode, but it also fixes the PostgreSQL problem.
I'll followup this post with a patch that does that.
[Please do not change anything below this line] ----------------------------------------------------------------- --- Flags: category=library severity=high --- Site configuration information for perl 5.10.1:
Configured by timbo at Fri Feb 5 17:36:03 GMT 2010.
Summary of my perl5 (revision 5 version 10 subversion 1) configuration: Commit id: 5348debf9fd57fc15c26529386769684fab96e57 Platform: osname=darwin, osvers=10.2.0, archname=darwin-thread-multi-2level uname='darwin timac.local 10.2.0 darwin kernel version 10.2.0: tue nov 3 10:37:10 pst 2009; root:xnu-1486.2.11~1release_i386 i386 ' config_args='-des -Doptimize=-g -DEBUGGING=both -Accflags=-DDEBUG_LEAKING_SCALARS -Dusethreads -Dusemultiplicity -Duseshrplib -Dusedevel -Uversiononly -Dprefix=/Users/timbo/pg/perl5101' hint=recommended, useposix=true, d_sigaction=define useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=undef, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-fno-common -DPERL_DARWIN -no-cpp-precomp -DDEBUG_LEAKING_SCALARS -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -I/opt/local/include', optimize='-g', cppflags='-no-cpp-precomp -fno-common -DPERL_DARWIN -no-cpp-precomp -DDEBUG_LEAKING_SCALARS -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -I/opt/local/include' ccversion='', gccversion='4.2.1 (Apple Inc. build 5646)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' -fstack-protector -L/usr/local/lib -L/opt/local/lib' libpth=/usr/local/lib /opt/local/lib /usr/lib libs=-lgdbm -ldbm -ldl -lm -lutil -lc perllibs=-ldl -lm -lutil -lc libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true, libperl=libperl.dylib gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup -L/usr/local/lib -L/opt/local/lib -fstack-protector'
Locally applied patches:
--- @INC for perl 5.10.1: /Users/timbo/pg/perl5101/lib/5.10.1/darwin-thread-multi-2level /Users/timbo/pg/perl5101/lib/5.10.1 /Users/timbo/pg/perl5101/lib/site_perl/5.10.1/darwin-thread-multi-2level /Users/timbo/pg/perl5101/lib/site_perl/5.10.1 .
--- Environment for perl 5.10.1: DYLD_LIBRARY_PATH=/usr/local/jogl-2.0-macosx-universal/lib::/opt/local/lib/mysql5/mysql:/Users/timbo/perl6/parrot/blib/lib HOME=/Users/timbo LANG=en_IE.UTF-8 LANGUAGE (unset) LC_ALL=en_IE.UTF-8 LD_LIBRARY_PATH (unset) LOGDIR (unset) PATH=/usr/local/pgsql/bin:/Users/timbo/pg/perl5101/bin:/Users/timbo/pg/perl5100/bin:/Users/timbo/pg/perl598/bin:/Users/timbo/pg/perl5088/bin:/usr/local/bin:/opt/local/bin:/usr/bin:/bin:/opt/local/sbin:/usr/sbin:/sbin:/Users/timbo/bin PERLCRITIC=/Users/timbo/.setdev/perlcriticrc PERLTIDY=/Users/timbo/.setdev/perltidyrc PERL_BADLANG (unset) SHELL=/bin/bash
2 Replies
|
|
|
Perl 5 Commit Summary
By Nicholas Clark at Feb 20, 2010, 02:08 am UTC
Perl 5 commit summary, activity since Saturday Current branch blead 12 commits. 6 unique authors. 6 unique committers. 34 files changed, 806 insertions(+), 351 deletions(-) Snapshot: http://perl5.git.perl.org/perl.git/snapshot/34861f291d6c5483.tar.gz Update CPANPLUS to cpan version 0.89_05 Chris... More...
Perl 5 commit summary, activity since Saturday
Current branch blead 12 commits. 6 unique authors. 6 unique committers. 34 files changed, 806 insertions(+), 351 deletions(-) Snapshot: http://perl5.git.perl.org/perl.git/snapshot/34861f291d6c5483.tar.gz
Update CPANPLUS to cpan version 0.89_05 Chris Williams 7 files changed, 79 insertions(+), 5 deletions(- http://perl5.git.perl.org/perl.git/commit/34861f291d6c5483
Better wording for the hash ~~ array docs Rafael Garcia-Suarez 1 file changed, 2 insertions(+), 2 deletions(-) http://perl5.git.perl.org/perl.git/commit/a8b2c106f7c4e82c
add an elipses to string/ref warnings when str longer than 32 chars Yves Orton 4 files changed, 13 insertions(+), 5 deletions(- http://perl5.git.perl.org/perl.git/commit/9134ea20ecf6c7a8
refine the documentation for deleting branches and altering history Yves Orton 1 file changed, 43 insertions(+), 19 deletions(- http://perl5.git.perl.org/perl.git/commit/2699d6345b651c48
Hashed out a prose description of the (largely existing) branching and topic Jesse Vincent 1 file changed, 38 insertions(+), 0 deletions(-) http://perl5.git.perl.org/perl.git/commit/ce2a8773749b6722
mg.c uses a fixed NGROUPS contant [email protected: perlbug-fol...@perl.org] 1 file changed, 9 insertions(+), 1 deletion(-) http://perl5.git.perl.org/perl.git/commit/fb4089e0451edf57
disable non-unicode case insensitive trie matching Yves Orton 3 files changed, 19 insertions(+), 19 deletions( http://perl5.git.perl.org/perl.git/commit/0abd0d78a73da1c4
Rename to Porting/perldelta_template.pod so that t/porting/podcheck.t covers Nicholas Clark 3 files changed, 281 insertions(+), 281 deletion http://perl5.git.perl.org/perl.git/commit/fe88edf0c4ada423
Note that F<ext/> has become F<cpan/>, F<dist/> and F<ext/> Nicholas Clark 1 file changed, 5 insertions(+), 5 deletions(-) http://perl5.git.perl.org/perl.git/commit/42a0894d700dde35
In S_pending_ident(), only call gv_fetchpvn_flags() if the warning is enable Nicholas Clark 1 file changed, 5 insertions(+), 4 deletions(-) http://perl5.git.perl.org/perl.git/commit/d824713b62f02cde
Make defined %hash on a non-lexical (also) generate a deprecated warning. Nicholas Clark 5 files changed, 34 insertions(+), 18 deletions( http://perl5.git.perl.org/perl.git/commit/d47e1c27dd43d7b7
Add perl5112delta, and change 5111delta from being "the" perldelta. Nicholas Clark 10 files changed, 300 insertions(+), 14 deletion http://perl5.git.perl.org/perl.git/commit/d5114285ea0d40a3
New branch remove-toke-package-defined-hack 2 commits. 1 unique author. 1 unique committer. Snapshot: http://perl5.git.perl.org/perl.git/snapshot/2bf30462af80561c.tar.gz
Re-instate the use of gv_stashpvn_flags(), and the correct non-boolean argum Nicholas Clark 1 file changed, 5 insertions(+), 4 deletions(-) http://perl5.git.perl.org/perl.git/commit/2bf30462af80561c
Remove the tokeniser hack that prevents compile-time vivification of %stash: Nicholas Clark 2 files changed, 9 insertions(+), 27 deletions(- http://perl5.git.perl.org/perl.git/commit/1352e35eb982c6b3
35 Replies
|
|
|
PATCH: Add X flag to embed.fnc entries
By karl williamson at Feb 20, 2010, 12:18 am UTC
Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit As suggested by Jan. (I notice there are entries there that don't have X even though they have the E) Content-Type: text/x-patch; name="0003-Add-X-flag-to-embed.fnc-entries.patch" Content-Transfer-Encoding:... More...
--------------040007030806060206050105 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit
As suggested by Jan. (I notice there are entries there that don't have X even though they have the E)
--------------040007030806060206050105 Content-Type: text/x-patch; name="0003-Add-X-flag-to-embed.fnc-entries.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="0003-Add-X-flag-to-embed.fnc-entries.patch"
>From b98b80ea6064cbeac9888815ce8bec76e19e1699 Mon Sep 17 00:00:00 2001 From: Karl Williamson <khw@khw-desktop.(none)> Date: Fri, 19 Feb 2010 17:12:20 -0700 Subject: [PATCH] Add X flag to embed.fnc entries.
It has been pointed out that the E flag should be accompanied by the X flag, and is not for these recently changed entries. --- embed.fnc | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/embed.fnc b/embed.fnc index 7a734c7..0e4ec03 100644 --- a/embed.fnc +++ b/embed.fnc @@ -165,7 +165,7 @@ npR |MEM_SIZE|malloc_good_size |size_t nbytes AnpR |void* |get_context Anp |void |set_context |NN void *t -EpRnP |I32 |regcurly |NN const char *s +EXpRnP |I32 |regcurly |NN const char *s END_EXTERN_C @@ -575,16 +575,16 @@ ApR |bool |is_utf8_print |NN const U8 *p ApR |bool |is_utf8_punct |NN const U8 *p ApR |bool |is_utf8_xdigit |NN const U8 *p ApR |bool |is_utf8_mark |NN const U8 *p -EpR |bool |is_utf8_X_begin |NN const U8 *p -EpR |bool |is_utf8_X_extend |NN const U8 *p -EpR |bool |is_utf8_X_prepend |NN const U8 *p -EpR |bool |is_utf8_X_non_hangul |NN const U8 *p -EpR |bool |is_utf8_X_L |NN const U8 *p -EpR |bool |is_utf8_X_LV |NN const U8 *p -EpR |bool |is_utf8_X_LVT |NN const U8 *p -EpR |bool |is_utf8_X_LV_LVT_V |NN const U8 *p -EpR |bool |is_utf8_X_T |NN const U8 *p -EpR |bool |is_utf8_X_V |NN const U8 *p +EXpR |bool |is_utf8_X_begin |NN const U8 *p +EXpR |bool |is_utf8_X_extend |NN const U8 *p +EXpR |bool |is_utf8_X_prepend |NN const U8 *p +EXpR |bool |is_utf8_X_non_hangul |NN const U8 *p +EXpR |bool |is_utf8_X_L |NN const U8 *p +EXpR |bool |is_utf8_X_LV |NN const U8 *p +EXpR |bool |is_utf8_X_LVT |NN const U8 *p +EXpR |bool |is_utf8_X_LV_LVT_V |NN const U8 *p +EXpR |bool |is_utf8_X_T |NN const U8 *p +EXpR |bool |is_utf8_X_V |NN const U8 *p : Used in perly.y p |OP* |jmaybe |NN OP *o : Used in pp.c
-- 1.5.6.3
--------------040007030806060206050105--
0 Replies
|
|
 | |