Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

koom-thread 回退栈unknown,稳定复现。无法获取初始化之后加载的so的虚拟内存映射信息。 #185

Open
xiong0320 opened this issue Apr 28, 2022 · 0 comments

Comments

@xiong0320
Copy link

修改官方thread demo将加载触发thread泄漏的so加载放在点击之后,稳定复现回退栈unknown的情况。
修改后代码如下:
mTest10Btn.setOnClickListener {
if (loadSoQuietly("native-leak-test")) {
triggerLeak(10 * 1000)
}
}
触发后输出如下:
2022-04-27 19:09:40.186 16272-16423/com.kwai.koom.demo I/ThreadLeakTest: tid: 16994
createTime: 242760806850934 Byte
startTime: 242760807118642
endTime: 242760807162132
name: test_thread_2
createCallStack:
#00 pc 0000007909f7604c
#1 pc 0000007909f77670
#2 pc 0000007909f773dc
#3 pc 0000007909f772bc
#4 pc 0000007909f77240
#5 pc 0000007909f76f00
#6 pc 0000000000092474 /system/lib64/libc.so (__pthread_start(void*)+36) (BuildId: 464bb288ce09d53ee1392dd8e1156940)
#7 pc 00000000000239a8 /system/lib64/libc.so (__start_thread+68) (BuildId: 464bb288ce09d53ee1392dd8e1156940)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant