commit | 97e3e2d2f47d11747b9fc788fc906726b661e024 | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Thu May 04 17:12:57 2017 -0700 |
committer | Josh Gao <jmgao@google.com> | Fri May 05 14:58:12 2017 -0700 |
tree | 048c949d533b6c7e3d796b224eab2e1519a402d4 | |
parent | d10e87880dc4fe6909fdc2cb6279ea4471c9dd8f [diff] |
debuggerd_handler: use syscall(__NR_get[pt]id) instead of get[pt]id. bionic's cached values for getpid/gettid can be invalid if the crashing process manually invoked clone to create a thread or process, which will lead the crash_dump refusing to do anything, because it sees the actual values. Use the getpid/gettid syscalls directly to ensure correct values on this end. Bug: http://b/37769298 Test: debuggerd_test Change-Id: I0b1e652beb1a66e564a48b88ed7fa971d61c6ff9