Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T9MWk-0006mY-6i for pgsql-bugs@postgresql.org; Wed, 05 Sep 2012 20:48:46 +0000 Received: from globepointer.com ([213.157.92.217]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T9MWi-0007nI-Em for pgsql-bugs@postgresql.org; Wed, 05 Sep 2012 20:48:45 +0000 Received: from [79.138.200.1] (79.138.200.1.bredband.tre.se [79.138.200.1]) (Authenticated sender: pgmail) by globepointer.com (Postfix) with ESMTP id A6847BB25; Wed, 5 Sep 2012 23:48:41 +0300 (EEST) Message-ID: <5047BA9C.2040405@joh.to> Date: Wed, 05 Sep 2012 22:48:28 +0200 From: Marko Tiikkaja User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120824 Thunderbird/15.0 MIME-Version: 1.0 To: Tom Lane CC: pgsql-bugs@postgresql.org Subject: Re: BUG #7516: PL/Perl crash References: <1194.1346688396@sss.pgh.pa.us> In-Reply-To: <1194.1346688396@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201209/36 X-Sequence-Number: 34031 Hi, On 03/09/2012 18:06, Tom Lane wrote: > pgmail@joh.to writes: >> We had a segmentation fault in PostgreSQL 9.1.5 with PL/PerlU. >> ... >> It seems to have happened when a PL/PerlU executed a prepared statement >> which calls another PL/PerlU function. > > Hm. Is it possible that the prepared statement recursively called the > *same* plperl function? And that somebody did a CREATE OR REPLACE on > that function meanwhile? No, that doesn't seem possible in this case. The function calls some prepared statements repeatedly, but no recursion should occur. > This > might be the wrong theory. You seem to have debug symbols for that > core dump --- can you tell which of the dereferences in line 3373 > caused the crash? The current_call_data->prodesc->fn_readonly one. Please let me know if I can be of more assistance. Regards, Marko Tiikkaja