Re: postgresql-7.4RC1 - Memory fault(coredump) on HP-UX - Mailing list pgsql-hackers

From Tom Lane
Subject Re: postgresql-7.4RC1 - Memory fault(coredump) on HP-UX
Date
Msg-id 28997.1068219564@sss.pgh.pa.us
Whole thread Raw
In response to Re: postgresql-7.4RC1 - Memory fault(coredump) on HP-UX  ("Verbus Counts" <verbus@sonicisp.net>)
List pgsql-hackers
"Verbus Counts" <verbus@sonicisp.net> writes:
>> Can you show us the stack trace ?

> Here is:

Hm, getaddrinfo() is crashing?

Does HPUX 11 have more fields in "struct addrinfo" than are initialized in
lines 189-196 of src/backend/postmaster/pgstat.c, viz
hints.ai_flags = AI_PASSIVE;hints.ai_family = PF_UNSPEC;hints.ai_socktype = SOCK_DGRAM;hints.ai_protocol =
0;hints.ai_addrlen= 0;hints.ai_addr = NULL;hints.ai_canonname = NULL;hints.ai_next = NULL;
 

If so, perhaps adding "memset(&hints, 0, sizeof(hints));" right before
these lines would improve matters.

Otherwise I think this is probably an HPUX bug.  You might need to get a
more recent version of libc.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Palle Girgensohn
Date:
Subject: Re: [BUGS] PostgreSQL client has problems when libbind is
Next
From: Tom Lane
Date:
Subject: Re: what could cause this PANIC on enterprice 7.3.4 db?