Re: [HACKERS] Custom variable class segmentation fault

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Michael Fuhr <mike(at)fuhr(dot)org>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [HACKERS] Custom variable class segmentation fault
Date: 2006-08-13 18:17:08
Message-ID: 200608131817.k7DIH8X15627@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Tom Lane wrote:
> Michael Fuhr <mike(at)fuhr(dot)org> writes:
> > The latest HEAD is segfaulting on startup if I have the following
> > lines in postgresql.conf:
>
> > custom_variable_classes = 'plperl'
> > plperl.use_strict = on
>
> Bruce, please re-revert that GUC patch and don't put it back in until
> someone like Peter or me has actually reviewed it. My faith in it has
> gone to zero, and I don't think you are able to fix it either.

Peter had already reviewed it and given comments.

There were three things wrong with the original patch:

o spacing, e.g. "if( x =- 1 )"
o an incorrect API for memory freeing by parse_value()
o verify_config_option() didn't consider custom variables

These have all been corrected, so I don't see the value in removing the
patch now that it is working. I have attached the three GUC patches
that were applied to CVS, so if someone wants corrections or removal
based on specific issues, please let me know.

> BTW, do I need to mention that the plperl patch is breaking the
> buildfarm again?

That has been reverted, because of the regression failures and Andrew's
analysis.

--
Bruce Momjian bruce(at)momjian(dot)us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

Attachment Content-Type Size
/pgpatches/guc1 text/x-diff 33.0 KB
/pgpatches/guc2 text/x-diff 16.5 KB
/pgpatches/guc3 text/x-diff 2.0 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-08-13 18:43:06 Re: [PATCHES] Custom variable class segmentation fault
Previous Message Bruce Momjian 2006-08-13 18:02:38 Re: better support of out parameters in plperl

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2006-08-13 18:43:06 Re: [PATCHES] Custom variable class segmentation fault
Previous Message Bruce Momjian 2006-08-13 18:02:38 Re: better support of out parameters in plperl