{"action":"created","issue":{"url":"https://api.github.com/repos/MailCore/mailcore2/issues/1230","labels_url":"https://api.github.com/repos/MailCore/mailcore2/issues/1230/labels{/name}","comments_url":"https://api.github.com/repos/MailCore/mailcore2/issues/1230/comments","events_url":"https://api.github.com/repos/MailCore/mailcore2/issues/1230/events","html_url":"https://github.com/MailCore/mailcore2/issues/1230","id":107273391,"number":1230,"title":"Android MessageParser init with data causes app crash","user":{"login":"triton3","id":13472986,"avatar_url":"https://avatars.githubusercontent.com/u/13472986?v=3","gravatar_id":"","url":"https://api.github.com/users/triton3","html_url":"https://github.com/triton3","followers_url":"https://api.github.com/users/triton3/followers","following_url":"https://api.github.com/users/triton3/following{/other_user}","gists_url":"https://api.github.com/users/triton3/gists{/gist_id}","starred_url":"https://api.github.com/users/triton3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/triton3/subscriptions","organizations_url":"https://api.github.com/users/triton3/orgs","repos_url":"https://api.github.com/users/triton3/repos","events_url":"https://api.github.com/users/triton3/events{/privacy}","received_events_url":"https://api.github.com/users/triton3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-18T20:34:29Z","updated_at":"2015-10-14T04:40:37Z","closed_at":null,"body":"Hi @dinhviethoa, @DaveInAus \r\n\r\nI suspect this issue may be related to #1227. I am using API 21 on arm processor. The app crashes when the following code is reached.\r\n\r\n     //Read file data\r\n        byte[] messageData = Util.readFileData(originalEmailFile);\r\n\r\n        if (messageData != null) {\r\n            MessageParser messageParser = MessageParser.messageParserWithData(messageData); //--> causes app to crash\r\n    ... \r\n    }\r\n\r\nI would really appreciate any suggestions on how to fix this? The crash report is appended below.\r\n\r\n    09-18 16:15:47.137    5250-5639/? A/libc﹕ Fatal signal 11 (SIGSEGV), code 2, fault addr 0x766e6f6f in tid 5639 (FileObserver)\r\n    09-18 16:15:47.265        63-63/? I/DEBUG﹕ *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***\r\n    09-18 16:15:47.265        63-63/? I/DEBUG﹕ Build fingerprint: 'generic/sdk_phone_armv7/generic:5.0.2/LSY64/1772600:eng/test-keys'\r\n    09-18 16:15:47.265        63-63/? I/DEBUG﹕ Revision: '0'\r\n    09-18 16:15:47.266        63-63/? I/DEBUG﹕ ABI: 'arm'\r\n    09-18 16:15:47.267        63-63/? I/DEBUG﹕ pid: 5250, tid: 5639, name: FileObserver  >>> com.example.app <<<\r\n    09-18 16:15:47.268        63-63/? I/DEBUG﹕ signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x766e6f6f\r\n    09-18 16:15:47.302        63-63/? I/DEBUG﹕ r0 a58f0676  r1 00000000  r2 00000001  r3 766e6f63\r\n    09-18 16:15:47.304        63-63/? I/DEBUG﹕ r4 000003e8  r5 a5af88e0  r6 b50fcfe0  r7 a5af8918\r\n    09-18 16:15:47.304        63-63/? I/DEBUG﹕ r8 a5af8930  r9 a6deac00  sl 00000000  fp a5af88f8\r\n    09-18 16:15:47.304        63-63/? I/DEBUG﹕ ip b50bff60  sp a5af88b0  lr a784c40d  pc a56360da  cpsr 60000030\r\n    09-18 16:15:47.307        63-63/? I/DEBUG﹕ backtrace:\r\n    09-18 16:15:47.308        63-63/? I/DEBUG﹕ #00 pc 0016b0da  /data/app/com.example.app-1/lib/arm/libMailCore.so (Java_com_libmailcore_NativeObject_initWithNative+17)\r\n    09-18 16:15:47.308        63-63/? I/DEBUG﹕ #01 pc 00100ba0  [stack:5639]\r\n    09-18 16:15:48.700        63-63/? I/DEBUG﹕ Tombstone written to: /data/tombstones/tombstone_07\r\n\r\n**PS:** Just FYI, the same code works perfectly using Dave's build. However, that one crashes during SMTP sendoperation due to missing converters. @DaveInAus : I was wondering if you have a binary with all the latest fixes? I tried to rebuild using the instructions for API 16 but haven't been successful (fails at building libetpan). Any help is much appreciated."},"comment":{"url":"https://api.github.com/repos/MailCore/mailcore2/issues/comments/147933543","html_url":"https://github.com/MailCore/mailcore2/issues/1230#issuecomment-147933543","issue_url":"https://api.github.com/repos/MailCore/mailcore2/issues/1230","id":147933543,"user":{"login":"dinhviethoa","id":332168,"avatar_url":"https://avatars.githubusercontent.com/u/332168?v=3","gravatar_id":"","url":"https://api.github.com/users/dinhviethoa","html_url":"https://github.com/dinhviethoa","followers_url":"https://api.github.com/users/dinhviethoa/followers","following_url":"https://api.github.com/users/dinhviethoa/following{/other_user}","gists_url":"https://api.github.com/users/dinhviethoa/gists{/gist_id}","starred_url":"https://api.github.com/users/dinhviethoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dinhviethoa/subscriptions","organizations_url":"https://api.github.com/users/dinhviethoa/orgs","repos_url":"https://api.github.com/users/dinhviethoa/repos","events_url":"https://api.github.com/users/dinhviethoa/events{/privacy}","received_events_url":"https://api.github.com/users/dinhviethoa/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T04:40:37Z","updated_at":"2015-10-14T04:40:37Z","body":"Could you check with the new build of mailcore2 for Android?"}}