Re: plpython fails its regression test - Mailing list pgsql-hackers

From Andrew Bosma
Subject Re: plpython fails its regression test
Date
Msg-id 1043994227.7277.79.camel@dendroica
Whole thread Raw
In response to plpython fails its regression test  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:

>In CVS tip, if you run "make installcheck" in src/pl/plpython, the test
>fails with a number of diffs between the expected and actual output.
>I'm not sure if plpython is broken, or if it's just that someone
>changed the behavior and didn't bother to update the test's expected
>files (the test files don't seem to have been maintained since they
>were first installed).

What version of python are you using?  I just ran "make installcheck"
using python 2.1 and the tests passed.  I know python 2.2 and later will
fail because the rexec module used to create the restricted execution
environment has been deprecated, and any attempt to use it results in
RuntimeErrors being thrown.

The new-style classes introduced in python 2.2 allow you to trivially
breakout of the restricted environment.  There are also known bugs in
the rexec bugs in python 2.1.  It's probably wise to not install
plpython as a trusted language, at least until the restricted
environment can be restored.

Andrew

-- 
Andrew Bosma <bosma@epigenomix.com>



pgsql-hackers by date:

Previous
From: Rajesh Kumar Mallah
Date:
Subject: Re: [OpenFTS-general] Alpha version of contrib/tsearch is available for testing
Next
From: Elias Athanasopoulos
Date:
Subject: cvs (7/2/2003) is broken?