Re: BUG #5307: Crash in AllocSetAlloc - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #5307: Crash in AllocSetAlloc
Date
Msg-id 29091.1265139085@sss.pgh.pa.us
Whole thread Raw
In response to BUG #5307: Crash in AllocSetAlloc  ("Igor Lasic" <igor@a-bb.net>)
List pgsql-bugs
"Igor Lasic" <igor@a-bb.net> writes:
> We have an application running C-API stored procedures. After running for a
> while postgres crashes with:

> If I increase shared memory application runs longer but eventually crashes.

The odds are incredibly high that this means there's a memory-stomping
bug in your C stored procedures.  You might try testing them in a build
with --enable-debug + --enable-cassert, which will enable some sanity
checking code in the memory context support.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: BUG #5307: Crash in AllocSetAlloc
Next
From: Robert Haas
Date:
Subject: Re: REFERENCES misbehaves with inheritance