Re: fix? : stk dumping core when loading shared objects

From: Erick Gallesio <eg_at_kaolin.unice.fr>
Date: Fri, 10 Mar 1995 11:42:08 +0000

> Moises Lejter writes
> Several people had reported problems where stk would dump core on
> attempting to load a shared object file. It had not happened to me
> while using the base stk interpreter. However, as soon as I linked a
> version of stk with additional code of my own, it happened to me, too.
>
> It looks to me like Sun Solaris 2.3 does not like programs to invoke
> dlopen(NULL,1) more than once. At any rate, that is what I changed in
> dynload.c, and my extended interpreter now works as it should. I do
> not believe my change will break anything, nor adversely interact with
> anything - and it might even speed things up, since dlopen(NULL,1)
> will only be invoked once.

I have applied this patch. I don't know if it corrects all the dynamic
problems under Solaris since I have not experienced them myself (everything
seems correct
for me, with 2.4 and gcc). So I don't know if people will be happy with this
patch but at least Moises should be =:-)

                -- Erick
Received on Fri Mar 10 1995 - 11:44:10 CET

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST