X-Original-To: pgsql-ports-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4FCDEDB6C1 for ; Tue, 1 Nov 2005 14:04:26 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 25841-01 for ; Tue, 1 Nov 2005 18:04:20 +0000 (GMT) Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.116.145.2]) by svr1.postgresql.org (Postfix) with ESMTP id 65D4EDB6A7 for ; Tue, 1 Nov 2005 14:04:20 -0400 (AST) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 1AD6A31059; Tue, 1 Nov 2005 19:04:15 +0100 (MET) From: Chris Browne X-Newsgroups: pgsql.ports Subject: AIX Permission weirdness Date: Tue, 01 Nov 2005 12:14:39 -0500 Organization: cbbrowne Computing Inc Lines: 30 Message-ID: <60fyqg9tog.fsf@dba2.int.libertyrms.com> References: <> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: usenet@news.hub.org User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.17 (Jumbo Shrimp, linux) Cancel-Lock: sha1:53N6Vb6mzIYSRyNpT7AglitiO1k= To: pgsql-ports@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.588 required=5 tests=[AWL=-0.409, URI_NOVOWEL=0.997] X-Spam-Score: 0.588 X-Spam-Level: X-Archive-Number: 200511/3 X-Sequence-Number: 2237 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." --