Re: Bug Report with Postgres 7.4 on AIX 5.3

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: vvanwynsberghe(at)ccncsi(dot)net
Cc: pgsql-ports(at)postgresql(dot)org, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Bug Report with Postgres 7.4 on AIX 5.3
Date: 2005-05-11 16:02:04
Message-ID: 4650.1115827324@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-ports

Vincent Vanwynsberghe <vvanwynsberghe(at)ccncsi(dot)net> writes:
> The AIX 5.3 provide the structure sockaddr_storage :
> ...
> In Postgress this structure sockaddr_storage is filled with the structure
> sockaddr_un but the size of sockaddr_storage
> is less then the size of sockaddr_un and cause a memory overflow !

> Do you have any idea how to find a workaround ?

Report this bug to IBM: the AIX headers are defining the structs wrong.
You can quote RFC 3493 - Basic Socket Interface Extensions for IPv6
section 3.10:

One simple addition to the sockets API that can help application
writers is the "struct sockaddr_storage". This data structure can
simplify writing code that is portable across multiple address
families and platforms. This data structure is designed with the
following goals.

- Large enough to accommodate all supported protocol-specific address
structures.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Beckstette 2005-05-11 16:11:41 Re: Missing tables in postgresql 7.2.4
Previous Message Bogdan Matei 2005-05-11 15:56:28 BUG #1660: Growing used memory and critical performance loss

Browse pgsql-ports by date

  From Date Subject
Next Message Andrew - Supernews 2005-05-11 20:27:12 Re: Bug Report with Postgres 7.4 on AIX 5.3
Previous Message Vincent Vanwynsberghe 2005-05-11 13:04:42 Re: Bug Report with Postgres 7.4 on AIX 5.3