Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-bugspgsql-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

pgsql-ports by date

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

pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group