Crash on attempt to connect to nonstarted server

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Crash on attempt to connect to nonstarted server
Date: 2010-12-16 13:27:18
Message-ID: AANLkTinjPB9U9+nrK7h7EFHdYCFT-MePSt1ppxiE+ztf@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I get a crash on win32 when connecting to a server that's not started.
In fe-connect.c, we have:

display_host_addr = (conn->pghostaddr == NULL) &&
(strcmp(conn->pghost, host_addr) != 0);

In my case, conn->pghost is NULL at this point, as is
conn->pghostaddr. Thus, it crashes in strcmp().

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2010-12-16 13:49:45 Re: [PATCH] V3: Idle in transaction cancellation
Previous Message Greg Smith 2010-12-16 13:20:02 Re: CommitFest wrap-up