Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T9kWp-0002oR-1d for pgsql-bugs@postgresql.org; Thu, 06 Sep 2012 22:26:27 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T9kWm-0004AV-Fv for pgsql-bugs@postgresql.org; Thu, 06 Sep 2012 22:26:26 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q86MQKrx019981; Thu, 6 Sep 2012 18:26:21 -0400 (EDT) From: Tom Lane To: Marko Tiikkaja cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7516: PL/Perl crash In-reply-to: <5047BA9C.2040405@joh.to> References: <1194.1346688396@sss.pgh.pa.us> <5047BA9C.2040405@joh.to> Comments: In-reply-to Marko Tiikkaja message dated "Wed, 05 Sep 2012 22:48:28 +0200" Date: Thu, 06 Sep 2012 18:26:20 -0400 Message-ID: <19980.1346970380@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201209/58 X-Sequence-Number: 34053 Marko Tiikkaja writes: > On 03/09/2012 18:06, Tom Lane wrote: >> 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. Hm, can you show us the contents of the *current_call_data struct? Another thing that seems a bit risky is that plperl_func_handler sets up current_call_data as a pointer to a mostly-zeroed struct and then does assorted things that could throw error. That would leave a dangling value of current_call_data ... regards, tom lane