Re: [HACKERS] Segfault in PL/Python

2009-11-03 Thread Peter Eisentraut
On Sat, 2009-10-31 at 14:24 +0200, Peter Eisentraut wrote: > I have discovered an obscure segfault condition in PL/Python. In > PLy_output(), when the elog() call in the TRY branch throws an exception > (this can happen when a statement timeout kicks in, for example), the > PyErr_SetString() call

[HACKERS] Segfault in PL/Python

2009-10-31 Thread Peter Eisentraut
I have discovered an obscure segfault condition in PL/Python. In PLy_output(), when the elog() call in the TRY branch throws an exception (this can happen when a statement timeout kicks in, for example), the PyErr_SetString() call in the CATCH branch can cause a segfault, because the Py_XDECREF(so