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

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

Open
486946 opened this issue Mar 25, 2024 · 3 comments
Open

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

486946 opened this issue Mar 25, 2024 · 3 comments
Labels

Comments

@486946
Copy link

486946 commented Mar 25, 2024

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

@486946 486946 changed the title 请问闭源库A.so,A.so动态依赖MNN.so,那dlopen A.so可以吗? so动态依赖MNN.so,dlopen A.so概率性crash Mar 25, 2024
@486946 486946 changed the title so动态依赖MNN.so,dlopen A.so概率性crash A.so动态依赖MNN.so,dlopen A.so概率性crash Mar 25, 2024
@486946 486946 changed the title A.so动态依赖MNN.so,dlopen A.so概率性crash A.so动态依赖MNN.so,dlopen A.so方式运行时概率性crash Mar 25, 2024
@jxt1234
Copy link
Collaborator

jxt1234 commented Apr 12, 2024

crash 日志是?

@486946
Copy link
Author

486946 commented Apr 12, 2024

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/android.hardware.camera.provider@2.4-service
CD91D3D 05-15 17:47:37.583 30895 30895 F DEBUG : pid: 10799, tid: 30887, name: gd_oem >>> /vendor/bin/hw/android.hardware.camera.provider@2.4-service <<<
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 : #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 : #2 pc 000969a7 /vendor/lib/libMNN.so (BuildId: 0464cc470db9ffa1f6c450cc0abb71e05870e14c)
CD91D4A 05-15 17:47:37.584 30895 30895 F DEBUG : #3 pc 00094d71 /vendor/lib/libMNN.so (BuildId: 0464cc470db9ffa1f6c450cc0abb71e05870e14c)
CD91D4B 05-15 17:47:37.584 30895 30895 F DEBUG : #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 : #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 : #6 pc 00094ce1 /vendor/lib/libMNN.so (__cxa_get_globals+4) (BuildId: 0464cc470db9ffa1f6c450cc0abb71e05870e14c)
CD91D4E 05-15 17:47:37.584 30895 30895 F DEBUG : #7 pc 000948b7 /vendor/lib/libMNN.so (__cxa_throw+14) (BuildId: 0464cc470db9ffa1f6c450cc0abb71e05870e14c)
CD91D4F 05-15 17:47:37.584 30895 30895 F DEBUG : #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 : #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 : #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 : #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 : #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 : #13 pc 00039875 /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30) (BuildId: 679771dd555d9b049d218a1062b556ac)

Copy link

Marking as stale. No activity in 60 days.

@github-actions github-actions bot added the stale label Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants