pg.ddx.io  pgsql-ports@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Browne <cbbrowne@acm.org>
To: pgsql-ports@postgresql.org
Subject: AIX Permission weirdness
Date: Tue, 01 Nov 2005 12:14:39 -0500
Message-ID: <60fyqg9tog.fsf@dba2.int.libertyrms.com> (raw)

In the interests of helping others that might run into this, and so
that if we ever Google for this, we may find it...  :-)

We recently ran into fairly weird regressions on AIX.  Shared
libraries wouldn't load, which assortedly meant that:
- plpgsql couldn't be loaded
- Slony-I stored functions couldn't work
- regression tests wouldn't work

The typical result:

-bash-3.00$ /opt/dbs/pgsql748-afilias-AIX53-2005-10-19/bin/createlang plpgsql template1
ERROR:  could not load library "/opt/dbs/pgsql748-afilias-AIX53-2005-10-19/lib/plpgsql.so": A memory address is not in the address space for the process.
createlang: language installation failed: ERROR:  could not load library "/opt/dbs/pgsql748-afilias-AIX53-2005-10-19/lib/plpgsql.so": A memory address is not in the address space for the process.

The evident problem is actually on the permissions...

After modifying plpgsql.so to have "777" permissions (which was
doubtless more open than necessary, but hey, it took 2 seconds to
think of it :-)), the library loaded in fine.

It is very worthwhile to have this note around because we did a lot of
searching around as to possible issues with dlopen() which didn't
report anything even vaguely suggestive that permissions were not set
permissively enough...
-- 
"cbbrowne","@","acm.org"
http://cbbrowne.com/info/linuxxian.html
"MSDOS didn't get as bad as it  is overnight -- it took over ten years
of careful development."  -- <dmeggins@aix1.uottawa.ca>



view thread (2+ messages)  latest in thread

Message-ID: <60fyqg9tog.fsf@dba2.int.libertyrms.com>
Permalink:  ../60fyqg9tog.fsf@dba2.int.libertyrms.com/
Also on:    postgresql.org/message-id/60fyqg9tog.fsf@dba2.int.libertyrms.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-ports@postgresql.org
  Cc: cbbrowne@acm.org
  Subject: Re: AIX Permission weirdness
  In-Reply-To: <60fyqg9tog.fsf@dba2.int.libertyrms.com>
  References: <60fyqg9tog.fsf@dba2.int.libertyrms.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox