Re: BUG #5731: postmaster sometimes dumps core when handling local connections

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: "Alexander V(dot) Chernikov" <melifaro(at)ipfw(dot)ru>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5731: postmaster sometimes dumps core when handling local connections
Date: 2010-10-27 17:12:22
Message-ID: 4CC85D76.4090808@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Alexia Lau 2010-10-27 20:17:02 Re: BUG
Previous Message Alexander V. Chernikov 2010-10-27 15:19:48 BUG #5731: postmaster sometimes dumps core when handling local connections