Work around perl bug in SvPVutf8().
authorAndrew Dunstan <andrew@dunslane.net>
Thu, 5 Jan 2012 17:01:18 +0000 (12:01 -0500)
committerAndrew Dunstan <andrew@dunslane.net>
Thu, 5 Jan 2012 17:01:18 +0000 (12:01 -0500)
commit2abefd9a92f3c02ad4f6030ac1578bbf314db368
tree2b8c4f5c15f93f4e1f772597617781c27afb84f8
parent8cf82ac53e9a3d5dd86f16106e3398063a526817
Work around perl bug in SvPVutf8().

Certain things like typeglobs or readonly things like $^V cause
perl's SvPVutf8() to die nastily and crash the backend. To avoid
that bug we make a copy of the object, which will subsequently be
garbage collected.

Back patched to 9.1 where we first started using SvPVutf8().

Per -hackers discussion. Original problem reported by David Wheeler.
src/pl/plperl/plperl_helpers.h