Re: postgresql-7.4RC1 - Memory fault(coredump) on HP-UX

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Verbus Counts" <verbus(at)sonicisp(dot)net>
Cc: "Gaetano Mendola" <mendola(at)bigfoot(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: postgresql-7.4RC1 - Memory fault(coredump) on HP-UX
Date: 2003-11-07 15:39:24
Message-ID: 28997.1068219564@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Verbus Counts" <verbus(at)sonicisp(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-11-07 15:43:07 Re: what could cause this PANIC on enterprice 7.3.4 db?
Previous Message Palle Girgensohn 2003-11-07 15:38:33 Re: [HACKERS] PostgreSQL client has problems when libbind is