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

报错 <dlopen>: __loader_dlopen: Socket operation on non-socket #285

Open
yinhb1993 opened this issue Nov 12, 2024 · 2 comments
Open

报错 <dlopen>: __loader_dlopen: Socket operation on non-socket #285

yinhb1993 opened this issue Nov 12, 2024 · 2 comments

Comments

@yinhb1993
Copy link

在koom-demo中build.gradle中新增:
ndk { abiFilters 'armeabi-v7a', 'arm64-v8a' }
使用
ForkStripHeapDumper.getInstance().dump( this.getFilesDir().getAbsolutePath() + File.separator + "test.hprof");
报错如下
android_api_ = 28
CHECK failed at D:/project/private/koom/koom-common/kwai-android-base/src/main/cpp/kwai_linker/kwai_dlfcn.cpp (line: 92) - <dlopen>: __loader_dlopen: Socket operation on non-socket
CHECK failed at D:/project/private/koom/koom-fast-dump/src/main/cpp/hprof_dump.cpp (line: 62) - <Initialize>: handle: Socket operation on non-socket
before suspend and fork.
enter native_bridge2_getTrampoline Java_com_kwai_koom_fastdump_ForkJvmHeapDumper_suspendAndFork, trampoline_addr 0x7ffff3141060
CHECK failed at D:/project/private/koom/koom-fast-dump/src/main/cpp/hprof_dump.cpp (line: 113) - <SuspendAndFork>: init_done_: Socket operation on non-socket
dump result false
断点发现hprof_dump.cpp中的fork函数返回-1.请大佬看看是否是库兼容性问题

@Xinmeng322
Copy link

Xinmeng322 commented Nov 12, 2024 via email

@yinhb1993
Copy link
Author

上述问题在雷电模拟器Android9,cpu架构为x86_64,使用真机无此问题。

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

2 participants