Re: BUG #5731: postmaster sometimes dumps core when handling local connections - Mailing list pgsql-bugs

From Heikki Linnakangas
Subject Re: BUG #5731: postmaster sometimes dumps core when handling local connections
Date
Msg-id 4CC85D76.4090808@enterprisedb.com
Whole thread Raw
In response to BUG #5731: postmaster sometimes dumps core when handling local connections  ("Alexander V. Chernikov" <melifaro@ipfw.ru>)
List pgsql-bugs
On 27.10.2010 18:19, Alexander V. Chernikov wrote:
> Program terminated with signal 11, Segmentation fault.
> .....
> #0  0x0000000000638f1a in ConnCreate (serverFd=4) at postmaster.c:1939
>
> 1939            port->gss = (pg_gssinfo *) calloc(1, sizeof(pg_gssinfo));

Hmm, so you get a crash whenever accept() or one of the other calls in
StreamConnection fails, and the server is compiled with GSSAPI. Funny
that it has gone unnoticed for such a long time, clearly accept() and
friends don't fail very often.

> This simple patch seem to fix the problem

Thanks, patch applied.

--
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com

pgsql-bugs by date:

Previous
From: "Alexander V. Chernikov"
Date:
Subject: BUG #5731: postmaster sometimes dumps core when handling local connections
Next
From: Alexia Lau
Date:
Subject: Re: BUG