Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id E5ACE1337B54 for ; Mon, 17 Jan 2011 12:10:34 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 81047-02 for ; Mon, 17 Jan 2011 16:10:27 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (unknown [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 7F1FB133740B for ; Mon, 17 Jan 2011 12:10:27 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id A6A04348025; Mon, 17 Jan 2011 08:10:07 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id v8mRcfzQIPIl; Mon, 17 Jan 2011 08:10:05 -0800 (PST) Received: from perhan.alvh.no-ip.org (unknown [186.10.86.219]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id E34B9348024; Mon, 17 Jan 2011 08:10:03 -0800 (PST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 87FCB6E609; Mon, 17 Jan 2011 13:09:56 -0300 (CLST) Content-Type: text/plain; charset=UTF-8 Cc: Julien Demoor , pgsql-bugs Subject: Re: BUG #5835: PL/Python crashes From: Alvaro Herrera To: Alex Hunsaker In-reply-to: References: <201101131357.p0DDvT8E039516@wwwmaster.postgresql.org> Date: Mon, 17 Jan 2011 13:09:56 -0300 Message-Id: <1295280568-sup-6518@alvh.no-ip.org> User-Agent: Sup/git Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.107 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RDNS_NONE=0.793 X-Spam-Level: X-Archive-Number: 201101/124 X-Sequence-Number: 29146 Excerpts from Alex Hunsaker's message of vie ene 14 03:33:17 -0300 2011: > On Thu, Jan 13, 2011 at 06:57, Julien Demoor wrote: > It looks like we are not incrementing a reference count for NULL > entries in an array. The attached fixes it for me. I did look for > other places where we might have missed this and did not find any. ( > the PyDict_SetItemString() that use Py_None look fishy, but apparently > work ). Thanks, applied to 9.0 and HEAD. -- Álvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support