简体   繁体   中英

unw_init_remote failed with UNW_EBADREG

On android, while collecting traces of a particular native process, I observed that the backtrace of a particular thread of the process was not collected(libunwind is used to collect the backtrace).

First attempt:

12-29 20:47:20.902 13088 13088 W libbacktrace: virtual bool UnwindPtrace::Unwind(size_t, ucontext_t *): unw_init_remote failed -3

12-29 20:47:20.902 13088 13088 E DEBUG   : Unwind failed: tid = 1544: Setup failed

Second attempt:

12-29 20:47:54.683 13135 13135 W libbacktrace: virtual bool UnwindPtrace::Unwind(size_t, ucontext_t *): unw_init_remote failed -3

12-29 20:47:54.683 13135 13135 E DEBUG   : Unwind failed: tid = 1544: Setup failed

From the docs, -3 seems to be UNW_EBADREG. But I am unable to figure out when exactly is this error code is returned?

Any pointers appreciated!

获得了有关为何该线程的回溯失败失败的更多信息-该线程处于“磁盘睡眠”或“ D”状态。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM