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

pthread_mutex_lock called on a destroyed mutex #84

Open
zzzzzzzdf opened this issue Oct 11, 2024 · 2 comments
Open

pthread_mutex_lock called on a destroyed mutex #84

zzzzzzzdf opened this issue Oct 11, 2024 · 2 comments

Comments

@zzzzzzzdf
Copy link

If software crashes during the development process, can you help solve it? We will pay compensation.

09-29 16:08:24.376 18635 18635 F DEBUG : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
09-29 16:08:24.376 18635 18635 F DEBUG : Abort message: 'FORTIFY: pthread_mutex_lock called on a destroyed mutex (0xb400007585f09698)'
09-29 16:08:24.376 18635 18635 F DEBUG : x0 0000000000000000 x1 000000000000280e x2 0000000000000006 x3 0000007ff7979fe0
09-29 16:08:24.376 18635 18635 F DEBUG : x4 0000000080808080 x5 0000000080808080 x6 0000000080808080 x7 8080808080808080
09-29 16:08:24.376 18635 18635 F DEBUG : x8 00000000000000f0 x9 00000076a4690cb0 x10 0000000000000001 x11 00000076a47057c8
09-29 16:08:24.376 18635 18635 F DEBUG : x12 0101010101010101 x13 0000001182dd5e44 x14 001d5c82f86674e3 x15 0000000000000028
09-29 16:08:24.376 18635 18635 F DEBUG : x16 00000076a4770a80 x17 00000076a4749450 x18 0000007ff7979de8 x19 000000000000280e
09-29 16:08:24.376 18635 18635 F DEBUG : x20 000000000000280e x21 00000000ffffffff x22 0000007589eee976 x23 00000076be18b000
09-29 16:08:24.376 18635 18635 F DEBUG : x24 000000760b400880 x25 0000007ff797a358 x26 00000000182a0001 x27 0000000000000008
09-29 16:08:24.376 18635 18635 F DEBUG : x28 0000007ff797a250 x29 0000007ff797a060
09-29 16:08:24.376 18635 18635 F DEBUG : lr 00000076a46f6748 sp 0000007ff7979fc0 pc 00000076a46f6774 pst 0000000000001000
09-29 16:08:24.376 18635 18635 F DEBUG : backtrace:
09-29 16:08:24.376 18635 18635 F DEBUG : #00 pc 000000000008d774 /apex/com.android.runtime/lib64/bionic/libc.so (abort+168) (BuildId: 449f781894033dce6346794a1ee593e0)
09-29 16:08:24.376 18635 18635 F DEBUG : #1 pc 000000000008f5d4 /apex/com.android.runtime/lib64/bionic/libc.so (__fortify_fatal(char const*, ...)+128) (BuildId: 449f781894033dce6346794a1ee593e0)
09-29 16:08:24.376 18635 18635 F DEBUG : #2 pc 00000000000f67c0 /apex/com.android.runtime/lib64/bionic/libc.so (HandleUsingDestroyedMutex(pthread_mutex_t*, char const*)+68) (BuildId: 449f781894033dce6346794a1ee593e0)
09-29 16:08:24.376 18635 18635 F DEBUG : #3 pc 00000000000f6640 /apex/com.android.runtime/lib64/bionic/libc.so (pthread_mutex_lock+248) (BuildId: 449f781894033dce6346794a1ee593e0)
09-29 16:08:24.376 18635 18635 F DEBUG : #4 pc 000000000000dbd4 /data/app/~~sqiumwBYAfD0cgAe9W6wIg==/com.medlander.mirrorprivate-yWGY8E_nKl4xx_zPxFa3aA==/lib/arm64/libUVCCamera.so (UVCControl::setFocusAbsolute(int)+52) (BuildId: 05777e4857fb63f9e95e39a13769ea354c70255e)
09-29 16:08:24.376 18635 18635 F DEBUG : #5 pc 000000000021a354 /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+148) (BuildId: 53aea03d478a82db6c483ee54c0d91e3)
09-29 16:08:24.376 18635 18635 F DEBUG : #6 pc 000000000020a910 /apex/com.android.art/lib64/libart.so (nterp_helper+5648) (BuildId: 53aea03d478a82db6c483ee54c0d91e3)
09-29 16:08:24.376 18635 18635 F DEBUG : #7 pc 0000000000b49976 anonymous:75893a5000 (com.serenegiant.usb.UVCControl.setFocusAbsolute+6)
09-29 16:08:24.376 18635 18635 F DEBUG : #8 pc 000000000204162c /memfd:jit-cache (deleted) (com.medlander.mirrorprivate.activity.QuickFunctionActivity$3.onProgressChanged+316)
09-29 16:08:24.376 18635 18635 F DEBUG : #9 pc 00000000008a04e4 /system/framework/arm64/boot-framework.oat (android.widget.SeekBar.onProgressRefresh+116) (BuildId: 0dc969e64662b3dde9f437cd79c72fea75b69150)
09-29 16:08:24.376 18635 18635 F DEBUG : #10 pc 0000000000832a94 /system/framework/arm64/boot-framework.oat (android.widget.ProgressBar.doRefreshProgress+1188) (BuildId: 0dc969e64662b3dde9f437cd79c72fea75b69150)
09-29 16:08:24.376 18635 18635 F DEBUG : #11 pc 0000000000832e38 /system/framework/arm64/boot-framework.oat (android.widget.ProgressBar.refreshProgress+152) (BuildId: 0dc969e64662b3dde9f437cd79c72fea75b69150)
09-29 16:08:24.376 18635 18635 F DEBUG : #12 pc 0000000000835504 /system/framework/arm64/boot-framework.oat (android.widget.ProgressBar.setProgressInternal+196) (BuildId: 0dc969e64662b3dde9f437cd79c72fea75b69150)
09-29 16:08:24.376 18635 18635 F DEBUG : #13 pc 00000000008350d4 /system/framework/arm64/boot-framework.oat (android.widget.ProgressBar.setProgress+84) (BuildId: 0dc969e64662b3dde9f437cd79c72fea75b69150)

@fasei
Copy link

fasei commented Oct 21, 2024

你好,请问这个问题解决了吗? 我也是遇到了相同的问题,出现问题后,程序就会崩溃

@zzzzzzzdf
Copy link
Author

应该不是必现吧? 我可能是因为频繁调用setFocusAbsolute导致库里互斥锁报错,所以修改了调用setFocusAbsolute的逻辑。

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