This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fixup to "avoid identical stack traces"
authorDavid Mitchell <davem@iabyn.com>
Thu, 12 Mar 2020 14:14:24 +0000 (14:14 +0000)
committerDavid Mitchell <davem@iabyn.com>
Thu, 12 Mar 2020 15:16:58 +0000 (15:16 +0000)
commitfb8188b84d8a8f34f90aa9a8d9837892967f6b93
tree6cf8f9d905e129be04851a7cb770e881fe51ffff
parent89561f3b90d656b6fbc944a234921a2507c9a006
fixup to "avoid identical stack traces"

GH #15109, #17567

My original fix for this issue, v5.31.6-141-gf2f32cd638
made a shallow copy of &PL_compiling. However, for non-default
warning bits, this made two COPs share the malloced() cop_warnings,
and bad things ensured. In particular this was flagged up in:

    GH #17567: "BBC: AYOUNG/OpenVZ-0.01.tar.gz"

The fix in this commit is to do a deep copy of the COP using
newSTATEOP().
MANIFEST
op.c
t/lib/GH_15109/Foo.pm [new file with mode: 0644]
t/op/caller.t