Open jnseward opened 8 years ago
Did you parse it with +[MCOAttachment attachmentWithContentsOfFile:]
?
I’m not trying to create an email or an attachment. I am trying to parse a raw email file into its components. I use [MCOAttachment decodedString] after first getting an array of attachments with [MCOMessageParser attachments]
On Jul 23, 2016, at 6:03 PM, Hoà V. DINH notifications@github.com wrote:
Did you parse it with +[MCOAttachment attachmentWithContentsOfFile:]?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MailCore/mailcore2/issues/1458#issuecomment-234745838, or mute the thread https://github.com/notifications/unsubscribe-auth/AB3KsIUCfzXOkYQ7QpKfVlJlddozjvYqks5qYp3JgaJpZM4I7G1q.
The crash occurs in MCData.cpp. Here is a screen shot of where it happens:
On Jul 23, 2016, at 6:03 PM, Hoà V. DINH notifications@github.com wrote:
Did you parse it with +[MCOAttachment attachmentWithContentsOfFile:]?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MailCore/mailcore2/issues/1458#issuecomment-234745838, or mute the thread https://github.com/notifications/unsubscribe-auth/AB3KsIUCfzXOkYQ7QpKfVlJlddozjvYqks5qYp3JgaJpZM4I7G1q.
The screenshot doesn't show here.
Sorry about that. Disregard the previous email. It is not happening in MCData.cpp. Attached is an email file that causes the crash, and also the crash report.
Process: MailSteward [67735] Path: /Applications/MailSteward.app/Contents/MacOS/MailSteward Identifier: com.pubblog.MailSteward Version: 11.3.2 (1360) Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: MailSteward [67735] User ID: 501
Date/Time: 2016-07-28 09:28:19.719 -0500 OS Version: Mac OS X 10.11.6 (15G31) Report Version: 11 Anonymous UUID: 6BC84FCF-4112-3E32-E220-87EA5E23E284
Sleep/Wake UUID: 71FF202D-05D1-46B5-AFC7-E211C8F2D6BB
Time Awake Since Boot: 810000 seconds Time Since Wake: 170000 seconds
System Integrity Protection: enabled
Crashed Thread: 11
Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY
VM Regions Near 0: --> __TEXT 00000001070e8000-00000001071ab000 [ 780K] r-x/rwx SM=COW /Applications/MailSteward.app/Contents/MacOS/MailSteward
Global Trace Buffer (reverse chronological seconds): 120.954087 libextension.dylib 0x00007fff9d734533 tearing down extension request for pid 67736
Thread 0:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x00007fff8cb79f72 mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff8cb793b3 mach_msg + 55 2 com.apple.CoreFoundation 0x00007fff8ef8a1c4 CFRunLoopServiceMachPort + 212 3 com.apple.CoreFoundation 0x00007fff8ef8968c CFRunLoopRun + 1356 4 com.apple.CoreFoundation 0x00007fff8ef88ed8 CFRunLoopRunSpecific + 296 5 com.apple.HIToolbox 0x00007fff96ed6935 RunCurrentEventLoopInMode + 235 6 com.apple.HIToolbox 0x00007fff96ed676f ReceiveNextEventCommon + 432 7 com.apple.HIToolbox 0x00007fff96ed65af _BlockUntilNextEventMatchingListInModeWithFilter + 71 8 com.apple.AppKit 0x00007fff8b3ffdf6 _DPSNextEvent + 1067 9 com.apple.AppKit 0x00007fff8b3ff226 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454 10 com.apple.AppKit 0x00007fff8b3f3d80 -[NSApplication run] + 682 11 com.apple.AppKit 0x00007fff8b3bd368 NSApplicationMain + 1176 12 libdyld.dylib 0x00007fff9e2375ad start + 1
Thread 1:: Dispatch queue: com.apple.libdispatch-manager 0 libsystem_kernel.dylib 0x00007fff8cb80efa kevent_qos + 10 1 libdispatch.dylib 0x00007fff8d79c165 _dispatch_mgr_invoke + 216 2 libdispatch.dylib 0x00007fff8d79bdcd _dispatch_mgr_thread + 52
Thread 2:: com.apple.NSEventThread 0 libsystem_kernel.dylib 0x00007fff8cb79f72 mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff8cb793b3 mach_msg + 55 2 com.apple.CoreFoundation 0x00007fff8ef8a1c4 CFRunLoopServiceMachPort + 212 3 com.apple.CoreFoundation 0x00007fff8ef8968c CFRunLoopRun + 1356 4 com.apple.CoreFoundation 0x00007fff8ef88ed8 CFRunLoopRunSpecific + 296 5 com.apple.AppKit 0x00007fff8b555d95 _NSEventThread + 149 6 libsystem_pthread.dylib 0x00007fff8d7ca99d _pthread_body + 131 7 libsystem_pthread.dylib 0x00007fff8d7ca91a _pthread_start + 168 8 libsystem_pthread.dylib 0x00007fff8d7c8351 thread_start + 13
Thread 3: 0 libsystem_kernel.dylib 0x00007fff8cb805e2 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff8d7ca578 _pthread_wqthread + 1283 2 libsystem_pthread.dylib 0x00007fff8d7c8341 start_wqthread + 13
Thread 4: 0 libsystem_kernel.dylib 0x00007fff8cb805e2 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff8d7ca578 _pthread_wqthread + 1283 2 libsystem_pthread.dylib 0x00007fff8d7c8341 start_wqthread + 13
Thread 5: 0 libsystem_kernel.dylib 0x00007fff8cb805e2 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff8d7ca578 _pthread_wqthread + 1283 2 libsystem_pthread.dylib 0x00007fff8d7c8341 start_wqthread + 13
Thread 6: 0 libsystem_kernel.dylib 0x00007fff8cb805e2 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff8d7ca578 _pthread_wqthread + 1283 2 libsystem_pthread.dylib 0x00007fff8d7c8341 start_wqthread + 13
Thread 7: 0 libsystem_kernel.dylib 0x00007fff8cb805e2 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff8d7ca578 _pthread_wqthread + 1283 2 libsystem_pthread.dylib 0x00007fff8d7c8341 start_wqthread + 13
Thread 8: 0 libsystem_kernel.dylib 0x00007fff8cb805e2 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff8d7ca578 _pthread_wqthread + 1283 2 libsystem_pthread.dylib 0x00007fff8d7c8341 start_wqthread + 13
Thread 9: 0 libsystem_kernel.dylib 0x00007fff8cb805e2 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff8d7ca578 _pthread_wqthread + 1283 2 libsystem_pthread.dylib 0x00007fff8d7c8341 start_wqthread + 13
Thread 10:: com.apple.appkit-heartbeat 0 libsystem_kernel.dylib 0x00007fff8cb8010a semwait_signal + 10 1 libsystem_c.dylib 0x00007fff8df90d0f nanosleep + 199 2 libsystem_c.dylib 0x00007fff8df90c02 usleep + 54 3 com.apple.AppKit 0x00007fff8b6e83e4 -[NSUIHeartBeat _heartBeatThread:] + 2181 4 com.apple.Foundation 0x00007fff89d8fe64 NSThreadstart + 1351 5 libsystem_pthread.dylib 0x00007fff8d7ca99d _pthread_body + 131 6 libsystem_pthread.dylib 0x00007fff8d7ca91a _pthread_start + 168 7 libsystem_pthread.dylib 0x00007fff8d7c8351 thread_start + 13
Thread 11 Crashed: 0 libsystem_c.dylib 0x00007fff8df12132 strlen + 18 1 com.pubblog.MailSteward 0x00000001070fc994 0x1070e8000 + 84372 2 com.pubblog.MailSteward 0x00000001070f9c97 0x1070e8000 + 72855 3 com.pubblog.MailSteward 0x00000001070f8675 0x1070e8000 + 67189 4 com.apple.Foundation 0x00007fff89d8fe64 NSThread__start + 1351 5 libsystem_pthread.dylib 0x00007fff8d7ca99d _pthread_body + 131 6 libsystem_pthread.dylib 0x00007fff8d7ca91a _pthread_start + 168 7 libsystem_pthread.dylib 0x00007fff8d7c8351 thread_start + 13
Thread 11 crashed with X86 Thread State (64-bit): rax: 0x0000000000000000 rbx: 0x0000000000000000 rcx: 0x0000000000000000 rdx: 0x0000000000000000 rdi: 0x0000000000000000 rsi: 0x000000000000011d rbp: 0x000070000052e720 rsp: 0x000070000052e720 r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x000000000000011d r11: 0x00007fff23b594e0 r12: 0x00007fff8f360e08 r13: 0x00007fff8872d4c0 r14: 0x00007fff8f361bad r15: 0x00007fff8f360e08 rip: 0x00007fff8df12132 rfl: 0x0000000000010246 cr2: 0x0000000000000000
Logical CPU: 2 Error Code: 0x00000004 Trap Number: 14
Binary Images:
0x1070e8000 - 0x1071aafff +com.pubblog.MailSteward (11.3.2 - 1360) <224BCD15-9545-39C7-BD78-6F09B9F108FB> /Applications/MailSteward.app/Contents/MacOS/MailSteward
0x1071c6000 - 0x10732dfff +com.libmailcore.MailCore (1.0 - 1)
External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 30 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 50231546 thread_create: 0 thread_set_state: 180
VM Region Summary: ReadOnly portion of Libraries: Total=299.8M resident=0K(0%) swapped_out_or_unallocated=299.8M(100%) Writable regions: Total=1.1G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.1G(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced) =========== ======= ======= Accelerate.framework 256K 3 Activity Tracing 2048K 2 CG backing stores 6500K 13 CG image 808K 74 CG shared images 656K 17 CoreAnimation 17.2M 123 CoreUI image data 3340K 33 CoreUI image file 224K 7 Dispatch continuations 8192K 2 Foundation 4K 2 Image IO 1256K 12 JS JIT generated code 8K 3 JS JIT generated code (reserved) 1.0G 2 reserved VM address space (unallocated) Kernel Alloc Once 8K 3 MALLOC 78.8M 48 MALLOC guard page 32K 7 Memory Tag 242 12K 2 Memory Tag 249 156K 2 Memory Tag 251 160K 3 OpenCL 24K 4 Process Corpse Info 2048K 2 STACK GUARD 56.0M 13 Stack 13.1M 15 VM_ALLOCATE 96K 15 WebKit Malloc 4216K 5 DATA 30.2M 296 IMAGE 528K 2 LINKEDIT 92.8M 15 TEXT 207.0M 300 __UNICODE 552K 2 mapped file 67.6M 59 shared memory 16.3M 8 =========== ======= ======= TOTAL 1.6G 1062 TOTAL, minus reserved VM space 609.6M 1062
Model: MacBookPro11,1, BootROM MBP111.0138.B17, 2 processors, Intel Core i5, 2.4 GHz, 8 GB, SMC 2.16f68 Graphics: Intel Iris, Intel Iris, Built-In Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1600 MHz, 0x802C, 0x384B54463531323634485A2D314736453120 Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1600 MHz, 0x802C, 0x384B54463531323634485A2D314736453120 AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x112), Broadcom BCM43xx 1.0 (7.21.95.175.1a6) Bluetooth: Version 4.4.6f1 17910, 3 services, 18 devic
Do you have a symbolicated version?
I don’t know how to do that. I will have to figure it out.
Do you have a way of using mailcore to try parsing the sample email that I sent into its component parts?
On Jul 28, 2016, at 9:34 AM, Hoà V. DINH notifications@github.com wrote:
Do you have a symbolicated version?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MailCore/mailcore2/issues/1458#issuecomment-235913153, or mute the thread https://github.com/notifications/unsubscribe-auth/AB3KsIe8UINHDE0Ql6VYh6XQy0vL4sJ4ks5qaL3YgaJpZM4I7G1q.
Here you go. Is this what you need?
On Jul 28, 2016, at 9:34 AM, Hoà V. DINH notifications@github.com wrote:
Do you have a symbolicated version?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MailCore/mailcore2/issues/1458#issuecomment-235913153, or mute the thread https://github.com/notifications/unsubscribe-auth/AB3KsIe8UINHDE0Ql6VYh6XQy0vL4sJ4ks5qaL3YgaJpZM4I7G1q.
I can't see it. Could you use the website of github to comment and add the info?
Are you are unable to receive email attachments?
Here is a link to the symbolicated crash report. Are there any other files that you need?
https://dl.dropboxusercontent.com/u/6248221/MailSteward_2016-07-28-124356_MacBook-Pro_symbolicated.crash https://dl.dropboxusercontent.com/u/6248221/MailSteward_2016-07-28-124356_MacBook-Pro_symbolicated.crash
On Jul 28, 2016, at 7:02 PM, Hoà V. DINH notifications@github.com wrote:
I can't see it. Could you use the website of github to comment and add the info?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MailCore/mailcore2/issues/1458#issuecomment-236060075, or mute the thread https://github.com/notifications/unsubscribe-auth/AB3KsEHqFiyu_KBcqLx3WIrkWEOt-Igxks5qaUL9gaJpZM4I7G1q.
Please open the github web page and see by yourself.
The link I sent to the symbolicated crash report works in github. Did you click on it? Github won’t let me log in for some reason.
On Jul 28, 2016, at 11:30 PM, Hoà V. DINH notifications@github.com wrote:
Please open the github web page and see by youself.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MailCore/mailcore2/issues/1458#issuecomment-236092133, or mute the thread https://github.com/notifications/unsubscribe-auth/AB3KsF1oGtsCMW5M_UStC7pF_hTXsaydks5qaYHxgaJpZM4I7G1q.
When I use mailcore2 to parse the attached email file, it causes a crash.
432382.txt