Re: initdb segfault - solaris 8 - Mailing list pgsql-general

From Tom Lane
Subject Re: initdb segfault - solaris 8
Date
Msg-id 27646.1004123749@sss.pgh.pa.us
Whole thread Raw
In response to Re: initdb segfault - solaris 8  (sjh@ucf.ics.uci.edu)
Responses Re: initdb segfault - solaris 8
List pgsql-general
sjh@ucf.ics.uci.edu writes:
> Here is the stack trace w/ --enable-debug

> #0  0x81cd6ba in ValidateBinary (
>     path=0x804718c "/pkg/postgresql-7.1.3/bin/postgres") at findbe.c:115

Well, that narrows it down to a problem with the "struct group" returned
by getgrgid() ... but the code is correct according to the man page I
have here for getgrgid.  You're going to have to dig further on your
own.

FWIW, I'd still wonder about whether the definition of "struct group"
seen by Postgres agrees with what libc thinks.

BTW: you wouldn't be getting into this code if the executable were owned
by the postgres user.  So if you can't figure it out, a workaround
should be to change the ownership.

            regards, tom lane

pgsql-general by date:

Previous
From: Paulo Jan
Date:
Subject: Optimizing a complex query (long)
Next
From: Tom Lane
Date:
Subject: Re: Optimizing a complex query (long)