commit | e22701ee8a8246e9648a60ebdbed2c415c103c91 | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Mon Oct 23 14:25:08 2017 -0700 |
committer | Josh Gao <jmgao@google.com> | Thu Oct 26 14:20:17 2017 -0700 |
tree | 499fe42dcb3b6bbd31bfbaeff09398b34e02e2ac | |
parent | b9670bb437d493f834c6ba3096946583d2904b72 [diff] |
libbacktrace: remove exit time destructors. If libbacktrace is statically linked into a library that interposes libc, exit-time destructors can lead to a segfault upon exit if static variables are used after their destruction. Remove the one use of a static variable (with inconsequential performance impact of less than 1us per backtrace), and enable -Wexit-time-destructors to ensure this stays fixed in the future. Test: mma Change-Id: Icdaf1cf1c1f166cf501d9ecd1983c44e4305f7e9