This crash is when trying to read from a file (130mb) that has been mmap'd.
It only happens rarely, and only when waking from sleep, but happens on both 10.8 and 10.9. It is almost like the mmap memory is not available right when the system is woken up Any ideas? Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x000000011c4b87d1 VM Regions Near 0x11c4b87d1: MALLOC_LARGE 000000011ad9a000-000000011bb73000 [ 13.8M] rw-/rwx SM=PRV --> mapped file 000000012484a000-0000000125a54000 [ 18.0M] rw-/rwx SM=COW /private/var/folders/*/*.csstore Thread 7 Crashed: 0 com.myapp 0x00000001000126d1 0x100000000 + 75473 Thread 7 crashed with X86 Thread State (64-bit): rax: 0x0000000000000001 rbx: 0x0000000104bd8c08 rcx: 0x00000000000000c8 rdx: 0x000000011c4b87d1 rdi: 0x00006000001b57e0 rsi: 0x000000010003099b rbp: 0x0000000104bd8a60 rsp: 0x0000000104bd8a60 r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x000000010022b6f0 r11: 0x0000000100041020 r12: 0x0000000000000000 r13: 0x00006000001b57e0 r14: 0x0000000000000000 r15: 0x000000011bb73000 rip: 0x00000001000126d1 rfl: 0x0000000000010246 cr2: 0x000000011c4b87d1 Logical CPU: 1 Error Code: 0x00000004 Trap Number: 14 External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 32 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: 21157 thread_create: 1 thread_set_state: 0 VM Region Summary: ReadOnly portion of Libraries: Total=181.1M resident=90.7M(50%) swapped_out_or_unallocated=90.3M(50%) Writable regions: Total=400.3M written=222.3M(56%) resident=248.1M(62%) swapped_out=76K(0%) unallocated=152.2M(38%) REGION TYPE VIRTUAL =========== ======= CG backing stores 24.4M CG image 88.5M CG shared images 212K Image IO 24.4M Kernel Alloc Once 8K MALLOC 235.7M MALLOC (admin) 32K Memory Tag 242 12K SQLite page cache 256K STACK GUARD 56.0M Stack 10.7M VM_ALLOCATE 16.4M __DATA 22.4M __IMAGE 528K __LINKEDIT 66.2M __TEXT 114.8M __UNICODE 544K mapped file 178.6M shared memory 4K =========== ======= TOTAL 839.6M _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com