-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathperl5240cdelta.html
908 lines (570 loc) · 35.2 KB
/
perl5240cdelta.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>perl5240cdelta - what is new for cperl v5.24.0</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:[email protected]" />
</head>
<body>
<ul id="index">
<li><a href="#NAME">NAME</a></li>
<li><a href="#DESCRIPTION">DESCRIPTION</a></li>
<li><a href="#Core-Enhancements">Core Enhancements</a></li>
<li><a href="#Core-Enhancements-from-Perl5">Core Enhancements from Perl5</a></li>
<li><a href="#Security">Security</a>
<ul>
<li><a href="#DynaLoader-format-string-hardening">DynaLoader format string hardening</a></li>
<li><a href="#No-Unicode-confusables-UFFA0-U3164">No Unicode confusables +UFFA0, +U3164</a></li>
<li><a href="#XSLoader-relative-paths-with-eval-or-line">XSLoader relative paths with eval or #line</a></li>
</ul>
</li>
<li><a href="#Modules-and-Pragmata">Modules and Pragmata</a>
<ul>
<li><a href="#New-Modules-and-Pragmata">New Modules and Pragmata</a></li>
<li><a href="#Updated-Modules-and-Pragmata">Updated Modules and Pragmata</a></li>
<li><a href="#Not-Updated-Modules-and-Pragmata">Not Updated Modules and Pragmata</a></li>
</ul>
</li>
<li><a href="#Diagnostics">Diagnostics</a>
<ul>
<li><a href="#New-Diagnostics">New Diagnostics</a>
<ul>
<li><a href="#New-Errors">New Errors</a></li>
<li><a href="#New-Warnings">New Warnings</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#Platform-Support">Platform Support</a>
<ul>
<li><a href="#Platform-Specific-Notes">Platform-Specific Notes</a></li>
</ul>
</li>
<li><a href="#Internal-Changes">Internal Changes</a></li>
<li><a href="#Selected-Bug-Fixes">Selected Bug Fixes</a></li>
<li><a href="#Acknowledgements">Acknowledgements</a></li>
<li><a href="#Reporting-Bugs">Reporting Bugs</a></li>
<li><a href="#SEE-ALSO">SEE ALSO</a></li>
</ul>
<h1 id="NAME">NAME</h1>
<p>perl5240cdelta - what is new for cperl v5.24.0</p>
<h1 id="DESCRIPTION">DESCRIPTION</h1>
<p>This document describes perl-only differences between the cperl 5.22.3 release and the cperl 5.24.0 release.</p>
<h1 id="Core-Enhancements">Core Enhancements</h1>
<ul>
<li><p>Keep the lexical topic feature</p>
<p>Undo the removal of lexical topic. We fixed that in 5.22.2c already, and it is critically needed for given/when, smartmatch. Had to change pp_entergiven a bit, storing NULL for defgv_save in the givwhen block. See <a href="https://github.com/perl11/cperl/issues/168">[cperl #168]</a> and <a href="https://github.com/perl11/cperl/issues/137">[cperl #137]</a>.</p>
</li>
<li><p>Proper signatures</p>
<p>Support builtin and efficient signatures, with types and references (call-by-ref). goto to a signatured function is now a true tail call, reusing the old padframe variables without copying.</p>
<p>See <a href="/cperl/perlsub.html#Signatures">"Signatures" in perlsub</a> and <a href="/cperl/perlfunc.html#prototype">"prototype" in perlfunc</a>.</p>
<p>The <code>prototype</code> function returns the parsed string of a declared signature if no prototype attribute overrides it.</p>
<p>The <code>@_</code> array inside a function body with a signature is empty. With default parameters there's is currently no way to find out how many actual arguments were provided, and how many were filled out with defaults. <a href="https://github.com/perl11/cperl/issues/7">[cperl #7]</a> <a href="https://github.com/perl11/cperl/issues/134">[cperl #134]</a></p>
<p>Many subroutines of the form <code>my ($args...) = @_;</code> are automatically converted via <a href="/cperl/lib/fake_signatures.html">fake_signatures</a> to use signatures internally.</p>
</li>
<li><p>Proper tailcalls</p>
<p>goto to a subroutine with signature is now a proper tailcall, and does not create a new pad frame.</p>
<p>All 4 variants of tailcalls, no-sigs from and to sigs are covered.</p>
</li>
<li><p>Less experimental needed</p>
<p>Remove the previously required use experimental for <code>lexical_topic</code>, <code>smartmatch</code>. <code>given</code>/<code>when</code> is now standard cperl syntax.</p>
<p>Note that <code>postderef</code> and <code>autoderef</code> were removed by perl5.</p>
</li>
<li><p>Improved fast arithmetic</p>
<p>The compile-time <code>u_{add,subtract,multiply}</code> op variants for constant folding have now proper overflowing behaviour, and are now also used with 32bit. <a href="https://github.com/perl11/cperl/issues/2">[cperl #2]</a></p>
</li>
<li><p>keep CxFOREACHDEF removed with perl-5.24.0</p>
<p>API macro to check for a loop with default var (gv or pad <code>$_</code>). Added with 5.9.3 by Robin Houston when he added given/when. Deleted with 5.24.0, without any deprecation or mention.</p>
</li>
<li><p>2 new OP members</p>
<p><code>op_rettype</code> was added and <code>op_typechecked</code> taken from a spare bit.</p>
</li>
<li><p>many new public symbols needed for the compiler</p>
<p>unshare_hek, mro_isa_changed_in, sv_clean_objs, win32_wait_for_children, PerlIO_cleanup, PerlIO_destruct</p>
<p>Fixed the generated perldll.def (makedef.pl)</p>
</li>
<li><p>better -Dt tracing</p>
<p>Many ops print now their arguments: signature, padrange, entersub, enterxssub, method_named, goto.</p>
</li>
<li><p>auto-created coretypes on demand</p>
<p>The parser now knows about our coretypes, and auto-creates them on demand. This saves initialization time and memory a bit, and avoids regression errors when walking our protected readonly packages, even in code which does not use coretypes. <a href="https://github.com/perl11/cperl/issues/133">[cperl #133]</a></p>
</li>
<li><p>-flto support with ~10-20% performance win</p>
<p>i.e. <code>-Dcc='gcc-6 -O2 -flto'</code> or even <code>clang-3.9 -O2 -flto=thin</code> is 38% faster than normal perl5, compared to only 27% without <code>-flto</code>.</p>
<p>Added the <code>d_attribute_used</code> probe from <a href="https://rt.perl.org/Public/Bug/Display.html?id=125096">[perl #125096]</a>.</p>
<p>However <code>clang-mp-3.9 -fsanitize=cfi -flto=thin -fvisibility=hidden</code> fails in <code>setenv()</code> when linking <i>miniperl</i> still. <code>gcc-6 -flto=thin -fvisibility=hidden</code> fails with many hidden symbols. And on darwin wrong compiler warnings are thrown, like ld: warning: object file (<i>/var/.../cc-502b6c.o</i>) was built for newer OSX version (10.11) than being linked (0.5.180).</p>
</li>
</ul>
<h1 id="Core-Enhancements-from-Perl5">Core Enhancements from Perl5</h1>
<p>Backported some fixes from p5p, merged with perl-5.24.0. <a href="https://github.com/perl11/cperl/issues/137">[cperl #137]</a></p>
<ul>
<li><p>~20% performance improvements with a CX context system rewrite</p>
</li>
<li><p>DESTROY cache moved back from the stash to mro_meta</p>
<p>So we don't need our special B::SvSTASH fixes anymore.</p>
</li>
</ul>
<h1 id="Security">Security</h1>
<h2 id="DynaLoader-format-string-hardening">DynaLoader format string hardening</h2>
<p>Replace all <code>%</code> characters in user-controlled library filenames, passed via the system dl_error call verbatim to <code>printf</code>, without any arguments on the stack, which could lead to execution of arbitrary stack code. No CVE. This affects all systems with dynamic loading where the attacker can cause a dynamic loading error.</p>
<p>CVSSv2 Severity: 7.2 (AV:L/AC:L/Au:N/C:C/I:C/A:C/E:U/RL:OF/RC:C/CDP:MH/TD:H/CR:H/IR:H/AR:ND)</p>
<h2 id="No-Unicode-confusables-UFFA0-U3164">No Unicode confusables +UFFA0, +U3164</h2>
<p>In deviation from Unicode 1.1 we treat the two HANGUL FILLER characters +UFFA0 and +U3164 not as valid ID_Start and ID_Continue characters for perl identifiers. Variable and package names may not begin with them and may not contain them.</p>
<p>They are usually rendered as whitespace, and would lead to classic TR39 confusables. See <a href="https://github.com/jagracey/Awesome-Unicode#user-content-variable-identifiers-can-effectively-include-whitespace">https://github.com/jagracey/Awesome-Unicode#user-content-variable-identifiers-can-effectively-include-whitespace</a> and <a href="http://www.unicode.org/reports/tr39/">http://www.unicode.org/reports/tr39/</a>.</p>
<p>In a more Korean friendly environment, we could check for a ID_Start Hangul filler if the next character is a valid Hangul ID_Continue character, and allow it then. Ditto for a ID_Continue Hangul filler if the previous and next character is a valid Hangul ID_Start or ID_Continue character, and allow it then. But those fillers should be treated as whitespace, and should be ignored.</p>
<p><a href="http://www.unicode.org/L2/L2006/06310-hangul-decompose9.pdf">http://www.unicode.org/L2/L2006/06310-hangul-decompose9.pdf</a> explains:</p>
<p><i>The two other hangul fillers HANGUL CHOSEONG FILLER (Lf), i.e. lead filler, and HANGUL JUNGSEONG FILLER (Vf) are used as placeholders for missing letters, where there should be at least one letter.</i></p>
<p><i>... that leaves the (HALFWIDTH) HANGUL FILLERs useless. Indeed, they should not be rendered at all, despite that they have been given the property Lo. Note that these FILLERs are also given the property of Default_Ignorable_Codepoint.</i></p>
<p><i>Note that the standard normal forms NFKD and NFKC ... return (in all views) incorrect results for strings containing these characters.</i></p>
<h2 id="XSLoader-relative-paths-with-eval-or-line">XSLoader relative paths with eval or #line</h2>
<p>Upstream XSLoader 0.22 (perl 5.26) fixed a minor security problem with XSLoader within eval or with a #line directive, which can load a local relative shared library, which is not in <code>@INC</code>. See <a href="https://rt.cpan.org/Ticket/Display.html?id=115808">[cpan #115808]</a>.</p>
<p>cperl XSLoader was already protected against the eval case since 5.22, when being rewritten in C. cperl-5.24.0 fixed now also ignoring a relative filename in a <code>#line</code> directive, when the relative path is not in <code>@INC</code>.</p>
<h1 id="Modules-and-Pragmata">Modules and Pragmata</h1>
<h2 id="New-Modules-and-Pragmata">New Modules and Pragmata</h2>
<dl>
<dt id="fake_signatures-0.01">fake_signatures 0.01</dt>
<dd>
<p>Prohibit the automatic conversion to fake signatures via <code>no fake_signatures</code>, and document the new conversion of argument handling to fake signatures. See <a href="/cperl/lib/fake_signatures.html">fake_signatures</a>.</p>
</dd>
</dl>
<h2 id="Updated-Modules-and-Pragmata">Updated Modules and Pragmata</h2>
<p>Many internal core modules are now half-way "modernized", i.e. use typed signatures, and catch errors at compile-time. <a href="https://github.com/perl11/cperl/issues/97">[cperl #97]</a></p>
<p>But no classes, methods and roles yet.</p>
<dl>
<dt id="XSLoader-1.02c">XSLoader 1.02c</dt>
<dd>
<p>Fixed the <code>#line relativefilename</code> part of the <a href="https://rt.cpan.org/Ticket/Display.html?id=115808">[cpan #115808]</a> security problem, the <code>(eval 1)</code> part was already fixed in the cperl rewrite as XS.</p>
<p>Ensure that the local stash filename part is absolute and ends with <code>/</code>, the part before "auto/" and before the fallback to the DynaLoader search.</p>
</dd>
<dt id="Net::Cmd">Net::Cmd</dt>
<dd>
<p>Fixed utf8 handling, suse <a href="https://bugzilla.opensuse.org/show_bug.cgi?id=493978">[bnc#493978]</a></p>
<p>Note that libnet has hundreds of more <a href="https://rt.cpan.org/Dist/Display.html?Name=libnet">open tickets</a></p>
</dd>
<dt id="Pod::Perldoc">Pod::Perldoc</dt>
<dd>
<p>Favor nroff over groff, suse perl-nroff.diff [bnc#463444]</p>
</dd>
<dt id="Socket-2.021_02">Socket 2.021_02</dt>
<dd>
<p>Silence some CC warnings</p>
<p>Fix my to our $XS_VERSION</p>
<p>Check for max length before derefing by length (jhi) <a href="https://rt.cpan.org/Ticket/Display.html?id=111707">[cpan #111707]</a></p>
</dd>
<dt id="DynaLoader-2.04c">DynaLoader 2.04c</dt>
<dd>
<p>See <a href="#DynaLoader-format-string-hardening">"DynaLoader format string hardening"</a> above.</p>
</dd>
<dt id="B::C-1.54_08">B::C 1.54_08</dt>
<dd>
<p>Many Windows and cygwin fixes, for the old MSVC compiler, and PERL_CORE test integration. Use many new core exports needed for windows.</p>
<p>Update perlcc to 2.21, handle multiple -I and -L arguments.</p>
<p>Handle cperl OP_SIGNATURE.</p>
<p>Fix refcount of cop hints hashes with 5.22-nt <a href="https://github.com/perl11/cperl/issues/220">[cperl #220]</a></p>
<p>Better UVX L and U suffices.</p>
<p>Handle shared IV and UV xpv structs, fixed 5.24 specific assertions, with shared xpviv/xpvuv. fixed wrong 32 bit ptr offset. re-enabled all 32bit tests.</p>
<p>Handle changed subdirs-test target with newer EUMM.</p>
</dd>
<dt id="B::Deparse-1.37_02c">B::Deparse 1.37_02c</dt>
<dd>
<p>Add more cperl-specific ops: <code>aelem*_u</code>, <code>u_{add,subtract,multiply}</code>, <code>{i,n,s}_aelem{,_u}</code></p>
</dd>
<dt id="Test::Simple-1.401014c">Test::Simple 1.401014c</dt>
<dd>
<p>Based on 1.001014, not Test2 as in 1.302022 yet. Test2 breaks too many modules still, and I need to time to properly modernize it (as v2.x)</p>
<p>Modernized and stricter type checks. <b>skip</b> does the switched argument check at compile-time. See the FAQ at <a href="http://perl11.github.io/cperl/STATUS.html">http://perl11.github.io/cperl/STATUS.html</a> why we enforce stricter types there.</p>
<p>Enable <i>t/is_deeply_with_threads.t</i></p>
</dd>
<dt id="File-Path-3.12_01c">File-Path 3.12_01c</dt>
<dd>
<p>Modernized. Enforce many str types.</p>
</dd>
<dt id="PathTools-4.63c">PathTools 4.63c</dt>
<dd>
<p>Modernized. Enforce many str types.</p>
<p>Enable XS prototypes and suppress warnings. <a href="https://github.com/perl11/cperl/issues/152">[cperl #152]</a></p>
<p>Disallow the optional getcwd argument (5.8.5 problem). Cannot be called as method.</p>
</dd>
<dt id="Pod-Simple-4.30c">Pod-Simple 4.30c</dt>
<dd>
<p>Modernized</p>
</dd>
<dt id="Pod-Html-2.22c">Pod-Html 2.22c</dt>
<dd>
<p>Modernized</p>
</dd>
<dt id="bignum-0.42c">bignum 0.42c</dt>
<dd>
<p>Modernized</p>
</dd>
<dt id="bigint-0.43c">bigint 0.43c</dt>
<dd>
<p>Modernized. Fixed deprecated usage of ::binf, ::bnan as function.</p>
</dd>
<dt id="bigrat-0.42c">bigrat 0.42c</dt>
<dd>
<p>Modernized</p>
</dd>
<dt id="CPAN">CPAN</dt>
<dd>
<p>Fixed tests. Type skip calls and File-Path args.</p>
<p>Change FirstTime yaml_module default from YAML to YAML::XS and prohibit the unsupported CPAN::Meta::YAML.</p>
</dd>
<dt id="ExtUtils-MakeMaker">ExtUtils-MakeMaker</dt>
<dd>
<p>Type File-Path args.</p>
<p>Fix ExtUtils::Liblist::Kid for systemlib symlinks, esp. on darwin.</p>
</dd>
<dt id="Parse-CPAN-Meta-1.5000c">Parse-CPAN-Meta 1.5000c</dt>
<dd>
<p>Modernized. str type for skip</p>
</dd>
<dt id="CPAN-Meta-2.150005c">CPAN-Meta 2.150005c</dt>
<dd>
<p>fix Encode test for modernized Test-Simple, stringify the 1st skip arg</p>
</dd>
<dt id="CPAN::Meta::Requirements-3.140c">CPAN::Meta::Requirements 3.140c</dt>
<dd>
</dd>
<dt id="Test-Harness-3.36">Test-Harness 3.36</dt>
<dd>
<p>type the skip calls</p>
</dd>
<dt id="Hash-Util-FieldHash">Hash-Util-FieldHash</dt>
<dd>
<p>type the skip calls</p>
</dd>
<dt id="YAML-LibYAML-0.70">YAML-LibYAML 0.70</dt>
<dd>
<p>Spiffy and Test::Base 0.88c fixes for fake signatures.</p>
<p>Spiffy uses a source filter to expand many methods, but this does not work with fake_signatures. Expand the compile-time state of Test::Base to avoid source filters. Also add . to @INC in some tests.</p>
<p>utf-8 handling stills throws many warnings.</p>
</dd>
<dt id="Filter-Util-Call-0.92">Filter-Util-Call 0.92</dt>
<dd>
<p>Fixed 1 test for signature errmsg</p>
</dd>
<dt id="IO-Compress">IO-Compress</dt>
<dd>
<p>Fixed 1 test for signature errmsg</p>
</dd>
<dt id="Devel-Peek-1.23">Devel-Peek 1.23</dt>
<dd>
<p>Skip tests for changed dynamic prototype() with sigs. Fix tests with -DDEBUG_LEAKING_SCALARS</p>
</dd>
<dt id="B-1.62_02">B 1.62_02</dt>
<dd>
<p>add B::OP::rettype, B::OP::typechecked, B::CV::SIGOP and support for OP_SIGNATURE with B::UNOP_AUX::aux_list and B::UNOP_AUX::string.</p>
<p>Note: With threads in B::UNOP_AUX::aux_list the padoffsets are returned as such, and not as SV. This is different to upstream perl5, a perl5 bug.</p>
</dd>
<dt id="Devel-NYTProf-6.03">Devel-NYTProf 6.03</dt>
<dd>
<p>fix test for short CV_NAME_NOMAIN. silence a C compiler warning.</p>
</dd>
<dt id="perl5db-1.49_04c">perl5db 1.49_04c</dt>
<dd>
<p>fix test for short CV_NAME_NOMAIN. run-time load IO::Handle, broke miniperl. handle calls to signatures via goto, and add tests.</p>
</dd>
<dt id="Digest::MD5-2.55_01">Digest::MD5 2.55_01</dt>
<dd>
</dd>
<dt id="warnings-1.35">warnings 1.35</dt>
<dd>
<p>Add category <code>types</code>.</p>
<p>Disable 3 experimental warnings which are now default with cperl.</p>
</dd>
<dt id="Archive::Tar-2.08">Archive::Tar 2.08</dt>
<dd>
<p>Added t/09_roundtrip.t</p>
</dd>
<dt id="Config-6.21">Config 6.21</dt>
<dd>
<p>Various minor fixes</p>
</dd>
<dt id="Config::Perl::V-0.26_01">Config::Perl::V 0.26_01</dt>
<dd>
<p>cperl patches. Add tests for 5.22 and 5.24. Support some multi-line keys: ccflags ldflags lddlflags Changed tests to use done_testing().</p>
</dd>
<dt id="Cpanel::JSON::XS-3.0217">Cpanel::JSON::XS 3.0217</dt>
<dd>
<p>- Improve test 20_unknown for older JSON::PP (madsen)</p>
<p>- Fix wrong test 117 (pghmcfc)</p>
<p>- TODO the fragile mojo boolean interop test.</p>
<p>- Improve error message with class based method calls, when forgetting ->new. <a href="https://github.com/rurban/Cpanel-JSON-XS/issues/66">[cperl #66]</a></p>
<p>- Fix a off-by-one IV_MIN -> NV overflow in decode_json. <a href="https://github.com/rurban/Cpanel-JSON-XS/issues/67">[cperl #67]</a> (xdg)</p>
<p>- Avoid encode_sv SEGV with -Dusequadmath <a href="https://github.com/rurban/Cpanel-JSON-XS/issues/62">[cperl #62]</a> Fix quadmath NV stringification.</p>
</dd>
<dt id="DB_File-1.838">DB_File 1.838</dt>
<dd>
<p>Skip checking the return status of the api calls.</p>
</dd>
<dt id="Devel::PPPort-3.33_02">Devel::PPPort 3.33_02</dt>
<dd>
<p>Support the latest versions.</p>
<p>cperl specific: Minor -Dfortify_inc fixes, kept our Hv macros, fix __attribute__((warn_unused_result)) on windows.</p>
</dd>
<dt id="HTTP::Tiny-0.058">HTTP::Tiny 0.058</dt>
<dd>
<p>Added some methods.</p>
</dd>
<dt id="IPC::SysV-2.07">IPC::SysV 2.07</dt>
<dd>
<p>Sync with upstream, they fixed <a href="https://rt.cpan.org/Public/Bug/Display.html?id=112827">[RT #112827]</a></p>
</dd>
<dt id="JSON::PP-2.27400">JSON::PP 2.27400</dt>
<dd>
<p>Some fixes. Kept our cperl-specific fallbacks to Cpanel::JSON::XS and boolean interop.</p>
</dd>
<dt id="Locale::Codes-3.39">Locale::Codes 3.39</dt>
<dd>
<p>Removed the deprecated <code>alias_code</code> subroutine. Added some LOCALE_CODE_* UN and GENC constants.</p>
</dd>
<dt id="Math::BigInt-1.999722">Math::BigInt 1.999722</dt>
<dd>
<p>Many changes. Fixed a skip count/why mixup in <i>t/mbimbf.inc</i>, detected by cperl.</p>
</dd>
<dt id="Math::BigInt::FastCalc-0.42">Math::BigInt::FastCalc 0.42</dt>
<dd>
<p>No changes.</p>
</dd>
<dt id="Math::BigRat-0.260804">Math::BigRat 0.260804</dt>
<dd>
<p>Many changes.</p>
</dd>
<dt id="Module-Metadata-1.000031-TRIAL">Module-Metadata 1.000031-TRIAL</dt>
<dd>
<p>Fixed the <i>t/extract-version.t</i> TODO tests.</p>
</dd>
<dt id="libnet-3.08">libnet 3.08</dt>
<dd>
<p>Keeping our darwin performance fix for hostname</p>
</dd>
<dt id="Pod::Checker-1.73">Pod::Checker 1.73</dt>
<dd>
<p>Now based on Pod::Simple, not on Pod::Parser anymore. dos2unix</p>
</dd>
<dt id="Pod::Functions-1.11">Pod::Functions 1.11</dt>
<dd>
<p>Whitespace only to please the new Pod::Checker</p>
</dd>
<dt id="Pod::Usage-1.69_01">Pod::Usage 1.69_01</dt>
<dd>
<p>Remove the Pod::Find test, using pod_where. dos2unix</p>
</dd>
<dt id="Sys::Syslog-0.34">Sys::Syslog 0.34</dt>
<dd>
<p>Handle <i>fallback/syslog.h</i> properly. honor HAVE_SETLOCALE fix windows fallback. Exclude the <i>t/facilities-routing.t</i> test requiring POE. Skip failing udp tests when the server is overloaded.</p>
</dd>
<dt id="Time::HiRes-1.9733">Time::HiRes 1.9733</dt>
<dd>
<p>Minor changes from 5.22.3c. Improve t/nanosleep.t to show smoker errors.</p>
</dd>
<dt id="Thread::Queue-3.11">Thread::Queue 3.11</dt>
<dd>
<p>Replace <code>threads::yield</code> with <code>thread->join</code> in <i>t/07_lock.t</i>.</p>
</dd>
<dt id="threads-2.09">threads 2.09</dt>
<dd>
<p>Updated from 2.06. Improve 2 tests</p>
</dd>
<dt id="threads::shared-1.52">threads::shared 1.52</dt>
<dd>
<p>No functional changes</p>
</dd>
<dt id="Term::ReadKey">Term::ReadKey</dt>
<dd>
<p>Improve Makefile.PL, esp. for Windows. See <a href="https://github.com/jonathanstowe/TermReadKey/pull/15">https://github.com/jonathanstowe/TermReadKey/pull/15</a></p>
</dd>
<dt id="Scalar-List-Utils-1.45_04">Scalar-List-Utils 1.45_04</dt>
<dd>
<p>Improved <code>set_subname</code> for <code>'</code> package seperators. <code>'</code> is counted as seperator only if it appears at first, before any <code>::</code>. If seen, do the same magic as <code>parse_gv_stash_name</code>, converting all seperators over to <code>::</code>. Taken with improvements from <a>Sub::Name</a>.</p>
</dd>
<dt id="Data::Dumper-2.162">Data::Dumper 2.162</dt>
<dd>
<p>Fix high isASCII chars for EBCDIC, <a href="https://rt.cpan.org/Ticket/Display.html?id=12282">[cpan #12282]</a>, on CPAN as 2.161.</p>
<p>Fix <a href="https://rt.perl.org/Public/Bug/Display.html?id=128524">[perl #128524]</a>, wrong indentation for utf-8 key hash elements.</p>
</dd>
</dl>
<h2 id="Not-Updated-Modules-and-Pragmata">Not Updated Modules and Pragmata</h2>
<p>This modules are currently not ready to be updated.</p>
<dl>
<dt id="MakeUtils::MakeMaker-7.11_06">MakeUtils::MakeMaker 7.11_06</dt>
<dd>
<p>Broken for -Dfortify_inc, no "." in @INC. Broken new "_" logic when merged with our 'c' suffix logic.</p>
</dd>
<dt id="Test2">Test2</dt>
<dd>
<p>We need some time to modernize it, as done with the previous version.</p>
<p>Our Test::Simple and Test::More versions were bumped to 1.4 to prohibit automatic installation of Test2 from CPAN, to use our improved versions instead.</p>
</dd>
<dt id="version-0.9917">version 0.9917</dt>
<dd>
<p>Broken new "_" logic when merged with our 'c' suffix logic.</p>
</dd>
</dl>
<h1 id="Diagnostics">Diagnostics</h1>
<p>The following additions or changes have been made to diagnostic output, including warnings and fatal error messages. For the complete list of diagnostic messages, see <a href="/cperl/perldiag.html">perldiag</a>.</p>
<h2 id="New-Diagnostics">New Diagnostics</h2>
<h3 id="New-Errors">New Errors</h3>
<dl>
<dt id="Not-enough-arguments-for-s">Not enough arguments for %s</dt>
<dd>
<p>(F) The function requires more arguments than you specified.</p>
<p>This error might be detected at compile-time or run-time.</p>
<p>If the called function is declared with a signature, and the error message includes "Want: \d, but got: 0", it might be that the call <code>&$sub</code> without <code>()</code> needs to be replaced with a <code>goto \&sub;</code>. See <a href="/cperl/perlcperl.html#Changed-calls-to-signatures">"Changed calls to signatures" in perlcperl</a>.</p>
</dd>
<dt id="Invalid-type-s-for-s-s">Invalid type %s for %s %s</dt>
<dd>
<p>(F) The function cannot handle the declared type of the argument. E.g. tie or bless cannot use a typed arg with a coretype, as a coretype declaration guarantees no magic.</p>
</dd>
<dt id="Reference-parameter-cannot-take-default-value">Reference parameter cannot take default value</dt>
<dd>
<p>(F) In a subroutine signature, you put a <code>=</code> after a reference <code>\</code> parameter. A reference parameter cannot be assigned default values on subroutine entries.</p>
</dd>
<dt id="Subroutine-signature-has-more-than-d-parameters">Subroutine signature has more than %d parameters</dt>
<dd>
<p>(F) A subroutine signature had more than 32767 individual parameter entries.. In the unlikely event that you need so many parameters, use a slurpy array instead.</p>
</dd>
</dl>
<h3 id="New-Warnings">New Warnings</h3>
<dl>
<dt id="Wrong-type-s-expected-s">Wrong type %s, expected %s</dt>
<dd>
<p>(W types) The type of the argument does not match the user-defined type of the function declaration.</p>
</dd>
<dt id="Inserting-type-cast-s-to-s">Inserting type cast %s to %s</dt>
<dd>
<p>(W types) The compiler found an argument with a declared type, which the needs to be converted at run-time. This warning usually points to a wrong type usage.</p>
</dd>
<dt id="Useless-use-of-:caller-did-you-mean-:-caller-instead">Useless use of :caller, did you mean :-caller instead?</dt>
<dd>
<p>(W misc) The ":caller" attribute has no effect in pure perl subroutine declarations. You applied it to a subroutine via <a href="/cperl/lib/attributes.html">attributes.pm</a>. This is only valid as negated variant <code>:-caller</code> on subroutines.</p>
</dd>
</dl>
<h1 id="Platform-Support">Platform Support</h1>
<h2 id="Platform-Specific-Notes">Platform-Specific Notes</h2>
<dl>
<dt id="Win32">Win32</dt>
<dd>
<p>Work is ongoing for perlcc compiler support on Win32. It is now usable, but not as good as on other platforms.</p>
</dd>
<dt id="Darwin">Darwin</dt>
<dd>
<p>With <code>-DDEBUGGING</code> <i>dsymutil</i> is called automatically on all created binaries for easier debugging.</p>
</dd>
<dt id="Cygwin">Cygwin</dt>
<dd>
<p>Several fixes were added: silence time64.h compilation warnings, fixup archname for 64bit, set d_eofnblk correctly for non-win95, define _GNU_SOURCE to declare memmem.</p>
<p>See <a href="https://rt.perl.org/Public/Bug/Display.html?id=128358">RT #128358</a>, <a href="https://rt.perl.org/Public/Bug/Display.html?id=128359">RT #128359</a> and <a href="https://rt.perl.org/Public/Bug/Display.html?id=127708">RT #127708</a>.</p>
</dd>
</dl>
<h1 id="Internal-Changes">Internal Changes</h1>
<ul>
<li><p>The <code>git_describe</code> Config key and <code>PERL_PATCHNUM</code> define was changed to use <code>git --long --tags</code>, which leads to more relevant values with cperl. I.e. before <i>v5.23.0-3113-g43962f1</i>, now <i>cperl-5.24.0-0-g43962f1</i>.</p>
</li>
</ul>
<h1 id="Selected-Bug-Fixes">Selected Bug Fixes</h1>
<dl>
<dt id="handle-method-calls-on-protected-stashes">handle method calls on protected stashes</dt>
<dd>
<p><a href="https://github.com/perl11/cperl/issues/171">cperl #171</a></p>
<p>Known bug upstream, not fixed there. This problem appears more often with cperl with its protected coretypes than upstream.</p>
</dd>
<dt id="fedora:-Do-not-crash-when-inserting-a-non-stash-into-a-stash">fedora: Do not crash when inserting a non-stash into a stash</dt>
<dd>
<p><a href="https://rt.perl.org/Public/Bug/Display.html?id=128238">RT#128238</a></p>
<p>Fedora Patch 37</p>
</dd>
<dt id="fedora:-Do-not-treat-:-as-a-stash">fedora: Do not treat %: as a stash</dt>
<dd>
<p><a href="https://rt.perl.org/Public/Bug/Display.html?id=128238">RT#128238</a></p>
<p>Fedora Patch36</p>
</dd>
<dt id="fedora:-Fix-precedence-in-hv_ename_delete">fedora: Fix precedence in hv_ename_delete</dt>
<dd>
<p><a href="https://rt.perl.org/Public/Bug/Display.html?id=128086">RT#128086</a></p>
<p>Fedora Patch35</p>
</dd>
<dt id="fedora:-Do-not-use-unitialized-memory-in-h-const-warnings">fedora: Do not use unitialized memory in $h{\const} warnings</dt>
<dd>
<p><a href="https://rt.perl.org/Public/Bug/Display.html?id=128189">RT#128189</a></p>
<p>Fedora Patch34</p>
</dd>
<dt id="fedora:-Do-not-mangle-errno-from-failed-socket-calls">fedora: Do not mangle errno from failed socket calls</dt>
<dd>
<p><a href="https://rt.perl.org/Public/Bug/Display.html?id=128316">RT#128316</a></p>
<p>Fedora Patch32</p>
</dd>
<dt id="fedora:-Backport-memory-leak-when-compiling-a-regular-expression-with-a-POSIX-class">fedora: Backport memory leak when compiling a regular expression with a POSIX class</dt>
<dd>
<p>E.g. when <code>use re 'strict';</code> is used.</p>
<p><a href="https://rt.perl.org/Public/Bug/Display.html?id=128313">RT#128313</a></p>
<p>Fedora Patch31</p>
</dd>
<dt id="suse:-perl5.24.0.dif">suse: perl5.24.0.dif</dt>
<dd>
<p>Many Configure and linux hints enhancements, esp for lib64, probe fixes, gdbm and ODBM fixes, gnu readline integration with the debugger. See <a href="https://build.opensuse.org/package/show/devel:languages:perl/perl">https://build.opensuse.org/package/show/devel:languages:perl/perl</a></p>
</dd>
<dt id="suse:-fix-regexp-backref-overflows">suse: fix regexp backref overflows</dt>
<dd>
<p>With many backref groups (>I32)</p>
</dd>
<dt id="suse:-perl-saverecontext.diff-RT-76538">suse: perl-saverecontext.diff RT#76538</dt>
<dd>
<p>Handle get magic with globs in the regex compiler. Correctly restore context, esp. when loading unicode swashes. Reported at 5.12, patched for suse 5.14, still ignored with 5.24.</p>
</dd>
<dt id="Issues-with-0-being-wrong-in-5.24.0-reginsert-recursion">Issues with (?0) being wrong in 5.24.0, reginsert recursion</dt>
<dd>
<p>The pattern <code>/\X*(?0)/</code> and various flavours thereof did not work correctly due to <code>RExC_open_paren[0]</code> being inappropriately adjusted. Broken in cperl-5.24.0-RC1-2 and <b>perl-5.24.0</b> upstream.</p>
<p>See <a href="https://rt.perl.org/Public/Bug/Display.html?id=128109">RT #128109</a> and <a href="https://rt.perl.org/Public/Bug/Display.html?id=128085">RT #128085</a>.</p>
</dd>
<dt id="locale-race-condition-when-switching-to-C-for-error-messages">locale race condition when switching to C for error messages</dt>
<dd>
<p>A race condition which occurred when computing <code>"$!"</code> with threads activated has been fixed. This showed up only on Darwin platforms. A related problem on Cygwin platforms involving UTF-8 strings has also been fixed. See <a href="https://rt.perl.org/Public/Bug/Display.html?id=127708">RT #127708</a></p>
</dd>
<dt id="Fix-crash-with-a-.-etc">Fix crash with @a &.= etc.</dt>
<dd>
<p>See <a href="https://rt.perl.org/Public/Bug/Display.html?id=128204">RT #128204</a></p>
</dd>
<dt id="Fix-leak-in-c-perl-5.24.0-with-strict-and-regex-posix-char-classes">Fix leak in c?perl 5.24.0 with strict and regex posix char classes</dt>
<dd>
<p>See <a href="https://rt.perl.org/Public/Bug/Display.html?id=128313">RT #128313</a></p>
</dd>
<dt id="Fix-PERLIO-stdio-dup-on-empty-filehandle">Fix PERLIO=stdio dup on empty filehandle</dt>
<dd>
<p>See <a href="https://rt.perl.org/Public/Bug/Display.html?id=63244">RT #63244</a> or <a href="http://bugs.debian.org/164615">http://bugs.debian.org/164615</a>, crashes from 5.8.8 to blead.</p>
<p><code>env PERLIO=stdio perl -e'open(F, "<&STDOUT")' 1</dev/null</code></p>
</dd>
<dt id="Fix-crash-from-empty-curcop-in-gp_free-ckWARN_d">Fix crash from empty curcop in gp_free/ckWARN_d</dt>
<dd>
<p>See <a href="https://rt.perl.org/Public/Bug/Display.html?id=128597">RT #128597</a>.</p>
<p><code>open my $fh, ">", \$buf; my $sub = eval q|sub {die}|; $sub->()'</code> crashes from 5.22 to 5.24.1.</p>
</dd>
<dt id="Fix-crash-when-vivifying-stub-in-deleted-pkg">Fix crash when vivifying stub in deleted pkg</dt>
<dd>
<p>See <a href="https://rt.perl.org/Public/Bug/Display.html?id=128532">RT #128532</a>.</p>
<p><code>delete $My::{"Foo::"}; \&My::Foo::foo</code> crashes from 5.18 to 5.24.1.</p>
</dd>
</dl>
<h1 id="Acknowledgements">Acknowledgements</h1>
<p>cperl 5.24.0 represents approximately 14 weeks of development since cperl 5.22.2c and contains approximately 1,100,000 lines of changes across 1,600 files from 59 authors.</p>
<p>Excluding auto-generated files, documentation and release tools, there were approximately 130,000 lines of changes to 700 .pm, .t, .c and .h files.</p>
<p>The following people are known to have contributed the improvements that became cperl 5.24.0:</p>
<p>Karl Williamson, Reini Urban, David Mitchell, Jarkko Hietaniemi, Andy Broad, Tony Cook, Daniel Dragan, Lukas Mai, Craig A. Berry, Yves Orton, Aaron Crane, Father Chrysostomos, Ricardo Signes, Dagfinn Ilmari Mannsåker, Steve Hay, H.Merijn Brand, James E Keenan, Matthew Horsfall, Aristotle Pagaltzis, Karen Etheridge, Abigail, Chris 'BinGOs' Williams, Shlomi Fish, Doug Bell, Dan Collins, Stevan Little, Tom Hukins, Rafael Garcia-Suarez, Andy Dougherty, Ed J, Vincent Pit, Todd Rinaldo, Nicholas Clark, Leon Timmermans, Thomas Sibley, Achim Gratz, Vladimir Timofeev, Stanislaw Pusep, Aaron Priven, Dr.Ruud, Pip Cet, Hugo van der Sanden, Mohammed El-Afifi, Mattia Barbon, John SJ Anderson, Victor Adam, Alex Vandiver, John Peacock, Niko Tyni, Alexander D'Archangel, Ludovic E. R. Tolhurst-Cleaver, Zachary Storer, Herbert Breunung, Ed Avis, Sisyphus, Max Maischein, Ivan Pozdeev, Chas. Owens, Peter Martini.</p>
<p>The list above is almost certainly incomplete as it is automatically generated from version control history including the perl and cperl repos. In particular, it does not include the names of the (very much appreciated) contributors who reported issues to the Perl bug tracker and the cperl github issues.</p>
<p>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.</p>
<p>For a more complete list of all of Perl's historical contributors, please see the <i>AUTHORS</i> file in the Perl source distribution.</p>
<h1 id="Reporting-Bugs">Reporting Bugs</h1>
<p>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 <a href="https://rt.perl.org/">https://rt.perl.org/</a> . There may also be information at <a href="http://www.perl.org/">http://www.perl.org/</a> , the Perl Home Page.</p>
<p>If you believe you have an unreported bug, please run the <code>perlbug</code> 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 <code>perl -V</code>, will be sent off to <code>[email protected]</code> to be analysed by the Perl porting team.</p>
<p>If you think it's a cperl specific bug or trust the cperl developers more please file an issue at <a href="https://github.com/perl11/cperl/issues">https://github.com/perl11/cperl/issues</a>.</p>
<p>If the bug you are reporting has security implications, which make it inappropriate to send to a publicly archived mailing list, then please send it to <code>[email protected]</code>. This points to a closed subscription unarchived mailing list, which includes all the p5p core committers, who will be able to help assess the impact of issues, figure out a resolution, and help co-ordinate the release of patches to mitigate or fix the problem across all platforms on which Perl is supported. Please only use this address for security issues in the Perl core, not for modules independently distributed on CPAN.</p>
<p>If you trust the cperl developers more, please send an email to them. The p5p security teams skips many security issues, or are unwilling to fix them.</p>
<h1 id="SEE-ALSO">SEE ALSO</h1>
<p>The <i>Changes</i> file for an explanation of how to view exhaustive details on what changed.</p>
<p>The <i>INSTALL</i> file for how to build Perl.</p>
<p>The <i>README</i> file for general stuff.</p>
<p>The <i>Artistic</i> and <i>Copying</i> files for copyright information.</p>
</body>
</html>