Reference counting bug in ld-linux.so.2 (2.1.2, 2.1.3, 2.1.9x, et. al.)

H . J . Lu hjl@lucon.org
Thu Oct 19 11:27:00 GMT 2000


On Thu, Oct 19, 2000 at 11:15:38AM -0700, Allen Bauer wrote:
> >
> > Please verify it first.
> 
> Your patch seems to fix the problem, however I have a question about it.
> The patch will only dec the reference count on dependency shared objects
> that were themselves loaded (l_type == lt_loaded), however later on in that

This check may not be necessary.

> function a loop goes through that list and decs the ref counts without

I don't think they are the same list. One is map->l_initfini and
the other is map->l_searchlist.r_list. Ulrich, are they the same list?
	    

> regard to whether or not they were lt_loaded.  For consistency, shouldn't
> that test be removed?  I'm going to give it a try here, but I'd like your
> thoughts in this.
> 

H.J.


More information about the Libc-alpha mailing list