This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: everything is broken


Jakub Jelinek <jakub@redhat.com> writes:

> 2000-05-08  Jakub Jelinek  <jakub@redhat.com>
> 
> 	* elf/dl-fini.c (_dl_fini): Bump l_opencount of all objects so that
> 	they are not dlclose'd from underneath us.

Well, this does not solve all the problems but it's better then the
current situation so I checked the patch in.  I'll try working on a
better solution though I don't see, in the moment how this is
possible.

The problem I'm having is that the dependency between the object
calling dlopen() and the opened object is not recorded and therefore
not taken into account when computing the dependencies.  But if we now
sort the dlopen()ed object before the one which opened it, the dlclose
call in the latter will work on a defunct descriptor.  Maybe even
worse now since the opencount is bumped and the descriptor seems to be
intact.

I'll have a few hours of flight ahead of me when I can think about this.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]