commit | 63fbdb6440ce5009ef0bfd3d1e1cc60b46004973 | [log] [tgz] |
---|---|---|
author | Igor Murashkin <iam@google.com> | Tue Aug 19 11:48:52 2014 -0700 |
committer | Igor Murashkin <iam@google.com> | Tue Aug 19 11:48:52 2014 -0700 |
tree | 5e971663e4ae8aceae392423e44aaa97d1ff74ba | |
parent | 342a2264b96ab05dc8fdbfa8bbe354ce2f4b06ca [diff] |
libutils: Don't segfault ProcessCallStack when getting thread name fails There's an inherent race in trying to read out the thread name from the system and the thread closing out on its own (and thus being removed from procfs). Try to handle this by formatting the thread name unconditionally with the tid when getting the thread name fails (instead of dereferencing NULL and crashing). Bug: 15406837 Change-Id: Ibf2208b8ce345589e7e9c57e6a307728d1121c5d