commit | 0a26727ea2b3b9afd8d019a91777f350d06dd8dc | [log] [tgz] |
---|---|---|
author | Arun Sharma <asharma@fb.com> | Sat Oct 29 16:53:37 2011 -0700 |
committer | Arun Sharma <asharma@fb.com> | Sat Oct 29 17:12:36 2011 -0700 |
tree | 8b2ffcf6283007ca8745f5f4c430910df4cf2a1f | |
parent | 08077a4962c4e606598f9f0e54b515b3c882be10 [diff] |
Fix TLS destructor ordering problems Glibc calls thread-specific dtors in the order in which the keys were added, so the first dtor is the trace_cache_free() one. Then thread-specific data for some other key is free()d, which calls into unw_backtrace(), which uses dangling cache and munmapped cache->frames. [ Minor rename + compiler warning fix: asharma@fb.com ] Signed-off-by: Paul Pluzhnikov <ppluzhnikov@google.com>