Re: plpython crash

From: Jan Urbański <wulczer(at)wulczer(dot)org>
To: Jean-Baptiste Quenot <jbq(at)caraldi(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: plpython crash
Date: 2011-08-17 09:40:55
Message-ID: 4E4B8CA7.3090900@wulczer.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 16/08/11 19:12, Jan Urbański wrote:
> On 16/08/11 19:07, Jean-Baptiste Quenot wrote:
>> Dear Jan,
>>
>> Sorry I typed the wrong git commands. With latest plpython from
>> branch master I got the same gdb backtrace as reported before. I
>> managed to wrap up a testcase that fails 100% of times on my setup:
>> https://gist.github.com/1149512
>>
>> Hope it crashes on your side too :-)
>
> Awesome, it segfaults for me with HEAD ;)
>
> Now it's just a simple matter of programming... I'll take a look at it
> this evening.

Found it, we're invalidating the compiled functions cache when input
composite arguments change, but not when output composite arguments
change and the function gets called with pointers to invalid I/O routines.

I'll have a patch ready soon.

Jan

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2011-08-17 10:19:03 Re: Online base backup from the hot-standby
Previous Message Heikki Linnakangas 2011-08-17 09:37:47 Re: Enforcing that all WAL has been replayed after restoring from backup