Re: plpython crash on exception

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Marko Kreen <markokr(at)gmail(dot)com>
Cc: Postgres Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: plpython crash on exception
Date: 2007-11-23 01:57:07
Message-ID: 20071123015707.GO4903@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Marko Kreen escribió:

> Problem turns out to be va_list handling in PLy_vprintf() which
> uses same va_list repeatedly. Fix is to va_copy to temp variable.

Marko, I just applied what I posted earlier today from 7.4 to 8.2 and
HEAD. I assume you had a more complex test case; please have a try with
the code in CVS and let me know.

(If you are really interested in a fix for 7.3, let me know too ... I
couldn't even get plpython to run a trivial function due to RExec
issues. I didn't try 7.2).

--
Alvaro Herrera Developer, http://www.PostgreSQL.org/
"Es filósofo el que disfruta con los enigmas" (G. Coli)

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Euler Taveira de Oliveira 2007-11-23 03:54:03 Re: [HACKERS] wrong behavior using to_char() again
Previous Message Alvaro Herrera 2007-11-22 21:15:47 Re: plpython crash on exception