dinhvh / libetpan

Mail Framework for C Language
www.etpan.org
Other
612 stars 284 forks source link

A hidden iconv error #442

Open blackyhn opened 10 months ago

blackyhn commented 10 months ago

Hello, I'm having a crash in production. I guess it is related to the iOS 17.1 upgrade.

Im having this in my crashlog:

Thread 1 name: Thread 1 Crashed: 0 libsystem_kernel.dylib 0x00000001d95e501c pthread_kill + 8 (:-1) 1 libsystem_pthread.dylib 0x00000001fbac5680 pthread_kill + 268 (pthread.c:1681) 2 libsystem_c.dylib 0x000000019a145b90 abort + 180 (abort.c:118) 3 libsystem_c.dylib 0x000000019a144e80 __assert_rtn + 284 (assert.c:94) 4 libiconv_std.dylib 0x0000000235982ca8 _citrus_iconv_std_iconv_convert.cold.2 + 44 (citrus_iconv_std.c:1059) 5 libiconv_std.dylib 0x00000002359827a0 _citrus_iconv_std_iconv_convert + 2884 (citrus_iconv_std.c:1059) 6 libiconv.2.dylib 0x00000001fbbe2b28 bsd_iconv + 76 (bsd_iconv.c:144) 7 TestApp 0x0000000103d6e17c lepIConvInternal + 160 (CTCoreMessage.m:1103) 8 TestApp 0x0000000103d6e17c lepIConv + 188 (CTCoreMessage.m:1172) 9 TestApp 0x0000000103d6e17c lepMixedConv + 280 (CTCoreMessage.m:1247) 10 TestApp 0x0000000103d73ce0 charconv_buffer + 160 (charconv.c:268)

So I guess iconv is behaving not as expected. I spoted some other threads on the net related to this issue like:

https://youtrack.jetbrains.com/issue/KT-59124/kmm-production-sample-iOS-app-crashes-after-start-on-iOS17-Beta#focus=Comments-27-7430451.0-0

Can you please help me understand what is going on ? Thanks!