我的 iOS 项目中集成了 MailCore。最近,我在 Crittercism(现为 Apteligent)中收到了几份关于 MailCore 导致应用程序崩溃的报告。崩溃是由 MCData.cc 的 appendBytes 方法引起的,该方法是从 MailCore2 的几个方法中调用的。崩溃的一个例子是:
名称:MCData.cc 原因:SEGV_MAPERR
libsystem_platform.dylib 0x0000000180c52240 _platform_memmove + 76
! 1 app 0x000000010029f6f4 appendBytes (char, unsigned int) (MCData.cc:123)
2 app 0x000000010029f4d0 Data (char, unsigned int) (MCData.cc:84)
3 app 0x000000010029f600 dataWithBytes (char, unsigned int) (MCData.cc:101)
4 app 0x00000001002b997c dataAndFilterBccAndForEncryption (bool, bool) (MCMessageBuilder.cc:792)
5 app 0x00000001002d64e8 -[MCOMessageBuilder data] (MCOMessageBuilder.mm:66)
另一个示例是下一个跟踪:
名称:MCData.cc 原因:SEGV_MAPERR
0 libsystem_platform.dylib 0x00000001810d6240 _platform_memmove + 76
! 1 app 0x00000001001b76f4 appendBytes (char, unsigned int) (MCData.cc:123)
2 app 0x00000001001b74d0 Data (char, unsigned int) (MCData.cc:84)
3 app 0x00000001001b7600 dataWithBytes (char, unsigned int) (MCData.cc:101)
4 app 0x00000001001f6424 -[MCOSMTPSession sendOperationWithData:] (MCOSMTPSession.mm:109)
和更多:
名称:MCData.cc 原因:SEGV_MAPERR
libsystem_platform.dylib 0x00000001819fe240 _platform_memmove + 76
! 1 app 0x000000010021f6f4 appendBytes (char, unsigned int) (MCData.cc:123)
2 app 0x000000010021f4d0 Data (char, unsigned int) (MCData.cc:84)
3 app 0x000000010021f600 dataWithBytes (char, unsigned int) (MCData.cc:101)
4 app 0x0000000100255cf8 +[MCOAttachment attachmentWithData:filename:] (MCOAttachment.mm:63)
我试图重现崩溃,但一切似乎都很好。任何想法,是什么导致这些崩溃?
非常感谢