perl5261cdelta - what is new for cperl v5.26.1
This document describes the differences between the cperl 5.26.0c and the cperl 5.26.1c releases.
If you are upgrading from an earlier release such as v5.24.2c, first read the perl5260cdelta documentation, which describes differences between v5.24.2c and v5.26.0c
Optimized method lookup on classes
hv_common()
can use combined HV_FETCH_ISEXISTS
, which just skips the restricted stash error on classes.
Now again with the same speed as before 5.24.0c, using a single method hash lookup, not two.
'0' is a valid name for an archive, change 'iter' to check definedness. See https://metacpan.org/changes/distribution/Archive-Tar
Add non-destructive $cv->PUREGV method, which does not create a GV from a CvNAMED $cv. Warning: $cv->GV does create a GV from a CvNAMED $cv.
Protect from destructive $cv->GV, renamed is_lexsub to is_named, allow @0, &0, ... types.
Deprecated from CORE, will not be in 5.30 anymore. Avoid destructive CvNAMED vivification to GVs. Add cperl features.
MSVC 14.0 support and higher, changed nan in the runtime.
Support strict hashpairs, fix for . in @INC.
Add #if { CPERL && VERSION
5.26.0 }> support, support parser enum expectation.
Skip the flapping test t/Aliases.t on threaded smokers, with random segfaults. This is a long standing core bug, with PMOP aliases or clone. First observed at https://github.com/rurban/perl-compiler/issues/73 (since 5.6)
Stop directory tweaking $Encode::Encoding{utf8}
Fix gcc warnings for older gcc < 4.0
Where possible do not depend on value of $@, instead use return value of eval
Fix more XS problems in Encode.xs file
Load modules Encode::MIME::Name and Storable normally
Remove no warnings 'redefine'; and correctly loaddependences
Remove PP stubs and reformat predefine_encodings()
Run Encode XS BOOT code at compile time
Use Encode::define_encoding and propagate carp/croak message
cperl fixes: encoding undeprecated, no strict hashpairs
Cleanup code for handling fallback/replacement characters
Fix C++ compiler detection (RT #131749)
- Fix tests for when perl path contains a space
- Fix win32 check
- 'make -s' support: set $INSTALL_QUIET automatically
- Optimisations:
* use our instead of vars
* lazy load modules
* make OS variables into constants
* move some calculations out of a loop
- Removed instructions using Build.PL from README
- Load Win32API::File for _move_file_at_boot only when needed
- Allow disabling autosplit by omitting autosplit dir
Merge our fixes to upstream 7.30 (which has e.g. the dlltool mingw fixes). Many fixes were already in, but some new upstream bugs crept in.
Support IO::Scalar handle as $parsefile argument to ExtUtils::MM_Unix::parse_version().
fix Invalid Locale symbol name. Invalid identifier "ENCODING_UTF-8" while "strict names"
fix XSMULTI static with strict linkers, avoid duplicate symbol _boot_XS__Test in: Test.o blib/arch/auto/XS/Test/Test.a(Test.o)
xsstatic: fixup MAKE_APERL_FILE, which was Makefile.aperl.aperl
Moved xs pods still missing from the CPAN release completely to core.
Bump versions.
Remove erroneous documentation. Correct skip count for Windows. Comment out two TODO tests. Make subdirectory names used in tests more random.
Bumped version from unparsable 3.3.65, which prevented e.g. File::chdir to install.
Various small documentation fixes. Swap out base.pm use for parent.pm. Remove use of deprecated \C regex feature. Filter::Simple was erroneously signalling eof if it encountered a ‘no MyFilter’ right after ‘use’: use MyFilter; no MyFilter; In this case it should simply not filter anything.
Fix bug https://rt.cpan.org/Ticket/Display.html?id=120231.
Fix bug https://rt.cpan.org/Ticket/Display.html?id=120300. Unfortunately, this withdraws a small part of fix 114999. GNU getopt_long()
does not accept the (optional) argument to be passed to the option without =
sign. We do, since not doing so breaks existing scripts.
Provide a default value for options (gnu_compat mode). Thanks to Andrew Gregory.
Bump versions of 3 Socket modules.
Added wait_loop_callback for run_forked()
Only search in curdir in can_run() when on Win32 RT#105601
Various, see https://metacpan.org/changes/distribution/JSON-PP
Fixed the default error condition in legacy modules.
Fix problem with second operand being changed in multiplication (CPAN RT #121139).
Skip flapping, timer-sensitive t/expmod_t.t tests on Travis CI.
Fix ping_udp for a started udp echo server (PR#5 by Stephan Loyd)
Fix t/400_ping_syn.t phases
Try to handle Windows Socket::getnameinfo errors
Improve some tests on missing network connections
Add security usage note to File::Spec::no_upwards white space change so can compile under C++11 Protect modules also from . in @INC [perl #127384] (CVE-2016-1238)
Bump version
Bump version
mingw fix: use safe defaults, not segfaulting defaults. mingw fails on the stacksize binary search, leaving it empty.
Fix Clang macro backward compatibility per patch by Andy Grundman. Keep the old better doc. Keep our modglobal fix in global destruction from 2.12_01.
Fix Clang macro backward compatibility per patch by Andy Grundman. RT #131124 Memory allocation fix.
upstream:
add more potential clock constants, like CLOCK_MONOTONIC_FAST (available in FreeBSD), and not all potentially found clock constants were properly exported to be available from Perl, see your system's clock_gettime() documentation for the available ones
correct declared minimum Perl version (should be 5.6, was declared as 5.8 since 1.9727_03): blead af94b3ac
merged with our cperl test fixes. See https://github.com/rurban/Time-HiRes/tree/cperl
Bump version
Fix xsubpp warnings
Moved from dist/ExtUtils-ParseXS to core pod/, as the upstream CPAN releases do not contain them anymore.
Added support for the pgcc pgi compiler http://www.pgroup.com/. pgcc is very slow though. pgcc -O2 is 40% slower than gcc-6 -O3, pgcc -fast 30% slower. [cperl #279].
inc_version_list
skips now older development versions. It only includes older non-devel versions with even numbers. See [cperl #284]
-Dusedevel
is needed to be added to all development versions anymore, it is now the default on such. A big warning is still being displayed, even in the usual silent auto mode -des
. See [cperl #283]
Add support for -d DESTDIR
, e.g. after
make -s -j4 install DESTDIR=$HOME/cperl-inst
cd $HOME/cperl-inst/usr/local/bin &&
./cperl cperlivp -p -d $HOME/cperl-inst
See [cperl #305]
Fixed Porting/cmpVERSION.pl resp. t/porting/cmp_version.t
cygwin: loose file stat tests for AdminUsers
cperl on mingw was previously unsupported and didn't compile nor work.
The plan is to use mingw 32bit and 64bit packages instead of MSVC compiled packages, which do require a special MS runtime DLL.
Fixed invalid check_type_and_open macro on mingw miniperl.
Fixed upstream mkstemp API changes.
getcwd is deprecated on Windows. use _getcwd() instead.
Removed the broken dlltool, which corrupted 64bit DLL's for years. In our case Cpanel::JSON::XS and Unicode::Normalize. Just use gcc
to create dll's and import libs, as in cygwin.
Added version specific gcc config values.
The default mingw configs were extremely defensive and slow. Even gcc-2.95.3 settings were disabled. Now several modern builtins and attributes are used.
Fixed the wrong d_u32align
default, which caused Digest::MD5 to crash.
Fixed BUILTIN_*_OVERFLOW
macros for mingw64, which uses long long for normal IV/UV on win64.
Removed the version suffix from the importlib which is the entry for $Config{libperl}
. -lcperl
works now for the compiler and embedders. Just keep the version on MSVC, e.g. cperl526.lib, as this had special logic in perlcc already.
Improved t/run/switchDBG.t for -D''
and -T
tests.
Fixed building of the extensions with the Extensions_normalize target.
Switched from C:\MinGW to C:\Strawberry\c as default CCHOME prefix. This is much more stable on 64bit, and easier to setup.
The compiler perlcc only works with very simple programs under mingw yet. With dynaloaded XS modules it usually fails.
Support method lookup from classes, i.e. restricted stashes. Fix "Attempt to access disallowed key" error message with named hashes, i.e. stashes. Backported from 5.27.1c.
Fixed signature corruption with skip'ed arguments without default and with 0, 1, undef or op defaults, such as in sub func ($, $=0, $=1, $=2, $=do{$i++} $="foo", $a="bar", $b="zoot")
, with the first $
, the 2nd $=0
, the 3rd $=1
and the 5th $=do{}
argument. cperl-only. Backported from 5.27.1c.
Harmonized TOKENBUF_SIZE and stack buf sizes
The max identifier length depends on the max tokenbuf size, which went from 256 in perl5 to 1024 in cperl, mostly to speed up parsing with a larger parser buffer. A few places still had hardcoded 256 tmpbuf sizes, which led to wrong error messages. See [cperl #293]. Backported from 5.27.1c.
Fixed one place in ck_sort
for utf8 lexical variable names, which passed the unneeded UTF8 flag to pad_findmy_pvn()
. In cperl all pads are normalized UTF8 for faster searches, the flag argument must be 0. See [cperl #293]. Backported from 5.27.1c.
Fix regex stack recursion overflow with DEBUGGING
This is a regression since 5.26 (also in upstream perl5). Without DEBUGGING it failed with the error message "Unmatched ( in regex", now with more than 5000 open parens it will fail with the same error message. This would be security relevant if one would use a DEBUGGING perl in production as one can construct a pattern which writes arbitrary values to the stack, similar to the Storable ([cperl #257], [cpan #97526]) stack overflow and the old 5.10 regex stack overflow attack. See [cperl #293]. Backported from 5.27.1c.
Fix NULL sv dereference in formline (for ^*) chop fallthrough to FF_DECIMAL
. Coverity CID 165362
Backported from 5.27.2.
Fixed sub rettype. When the sub decl return type attribute is a coretype set it. cperl-only. Backported from 5.27.1c.
Fixed wrong "Don’t stringify GV in numeric cx outside warnings scope" optimization from 5.18, which fails with code like $* += (** = 0)
. See [cperl #299]. Backported from 5.27.1c.
Added missing arity check to readline
. E.g. readline(1,2,3)
errors now. Backported from 5.27.1c.
Attempting to apply an attribute to an our
variable where a function of that name already exists could result in a NULL pointer being supplied where an SV was expected, crashing perl. See [perl #131597]. Backported from 5.27.1c.
cperl 5.26.1c represents approximately 3 months of development since cperl 5.26.0c and contains approximately 20,000 lines of changes across 170 files from 6 authors.
Excluding auto-generated files, documentation and release tools, there were approximately 1,400 lines of changes to 76 .pm, .t, .c and .h files.
The following people are known to have contributed the improvements that became cperl 5.26.1c:
Reini Urban, Tony Cook, William N. Braswell, Jr, vendethiel, Aaron Crane.
The list above is almost certainly incomplete as it is automatically generated from version control history. In particular, it does not include the names of the (very much appreciated) contributors who reported issues to the Perl bug tracker.
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.
For a more complete list of all of Perl's historical contributors, please see the AUTHORS file in the Perl source distribution.
Generated with:
cperl Porting/acknowledgements.pl cperl-5.26.0..HEAD
If you find what you think is a bug, you might check the articles recently posted to the comp.lang.perl.misc newsgroup and the perl bug database at https://rt.perl.org/ . There may also be information at http://www.perl.org/ , the Perl Home Page.
If you believe you have an unreported bug, please run the cperlbug program included with your release. Be sure to trim your bug down to a tiny but sufficient test case. Your bug report, along with the output of perl -V
, will be sent off to perlbug@perl.org to be analysed by the Perl porting team.
If you think it's a cperl specific bug or trust the cperl developers more please file an issue at https://github.com/perl11/cperl/issues.
If the bug you are reporting has security implications which make it inappropriate to send to a publicly archived mailing list, then see "SECURITY VULNERABILITY CONTACT INFORMATION" in perlsec For details of how to report the issue.
The Changes file for an explanation of how to view exhaustive details on what changed.
The INSTALL file for how to build Perl.
The README file for general stuff.
The Artistic and Copying files for copyright information.