Re: plperl compiler warning - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: plperl compiler warning
Date
Msg-id 4B61E9D7.2040400@dunslane.net
Whole thread Raw
In response to Re: plperl compiler warning  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers

Tom Lane wrote:
> Joe Conway <mail@joeconway.com> writes:
>   
>> I pull directly from CVS, not git, but in any case my line 1117 is
>>       subref = newRV_inc((SV*)GvCVu((GV*)sub_glob));
>> so it appears to be the same
>>     
>
>   
>>> What perl version are you using?
>>> What compiler version are you using?
>>>       
>> I'm on stock Fedora 12:
>>     
>
> I see the same on Fedora 11.  The -E expansion of the line in question is
>
>    subref = Perl_newRV(((PerlInterpreter *)pthread_getspecific((*Perl_Gthr_key_ptr(((void *)0))))),
(SV*)((((GV*)sub_glob)->sv_u.svu_gp)->gp_cvgen? ((void *)0) : (((GV*)sub_glob)->sv_u.svu_gp)->gp_cv));
 
>
> so it's evidently unhappy about the fact that GvCVu can return null,
> while Perl_newRV is declared __attribute__((nonnull(2))).
>
> It looks to me like this is probably a live bug not just compiler
> hypersensitivity.
>
>             
>   

It's on my F11 box too ... I guess it's time to upgrade my work machine, 
doesn't get reported by my usual setup.

Tim, any suggestions?

cheers

andrew






pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Re: Segmentation fault occurs when the standby becomes primary, in SR
Next
From: Tim Bunce
Date:
Subject: Re: plperl compiler warning