aliyun / aliyun-log-android-sdk

MIT License
180 stars 40 forks source link

log_producer_send_thread may crash on 4G memory devices #93

Open phasedarray opened 1 year ago

phasedarray commented 1 year ago
implementation 'com.aliyun.openservices:aliyun-log-android-sdk:2.6.13'

Here're the sentry logs:

OS Version: Android 8.1.0 (CPH1825EX_11_A.11_181115) Report Version: 104

Exception Type: Unknown (SIGSEGV)

Application Specific Information: Segfault

Thread 0 Crashed: 0 libc.so 0x73e7adcae0 strlen 1 libart.so 0x736662091c art::Thread::Attach 2 libart.so 0x73665fc5a0 art::Runtime::AttachCurrentThread 3 libart.so 0x736648a548 + 495637275976 4 libsls_producer.so 0x732864dbf0 set_get_time_unix_func 5 libsls_producer.so 0x73286529b8 log_producer_send_fun 6 libsls_producer.so 0x73286528d8 log_producer_send_thread 7 libc.so 0x73e7b283c0 + 497808475072 8 libc.so 0x73e7adec98 + 497808174232

m4lHlRFAlj nUMMfrJRX7 EvsgxVpzBq

bladeofgod commented 1 year ago

me too. log like this: 2023-10-23 17:28:36.195 551-551 DEBUG pid-551 A 2023-10-23 17:28:36.195 551-551 DEBUG pid-551 A Build fingerprint: 'HUAWEI/HMA-AL00/HWHMA:10/HUAWEIHMA-AL00/10.1.0.163C00:user/release-keys' 2023-10-23 17:28:36.195 551-551 DEBUG pid-551 A Revision: '0' 2023-10-23 17:28:36.195 551-551 DEBUG pid-551 A ABI: 'arm64' 2023-10-23 17:28:36.192 1551-2048 chatty system_server I uid=1000(system) InputDispatcher identical 1 line 2023-10-23 17:28:36.193 1551-2048 InputDispatcher system_server I stylus touch down, set lcd event 1 2023-10-23 17:28:36.196 1551-1676 NavigationBarPolicy system_server I pointY:1292.0realSize.y:2244HIT_REGION_TO_MAX:32 2023-10-23 17:28:36.199 551-551 DEBUG pid-551 A SYSVMTYPE: Maple APPVMTYPE: Art 2023-10-23 17:28:36.200 551-551 DEBUG pid-551 A Timestamp: 2023-10-23 17:28:36+0800 2023-10-23 17:28:36.200 551-551 DEBUG pid-551 A pid: 29490, tid: 32662, name: Thread-6 >>> cn.chuangzuomao.atls_win_win <<< 2023-10-23 17:28:36.200 551-551 DEBUG pid-551 A uid: 10247 2023-10-23 17:28:36.200 551-551 DEBUG pid-551 A signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr -------- 2023-10-23 17:28:36.200 551-551 DEBUG pid-551 A Abort message: 'Throwing new exception 'no non-static method "Lcom/aliyun/sls/android/producer/LogProducerConfig$a;.getTimeUnix()J"' with unexpected pending exception: java.lang.NoSuchMethodError: no non-static method "Lcom/aliyun/sls/android/producer/LogProducerConfig$a;.getTimeUnix()J" (Throwable with empty stack trace) ' 2023-10-23 17:28:36.200 551-551 DEBUG pid-551 A x0 0000000000000000 x1 0000000000007f96 x2 0000000000000006 x3 0000007bbe723670 2023-10-23 17:28:36.200 551-551 DEBUG pid-551 A x4 0000000000000000 x5 0000000000000000 x6 0000000000000000 x7 7f7f7f7f7f7f7f7f 2023-10-23 17:28:36.200 551-551 DEBUG pid-551 A x8 00000000000000f0 x9 a3224b93f6667b61 x10 0000000000000001 x11 0000000000000000 2023-10-23 17:28:36.200 551-551 DEBUG pid-551 A x12 fffffff0fffffbdf x13 ffffffffffffffff x14 0000000000000004 x15 ffffffffffffffff 2023-10-23 17:28:36.200 551-551 DEBUG pid-551 A x16 0000007c50c5da08 x17 0000007c50c3d7c0 x18 0000007b3cca0000 x19 0000000000007332 2023-10-23 17:28:36.200 551-551 DEBUG pid-551 A x20 0000000000007f96 x21 00000000ffffffff x22 0000007b4293cf80 x23 0000007bcebf1000 2023-10-23 17:28:36.200 551-551 DEBUG pid-551 A x24 0000007bce683119 x25 0000007bcebf3000 x26 0000007c543b8258 x27 0000007bcebf3000 2023-10-23 17:28:36.200 551-551 DEBUG pid-551 A x28 0000000000000000 x29 0000007bbe723710 2023-10-23 17:28:36.200 551-551 DEBUG pid-551 A sp 0000007bbe723650 lr 0000007c50bf2640 pc 0000007c50bf266c 2023-10-23 17:28:36.203 551-551 DEBUG pid-551 A
backtrace: 2023-10-23 17:28:36.203 551-551 DEBUG pid-551 A #00 pc 000000000007066c /apex/com.android.runtime/lib64/bionic/libc.so (abort+160) (BuildId: b91c775ccc9b0556e91bc575a2511cd0) 2023-10-23 17:28:36.203 551-551 DEBUG pid-551 A #01 pc 00000000004e1a4c /apex/com.android.runtime/lib64/libart.so (art::Runtime::Abort(char const)+2512) (BuildId: 73a2145672853571ef40097e4441d44e) 2023-10-23 17:28:36.203 551-551 DEBUG pid-551 A #02 pc 000000000000c600 /system/lib64/libbase.so (android::base::LogMessage::~LogMessage()+684) (BuildId: 7e6f8e823512d07994e0f2250d7d708b) 2023-10-23 17:28:36.203 551-551 DEBUG pid-551 A #03 pc 000000000052bcf4 /apex/com.android.runtime/lib64/libart.so (art::Thread::AssertNoPendingExceptionForNewException(char const) const+1224) (BuildId: 73a2145672853571ef40097e4441d44e) 2023-10-23 17:28:36.203 551-551 DEBUG pid-551 A #04 pc 000000000052ff38 /apex/com.android.runtime/lib64/libart.so (art::Thread::ThrowNewExceptionF(char const, char const, ...)+176) (BuildId: 73a2145672853571ef40097e4441d44e) 2023-10-23 17:28:36.203 551-551 DEBUG pid-551 A #05 pc 00000000003fce78 /apex/com.android.runtime/lib64/libart.so (art::FindMethodID(art::ScopedObjectAccess&, _jclass, char const, char const, bool)+404) (BuildId: 73a2145672853571ef40097e4441d44e) 2023-10-23 17:28:36.203 551-551 DEBUG pid-551 A #06 pc 00000000003a6634 /apex/com.android.runtime/lib64/libart.so (art::JNI::GetMethodID(_JNIEnv, _jclass, char const, char const)+680) (BuildId: 73a2145672853571ef40097e4441d44e) 2023-10-23 17:28:36.203 551-551 DEBUG pid-551 A #07 pc 0000000000009b94 /data/app/cn.chuangzuomao.atls_win_win-hgnVBw4h2yVPAEWCuMvEwg==/base.apklibsls_producer.so (offset 0x1685000) (set_get_time_unix_func+192) (BuildId: d2885341c3c03f9e40fc8f0fba51eab162aa93cc) 2023-10-23 17:28:36.203 551-551 DEBUG pid-551 A #08 pc 000000000000dca0 /data/app/cn.chuangzuomao.atls_win_win-hgnVBw4h2yVPAEWCuMvEwg==/base.apklibsls_producer.so (offset 0x1685000) (_rebuild_time+176) (BuildId: d2885341c3c03f9e40fc8f0fba51eab162aa93cc) 2023-10-23 17:28:36.203 551-551 DEBUG pid-551 A #09 pc 000000000000e0f8 /data/app/cn.chuangzuomao.atls_win_win-hgnVBw4h2yVPAEWCuMvEwg==/base.apklibsls_producer.so (offset 0x1685000) (log_producer_send_fun+616) (BuildId: d2885341c3c03f9e40fc8f0fba51eab162aa93cc) 2023-10-23 17:28:36.203 551-551 DEBUG pid-551 A #10 pc 000000000000de6c /data/app/cn.chuangzuomao.atls_win_win-hgnVBw4h2yVPAEWCuMvEwg==/base.apklibsls_producer.so (offset 0x1685000) (log_producer_send_thread+80) (BuildId: d2885341c3c03f9e40fc8f0fba51eab162aa93cc) 2023-10-23 17:28:36.203 551-551 DEBUG pid-551 A #11 pc 00000000000cf7c0 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void)+36) (BuildId: b91c775ccc9b0556e91bc575a2511cd0) 2023-10-23 17:28:36.203 551-551 DEBUG pid-551 A #12 pc 00000000000721a8 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: b91c775ccc9b0556e91bc575a2511cd0)

bladeofgod commented 1 year ago

解决了,因为混淆的问题