Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] Cure for segmentation fault in libpq

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: olly(at)lfix(dot)co(dot)uk (Oliver Elphick)
Cc: hackers(at)postgreSQL(dot)org, pgsql-questions(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Cure for segmentation fault in libpq
Date: 1998-03-26 23:45:23
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
> I have been troubled by a segmentation fault when reloading from a dumpall.
> This has been happening when a second \connect is encountered. 
> The faulty code was in fe-connect.c, where the memory for the user password
> was freed, but the pointer itself was not set to NULL.  Later, the memory was
> reused and the password appeared not to be empty, so that an attempt was
> made to reference it.

Applied to source tree.

Bruce Momjian                          |  830 Blythe Avenue
maillist(at)candle(dot)pha(dot)pa(dot)us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

In response to

pgsql-hackers by date

Next:From: The Hermit HackerDate: 1998-03-26 23:45:50
Subject: Any seen this...?
Previous:From: Oliver ElphickDate: 1998-03-26 22:32:04
Subject: Cure for segmentation fault in libpq

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group