MNN icon indicating copy to clipboard operation
MNN copied to clipboard

A.so动态依赖MNN.so,dlopen A.so方式运行时概率性crash

Open 486946 opened this issue 1 year ago • 2 comments

请问闭源库A.so,A.so动态依赖MNN.so,那dlopen A.so可以吗? 现在遇到一问题是dlopen A.so方式运行时会概率性报错看着和MNN内多线程有关,若改成隐式动态链接A.so方式运行无问题

486946 avatar Mar 25 '24 06:03 486946

crash 日志是?

jxt1234 avatar Apr 12 '24 09:04 jxt1234

crash 日志是?

D91D34 05-15 17:47:37.583 30895 30895 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** CD91D35 05-15 17:47:37.583 30895 30895 F DEBUG : Native Crash TIME: 167356540 CD91D36 05-15 17:47:37.583 30895 30895 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** CD91D37 05-15 17:47:37.583 30895 30895 F DEBUG : Build fingerprint: 'Nokia/Penguin_00WW/PGN:12/SP1A.210812.016/00WW_0_190:user/release-keys' CD91D38 05-15 17:47:37.583 30895 30895 F DEBUG : Revision: '0' CD91D39 05-15 17:47:37.583 30895 30895 F DEBUG : ABI: 'arm' CD91D3A 05-15 17:47:37.583 30895 30895 F DEBUG : Timestamp: 2022-05-15 17:47:36.621948243+0800 CD91D3B 05-15 17:47:37.583 30895 30895 F DEBUG : Process uptime: 0s CD91D3C 05-15 17:47:37.583 30895 30895 F DEBUG : Cmdline: /vendor/bin/hw/[email protected] CD91D3D 05-15 17:47:37.583 30895 30895 F DEBUG : pid: 10799, tid: 30887, name: gd_oem >>> /vendor/bin/hw/[email protected] <<< CD91D3E 05-15 17:47:37.583 30895 30895 F DEBUG : uid: 1047 SD91D3F 05-15 17:47:37.583 1140 4347 D WindowManager: Relayout Window=Window{ac5b6fa u0 com.android.camera2/com.android.camera.CameraLauncher} ,oldVis=0 ,newVis=0 ,focusMayChange=false CD91D40 05-15 17:47:37.583 30895 30895 F DEBUG : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr -------- CD91D41 05-15 17:47:37.584 30895 30895 F DEBUG : Abort message: '/buildbot/src/android/ndk-release-r21/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:72: abort_message: assertion "cannot create thread specific key for __cxa_get_globals()" failed' CD91D42 05-15 17:47:37.584 30895 30895 F DEBUG : r0 00000000 r1 000078a7 r2 00000006 r3 d317d008 CD91D43 05-15 17:47:37.584 30895 30895 F DEBUG : r4 d317d01c r5 d317d000 r6 00002a2f r7 0000016b CD91D44 05-15 17:47:37.584 30895 30895 F DEBUG : r8 d317d008 r9 d317d018 r10 d317d038 r11 d317d028 CD91D45 05-15 17:47:37.584 30895 30895 F DEBUG : ip 000078a7 sp d317cfd8 lr ecfbe909 pc ecfbe91c CD91D46 05-15 17:47:37.584 30895 30895 F DEBUG : backtrace: CD91D47 05-15 17:47:37.584 30895 30895 F DEBUG : #00 pc 0003891c /apex/com.android.runtime/lib/bionic/libc.so (abort+172) (BuildId: 679771dd555d9b049d218a1062b556ac) CD91D48 05-15 17:47:37.584 30895 30895 F DEBUG : https://github.com/alibaba/MNN/pull/1 pc 00038b93 /apex/com.android.runtime/lib/bionic/libc.so (__assert2+22) (BuildId: 679771dd555d9b049d218a1062b556ac) CD91D49 05-15 17:47:37.584 30895 30895 F DEBUG : https://github.com/alibaba/MNN/pull/2 pc 000969a7 /vendor/lib/libMNN.so (BuildId: 0464cc470db9ffa1f6c450cc0abb71e05870e14c) CD91D4A 05-15 17:47:37.584 30895 30895 F DEBUG : https://github.com/alibaba/MNN/issues/3 pc 00094d71 /vendor/lib/libMNN.so (BuildId: 0464cc470db9ffa1f6c450cc0abb71e05870e14c) CD91D4B 05-15 17:47:37.584 30895 30895 F DEBUG : https://github.com/alibaba/MNN/issues/4 pc 00081daf /apex/com.android.runtime/lib/bionic/libc.so (pthread_once+82) (BuildId: 679771dd555d9b049d218a1062b556ac) CD91D4C 05-15 17:47:37.584 30895 30895 F DEBUG : https://github.com/alibaba/MNN/issues/5 pc 00094d33 /vendor/lib/libMNN.so (__cxa_get_globals_fast+14) (BuildId: 0464cc470db9ffa1f6c450cc0abb71e05870e14c) CD91D4D 05-15 17:47:37.584 30895 30895 F DEBUG : https://github.com/alibaba/MNN/issues/6 pc 00094ce1 /vendor/lib/libMNN.so (__cxa_get_globals+4) (BuildId: 0464cc470db9ffa1f6c450cc0abb71e05870e14c) CD91D4E 05-15 17:47:37.584 30895 30895 F DEBUG : https://github.com/alibaba/MNN/issues/7 pc 000948b7 /vendor/lib/libMNN.so (__cxa_throw+14) (BuildId: 0464cc470db9ffa1f6c450cc0abb71e05870e14c) CD91D4F 05-15 17:47:37.584 30895 30895 F DEBUG : https://github.com/alibaba/MNN/issues/8 pc 0009385d /vendor/lib/libMNN.so (std::__ndk1::__throw_system_error(int, char const*)+56) (BuildId: 0464cc470db9ffa1f6c450cc0abb71e05870e14c) CD91D50 05-15 17:47:37.584 30895 30895 F DEBUG : https://github.com/alibaba/MNN/issues/9 pc 00093a7d /vendor/lib/libMNN.so (std::__ndk1::__thread_specific_ptrstd::__ndk1::__thread_struct::__thread_specific_ptr()+24) (BuildId: 0464cc470db9ffa1f6c450cc0abb71e05870e14c) CD91D51 05-15 17:47:37.584 30895 30895 F DEBUG : https://github.com/alibaba/MNN/issues/10 pc 00093a3d /vendor/lib/libMNN.so (std::__ndk1::__thread_local_data()+40) (BuildId: 0464cc470db9ffa1f6c450cc0abb71e05870e14c) CD91D52 05-15 17:47:37.584 30895 30895 F DEBUG : https://github.com/alibaba/MNN/issues/11 pc 0008cffb /vendor/lib/libMNN.so (BuildId: 0464cc470db9ffa1f6c450cc0abb71e05870e14c) SD91D53 05-15 17:47:37.584 1140 4347 V WindowManager: prepareSurfaceLocked controller mSurfaceController: Surface(name=com.android.systemui.ImageWallpaper)/@0xc537206 mLastHidden: true mLastAlpha: 1.0 mShownAlpha: 1.0 mAlpha: 1.0 w.isParentWindowHidden(): false w.isOnScreen(): false win: Window{2d2be48 u0 com.android.systemui.ImageWallpaper} CD91D54 05-15 17:47:37.584 30895 30895 F DEBUG : https://github.com/alibaba/MNN/issues/12 pc 00080853 /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+40) (BuildId: 679771dd555d9b049d218a1062b556ac) CD91D55 05-15 17:47:37.585 30895 30895 F DEBUG : https://github.com/alibaba/MNN/issues/13 pc 00039875 /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30) (BuildId: 679771dd555d9b049d218a1062b556ac)

486946 avatar Apr 12 '24 13:04 486946

Marking as stale. No activity in 60 days.

github-actions[bot] avatar Jun 12 '24 09:06 github-actions[bot]