Return-Path: pg_adm@postgres.berkeley.edu
Received: by postgres.Berkeley.EDU (5.61/1.29)
	id AA18977; Tue, 6 Jul 93 16:29:10 -0700
Message-Id: <9307062329.AA18977@postgres.Berkeley.EDU>
From: dugan@torg.wpi.edu
Subject: Dynamic Loader Problems?
To: postgres@postgres.berkeley.edu
Sender: pg_adm@postgres.berkeley.edu
To: postgres@postgres.berkeley.edu
Date: Tue, 6 Jul 1993 19:34:35 +22321159 (EDT)
Cc: stdbms@cs.WPI.EDU
X-Mailer: ELM [version 2.4 PL0]
Content-Type: text
Content-Length: 1133      

Hi,

I have a 1/4 Meg .o file that I am trying to dynamically
load into the backend.  I am running on a SPARCstation IPC.
I am compiling things with gcc.

I created it using the ld command that combines multiple
.o files into a single .o:

	${LD} -d -r -t  ${POBJS} ${LIBDIRS} ${PLIBS}  -o gaeatime.o

SYMPTOM 1:
----------
I've been getting really flaky results depending on the
order that issue queries.  I was able recreate one scenario
several times and it went something like this:

	1) Issue a postquel query that uses a user defined function
	2) gaeatime.o is dynamically loaded
	3) The user defined function is executed
	4) The user defined function calls another function
           inside gaeatime.o
	5) We never arrive at the new function.

SYMPTOM 2:
----------
	1) Issue the load statement for gaeatime.o
	2) Issue the load statement again
	3) The backend crashes.

-- 
-----------------------------------------------------
"We're only immortal for a limited time..."

Bob Dugan	   dugan@cs.wpi.edu  508-799-5150
Graduate Student   WPI CS Dept., Worcester, MA 01609
-----------------------------------------------------
