Re: Triggers cause backend crash - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Triggers cause backend crash
Date
Msg-id 2455.1004475039@sss.pgh.pa.us
Whole thread Raw
In response to Triggers cause backend crash  ("Andras Belokosztolszki" <beland1@hotmail.com>)
List pgsql-bugs
"Andras Belokosztolszki" <beland1@hotmail.com> writes:
> <DIV> 
> <P class=MsoPlainText><SPAN lang=EN-US style="mso-fareast-font-family: 'MS Mincho'">Hi, I have a problem (I wrote
aboutit before, but here is a complete example). When I have two triggers with parameters the backend crashes after a
certainsequence of invocations. Attached are two very simple triggers in C (they might contain some unnecessary lines,
theyare a stripped version of an application I'm working on), how to compile, how to bootstrap, ... how to crash the
backend<BR></SPAN></P>
> <P class=MsoPlainText><SPAN lang=EN-US style="mso-fareast-font-family: 'MS Mincho'">Postgresql info:</SPAN></P><SPAN
lang=EN-USstyle="mso-fareast-font-family: 'MS Mincho'"><FONT size=2> 
> <P>PostgreSQL 7.1.3 on i686-pc-linux-gnu, compiled by GCC 2.95.3</P></FONT></SPAN>
> <P class=MsoPlainText><SPAN lang=EN-US style="mso-fareast-font-family: 'MS Mincho'">A sample makefile (extract from
mine)</SPAN></P>
> <P class=MsoPlainText><SPAN lang=EN-US style="mso-fareast-font-family: 'MS Mincho'"> </P>
>  [etc]


Please don't use HTML for email.

I think your problem is that you've omitted the
PG_FUNCTION_INFO_V1() macro call that's needed to mark these functions
as version-1 calling convention.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: Porting issue with openssl and no /dev/random
Next
From: Tom Lane
Date:
Subject: Re: Bug #504: multiple cursors cause transaction problems