Wierd MD5-authentication crash on Solaris 8

Поиск
Список
Период
Сортировка
Искать

Wierd MD5-authentication crash on Solaris 8

От:
Josh Berkus <josh@agliodbs.com>
Дата:
Severity: Core dump
Frequency: Unusual
PostgreSQL Version: 7.4.0 release
Platform:=20=20
	Solaris 8
	gmake 3.80
	gcc 3.23
	440mhz UltraSparc III
	Netra T1/105
Reproducability:  100% on this machine and an identical one.=20
	 Not yet tested on other machines running Solaris 8.
Summary: attempting to connect via MD5 authentication as a user=20
	who has no password triggers a core dump of Postmaster.
Steps to Reproduce:=20=20
	1) set localhost authentication to MD5
	2) set up a new user without setting a password.
	3) attempt to connect as that user.

Core dump file is available.    Strace can also be done if desired.

--=20
-Josh Berkus
 Aglio Database Solutions
 San Francisco

Re: Wierd MD5-authentication crash on Solaris 8

От:
Neil Conway <neilc@samurai.com>
Дата:
Josh Berkus  writes:
> Summary: attempting to connect via MD5 authentication as a user
> 	who has no password triggers a core dump of Postmaster.
[...]
> Core dump file is available.

Can you post a stacktrace? (Building the postmaster with debugging
symbols first would be nice.)

-Neil

Re: Wierd MD5-authentication crash on Solaris 8

От:
Josh Berkus <josh@agliodbs.com>
Дата:
Neil,

> Can you post a stacktrace? (Building the postmaster with debugging
> symbols first would be nice.)

I'll see what I can do.   A regular strace should be easy.

-- 
Josh Berkus
Aglio Database Solutions
San Francisco

Re: Wierd MD5-authentication crash on Solaris 8

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Josh Berkus  writes:
> 	Solaris 8
> Summary: attempting to connect via MD5 authentication as a user 
> 	who has no password triggers a core dump of Postmaster.

Is this the bsearch-of-no-elements problem recently discussed?
(If you have other users who do have passwords, then it's not...)

			regards, tom lane

Re: Wierd MD5-authentication crash on Solaris 8

От:
Josh Berkus <josh@agliodbs.com>
Дата:
Tom,

> Is this the bsearch-of-no-elements problem recently discussed?
> (If you have other users who do have passwords, then it's not...)

Actually, it could be.  Is it patched in the current source code?

-- 
Josh Berkus
Aglio Database Solutions
San Francisco

Re: Wierd MD5-authentication crash on Solaris 8

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Josh Berkus  writes:
>> Is this the bsearch-of-no-elements problem recently discussed?

> Actually, it could be.  Is it patched in the current source code?

Yeah, see
http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/backend/libpq/hba.c

			regards, tom lane
FAQ