Re: [COMMITTERS] pgsql: Work around perl bug in SvPVutf8(). - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: [COMMITTERS] pgsql: Work around perl bug in SvPVutf8().
Date
Msg-id 4F061EFE.1070203@dunslane.net
Whole thread Raw
Responses Re: [COMMITTERS] pgsql: Work around perl bug in SvPVutf8().
List pgsql-hackers

On 01/05/2012 12:05 PM, Andrew Dunstan wrote:
> 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.
>

Ugh. This broke the regression tests. I'll get it fixed.

cheers

andrew


pgsql-hackers by date:

Previous
From: "David E. Wheeler"
Date:
Subject: Re: PL/Perl Does not Like vstrings
Next
From: Greg Smith
Date:
Subject: Re: our buffer replacement strategy is kind of lame