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

多个模型并行 用mnn跑多线程 且mnn开启use threadpool,分别创建各自Interpreter和session,会偶现crash #2671

Closed
xin486946 opened this issue Nov 23, 2023 · 1 comment
Labels

Comments

@xin486946
Copy link

xin486946 commented Nov 23, 2023

MNN2.0版本,crash如下:

C557B99 11-17 09:03:43.707 2879 21723 F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x3f9dd0a2bf0957e4 in tid 21723 (lwp), pid 2879 (CapRequest_0)
C55AD5C 11-17 09:03:46.171 24179 24179 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
C55AD5E 11-17 09:03:46.171 24179 24179 F DEBUG : Build fingerprint: 'UNISOC/ums9621_1h10_native/ums9621_1h10:14/UP1A.230623.007/46526:userdebug/test-keys'
C55AD5F 11-17 09:03:46.171 24179 24179 F DEBUG : Revision: '0'
C55AD60 11-17 09:03:46.171 24179 24179 F DEBUG : ABI: 'arm64'
C55AD61 11-17 09:03:46.171 24179 24179 F DEBUG : Timestamp: 2023-11-17 09:03:44.191060958+0800
C55AD62 11-17 09:03:46.171 24179 24179 F DEBUG : Process uptime: 0s
C55AD63 11-17 09:03:46.171 24179 24179 F DEBUG : Cmdline: /vendor/bin/hw/android.hardware.camera.provider@2.4-service_64
C55AD81 11-17 09:03:46.173 24179 24179 F DEBUG : pid: 2879, tid: 21723, name: lwp >>> /vendor/bin/hw/android.hardware.camera.provider@2.4-service_64 <<<
C55AD82 11-17 09:03:46.174 24179 24179 F DEBUG : uid: 1047
C55ADAF 11-17 09:03:46.180 24179 24179 F DEBUG : tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE)
C55ADB0 11-17 09:03:46.180 24179 24179 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x3f9dd0a2bf0957e4
C55ADB1 11-17 09:03:46.180 24179 24179 F DEBUG : x0 b400007cb9152bc0 x1 3f9dd0a2bf0957e4 x2 000000000000000c x3 b400007b18b51090
C55ADB2 11-17 09:03:46.180 24179 24179 F DEBUG : x4 0000000000090000 x5 0000000000000003 x6 0000000000000020 x7 0000000000000240
C55ADB3 11-17 09:03:46.180 24179 24179 F DEBUG : x8 0000000000000000 x9 0000000000000010 x10 0000000000000005 x11 0000000000000030
C55ADB4 11-17 09:03:46.180 24179 24179 F DEBUG : x12 000000000000000c x13 b400007cb9152980 x14 b400007b18b50fe0 x15 0000000000000003
C55ADB5 11-17 09:03:46.180 24179 24179 F DEBUG : x16 0000000000000003 x17 b400007b056e5bc0 x18 00000000000000c8 x19 b400007d891a0630
C55ADB6 11-17 09:03:46.180 24179 24179 F DEBUG : x20 0000000000000008 x21 b400007cb9152980 x22 b400007b18b50fc0 x23 b400007b18b51050
C55ADB7 11-17 09:03:46.180 24179 24179 F DEBUG : x24 000000000000000c x25 000000000000016c x26 0000000000000009 x27 b400007af8cecfc0
C55ADB8 11-17 09:03:46.180 24179 24179 F DEBUG : x28 b400007b056a2fc0 x29 0000000000001110
C55ADB9 11-17 09:03:46.180 24179 24179 F DEBUG : lr 0000007ba1b35918 sp 0000007af9c7ee40 pc 0000007ba1b510a0 pst 0000000060001000
C55ADBA 11-17 09:03:46.180 24179 24179 F DEBUG : 18 total frames
C55ADBB 11-17 09:03:46.180 24179 24179 F DEBUG : backtrace:
C55ADBC 11-17 09:03:46.180 24179 24179 F DEBUG : #00 pc 00000000001450a0 /vendor/lib64/libMNN.so (BuildId: 2fd72eb6f7752a5ff86dd344a678565ac83101bb)
C55ADBD 11-17 09:03:46.181 24179 24179 F DEBUG : #1 pc 0000000000129914 /vendor/lib64/libMNN.so (BuildId: 2fd72eb6f7752a5ff86dd344a678565ac83101bb)
C55ADBE 11-17 09:03:46.181 24179 24179 F DEBUG : #2 pc 0000000000129a5c /vendor/lib64/libMNN.so (BuildId: 2fd72eb6f7752a5ff86dd344a678565ac83101bb)
C55ADC0 11-17 09:03:46.181 24179 24179 F DEBUG : #3 pc 0000000000110eec /vendor/lib64/libMNN.so (MNN_UNN::ThreadPool::enqueue(std::__ndk1::pair<std::__ndk1::function<void (int)>, int>&&, int)+108) (BuildId: 2fd72eb6f7752a5ff86dd344a678565ac83101bb)
C55ADC1 11-17 09:03:46.181 24179 24179 F DEBUG : #4 pc 0000000000128198 /vendor/lib64/libMNN.so (BuildId: 2fd72eb6f7752a5ff86dd344a678565ac83101bb)
C55ADC2 11-17 09:03:46.181 24179 24179 F DEBUG : #5 pc 00000000000521f8 /vendor/lib64/libMNN.so (BuildId: 2fd72eb6f7752a5ff86dd344a678565ac83101bb)
C55ADC3 11-17 09:03:46.181 24179 24179 F DEBUG : #6 pc 0000000000058e9c /vendor/lib64/libMNN.so (MNN_UNN::Session::run() const+52) (BuildId: 2fd72eb6f7752a5ff86dd344a678565ac83101bb)

Copy link

Marking as stale. No activity in 60 days.

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

1 participant