Re: segfault on rollback

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Sergey E(dot) Koposov" <math(at)sai(dot)msu(dot)ru>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: segfault on rollback
Date: 2006-08-13 03:48:00
Message-ID: 14967.1155440880@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Sergey E. Koposov" <math(at)sai(dot)msu(dot)ru> writes:
> I recently have seen the segfault with Postgres 8.1.4.

I'm betting that portal->sourceText has already been deallocated when
exec_execute_message tries to print the log message. Getting an actual
segfault from that would very probably be hard to reproduce, but if you
build with --enable-cassert it should not be too hard to reproduce
corruption of the log message, ie, display of garbage instead of
"ROLLBACK" as the command text. Please try that and see if you can
generate a self-contained test case.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jonah H. Harris 2006-08-13 03:52:24 Re: [PATCHES] Adding fulldisjunctions to the contrib
Previous Message Tom Lane 2006-08-13 03:31:00 Re: [PATCHES] Adding fulldisjunctions to the contrib