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

User functions and AIX

From: darcy(at)druid(dot)net (D'Arcy J(dot)M(dot) Cain)
To: pgsql-hackers(at)postgresql(dot)org
Subject: User functions and AIX
Date: 2001-05-28 15:56:17
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
IBM is trying to find the answer to this but I thought I would throw
this out here to see if anyone can help me.  I am compiling a user
defined type on AIX and it fails when I try to use it.  The type is
chkpass and it is in the contrib directory.  It fails with a core dump
at line 88 in chkpass.c.  The line reads as follows.

    result = (chkpass *) palloc(sizeof(chkpass));

The top of the backtrace looks like this.

#0  0x0 in ?? () from (unknown load module)
#1  0xd1087a60 in chkpass_in (fcinfo=0x0) at chkpass.c:88
#2  0x10045cf4 in or_clause (clause=0x0) at clauses.c:211
#3  0x10075d68 in int82ge (fcinfo=0x1015cfc8) at int8.c:343
#4  0x1005909c in _readArrayRef () at readfuncs.c:924
#5  0x10059b68 in _readSeqScan () at readfuncs.c:600

It looks like the dynamically loaded object ( can't determine
the address of palloc() from the parent.  I assume I need a flag for the
compile either on the main build to export the addresses or on the build
of chkpass to tell it where to look up the addresses.  Anyone been
through this that might be able to shed some light?

D'Arcy J.M. Cain <darcy(at){druid|vex}.net>   |  Democracy is three wolves                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.


pgsql-hackers by date

Next:From: Tom LaneDate: 2001-05-28 16:02:48
Subject: Re: maybe a bug in plpgsql, nulls and empty strings are not the same
Previous:From: D'Arcy J.M. CainDate: 2001-05-28 15:48:00
Subject: Re: New/old style trigger API

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