mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Also set r->r_map when unmapping the first object in a namespace.
When unmapping the first object in a namespace, the runtime linker did not update the externally visible pointer. This resulted in debuggers seeing pointers to memory that had been freed.
This commit is contained in:
@ -641,7 +641,7 @@ _dl_close_worker (struct link_map *map)
|
||||
#ifdef SHARED
|
||||
assert (nsid != LM_ID_BASE);
|
||||
#endif
|
||||
ns->_ns_loaded = imap->l_next;
|
||||
r->r_map = ns->_ns_loaded = imap->l_next;
|
||||
}
|
||||
|
||||
--ns->_ns_nloaded;
|
||||
|
Reference in New Issue
Block a user