[PATCH] Fix freeing of initial dtv.

Ulrich Drepper drepper@redhat.com
Mon Mar 3 18:32:00 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Martin Schwidefsky wrote:

> testing with nptl on s390-64 revealed a bug in _dl_deallocate_tls. The
> dtv array may only be freed if it is not the initial dtv since the initial
> dtv is allocated by the dynamic linker and this "early" memory is
> not freeable. Why this does not crash i386 or s390-32 is a mystery.
> Most probably

Indeed, this is correct.  I've applied the patch.  Thanks,

- -- 
- --------------.                        ,-.            444 Castro Street
Ulrich Drepper \    ,-----------------'   \ Mountain View, CA 94041 USA
Red Hat         `--' drepper at redhat.com `---------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+Y5vz2ijCOnn/RHQRAo+dAJ91XPzq9NvcGeTCmFWi7VOwEwD8FACfeQsS
8AN488bryIISvqqwFXTcID4=
=F8f2
-----END PGP SIGNATURE-----



More information about the Libc-hacker mailing list