Open brokeharvard opened 8 years ago
Update - This is the error report that OSX provides:
Process: Python [25242] Path: /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python Identifier: Python Version: 2.7.11 (2.7.11) Code Type: X86-64 (Native) Parent Process: Python [24433] Responsible: Python [25242] User ID: 501
Date/Time: 2016-07-18 12:22:06.030 -0700 OS Version: Mac OS X 10.11.5 (15F34) Report Version: 11 Anonymous UUID: 2C1AA6AF-F715-0127-E97A-5C05EB645B0F
Sleep/Wake UUID: 53CB06E5-7A2B-4AB6-A0F2-D90662B64F3F
Time Awake Since Boot: 150000 seconds Time Since Wake: 49000 seconds
System Integrity Protection: enabled
Crashed Thread: 0
Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000110 Exception Note: EXC_CORPSE_NOTIFY
VM Regions Near 0x110: --> __TEXT 0000000106e9f000-0000000106ea1000 [ 8K] r-x/rwx SM=COW /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Application Specific Information: crashed on child side of fork pre-exec
Thread 0 Crashed: 0 libdispatch.dylib 0x00007fff9dc0e661 _dispatch_queue_push_queue + 345 1 libdispatch.dylib 0x00007fff9dc0cb06 _dispatch_queue_wakeup_with_qos_slow + 126 2 libdispatch.dylib 0x00007fff9dc1313f _dispatch_mach_msg_send + 1952 3 libdispatch.dylib 0x00007fff9dc128dc dispatch_mach_send + 262 4 libxpc.dylib 0x00007fff8e7b9fc9 xpc_connection_send_message_with_reply + 131 5 com.apple.CoreFoundation 0x00007fff88633bdf 66-[CFPrefsSearchListSource generationCountFromListOfSources:count:]_block_invoke_2 + 143 6 com.apple.CoreFoundation 0x00007fff88633a0d _CFPrefsWithDaemonConnection + 381 7 com.apple.CoreFoundation 0x00007fff88632b96 66-[CFPrefsSearchListSource generationCountFromListOfSources:count:]_block_invoke + 150 8 com.apple.CoreFoundation 0x00007fff88632933 -[CFPrefsSearchListSource generationCountFromListOfSources:count:] + 179 9 com.apple.CoreFoundation 0x00007fff88632214 -[CFPrefsSearchListSource alreadylocked_copyDictionary] + 324 10 com.apple.CoreFoundation 0x00007fff88631e5c -[CFPrefsSearchListSource alreadylocked_copyValueForKey:] + 60 11 com.apple.CoreFoundation 0x00007fff88631dec ___CFPreferencesCopyAppValueWithContainer_block_invoke + 60 12 com.apple.CoreFoundation 0x00007fff88629b10 +[CFPrefsSearchListSource withSearchListForIdentifier:container:perform:] + 608 13 com.apple.CoreFoundation 0x00007fff88629867 _CFPreferencesCopyAppValueWithContainer + 183 14 com.apple.SystemConfiguration 0x00007fff987b2a9b SCDynamicStoreCopyProxiesWithOptions + 163 15 _scproxy.so 0x0000000107c4b914 get_proxy_settings + 24 16 org.python.python 0x0000000106f31bfb PyEval_EvalFrameEx + 26904 17 org.python.python 0x0000000106f3572d fast_function + 264 18 org.python.python 0x0000000106f31af3 PyEval_EvalFrameEx + 26640 19 org.python.python 0x0000000106f3572d fast_function + 264 20 org.python.python 0x0000000106f31af3 PyEval_EvalFrameEx + 26640 21 org.python.python 0x0000000106f3572d fast_function + 264 22 org.python.python 0x0000000106f31af3 PyEval_EvalFrameEx + 26640 23 org.python.python 0x0000000106f3572d fast_function + 264 24 org.python.python 0x0000000106f31af3 PyEval_EvalFrameEx + 26640 25 org.python.python 0x0000000106f3572d fast_function + 264 26 org.python.python 0x0000000106f31af3 PyEval_EvalFrameEx + 26640 27 org.python.python 0x0000000106f2b0f1 PyEval_EvalCodeEx + 1583 28 org.python.python 0x0000000106ecffb1 function_call + 352 29 org.python.python 0x0000000106eb1eb0 PyObject_Call + 99 30 org.python.python 0x0000000106f32294 PyEval_EvalFrameEx + 28593 31 org.python.python 0x0000000106f2b0f1 PyEval_EvalCodeEx + 1583 32 org.python.python 0x0000000106ecffb1 function_call + 352 33 org.python.python 0x0000000106eb1eb0 PyObject_Call + 99 34 org.python.python 0x0000000106f32294 PyEval_EvalFrameEx + 28593 35 org.python.python 0x0000000106f2b0f1 PyEval_EvalCodeEx + 1583 36 org.python.python 0x0000000106f3569a fast_function + 117 37 org.python.python 0x0000000106f31af3 PyEval_EvalFrameEx + 26640 38 org.python.python 0x0000000106f2b0f1 PyEval_EvalCodeEx + 1583 39 org.python.python 0x0000000106ecffb1 function_call + 352 40 org.python.python 0x0000000106eb1eb0 PyObject_Call + 99 41 org.python.python 0x0000000106f32294 PyEval_EvalFrameEx + 28593 42 org.python.python 0x0000000106f2b0f1 PyEval_EvalCodeEx + 1583 43 org.python.python 0x0000000106ecffb1 function_call + 352 44 org.python.python 0x0000000106eb1eb0 PyObject_Call + 99 45 org.python.python 0x0000000106f32294 PyEval_EvalFrameEx + 28593 46 org.python.python 0x0000000106f3572d fast_function + 264 47 org.python.python 0x0000000106f31af3 PyEval_EvalFrameEx + 26640 48 org.python.python 0x0000000106f3572d fast_function + 264 49 org.python.python 0x0000000106f31af3 PyEval_EvalFrameEx + 26640 50 org.python.python 0x0000000106f2b0f1 PyEval_EvalCodeEx + 1583 51 org.python.python 0x0000000106ecffb1 function_call + 352 52 org.python.python 0x0000000106eb1eb0 PyObject_Call + 99 53 org.python.python 0x0000000106ebccb8 instancemethod_call + 173 54 org.python.python 0x0000000106eb1eb0 PyObject_Call + 99 55 org.python.python 0x0000000106ef9143 slot_tp_init + 64 56 org.python.python 0x0000000106ef4954 type_call + 182 57 org.python.python 0x0000000106eb1eb0 PyObject_Call + 99 58 org.python.python 0x0000000106f31a27 PyEval_EvalFrameEx + 26436 59 org.python.python 0x0000000106f3572d fast_function + 264 60 org.python.python 0x0000000106f31af3 PyEval_EvalFrameEx + 26640 61 org.python.python 0x0000000106f2b0f1 PyEval_EvalCodeEx + 1583 62 org.python.python 0x0000000106ecffb1 function_call + 352 63 org.python.python 0x0000000106eb1eb0 PyObject_Call + 99 64 org.python.python 0x0000000106ebccb8 instancemethod_call + 173 65 org.python.python 0x0000000106eb1eb0 PyObject_Call + 99 66 org.python.python 0x0000000106ebbf87 instance_call + 106 67 org.python.python 0x0000000106eb1eb0 PyObject_Call + 99 68 org.python.python 0x0000000106f31a27 PyEval_EvalFrameEx + 26436 69 org.python.python 0x0000000106f2b0f1 PyEval_EvalCodeEx + 1583 70 org.python.python 0x0000000106f3569a fast_function + 117 71 org.python.python 0x0000000106f31af3 PyEval_EvalFrameEx + 26640 72 org.python.python 0x0000000106f2b0f1 PyEval_EvalCodeEx + 1583 73 org.python.python 0x0000000106ecffb1 function_call + 352 74 org.python.python 0x0000000106eb1eb0 PyObject_Call + 99 75 org.python.python 0x0000000106f32294 PyEval_EvalFrameEx + 28593 76 org.python.python 0x0000000106f3572d fast_function + 264 77 org.python.python 0x0000000106f31af3 PyEval_EvalFrameEx + 26640 78 org.python.python 0x0000000106f3572d fast_function + 264 79 org.python.python 0x0000000106f31af3 PyEval_EvalFrameEx + 26640 80 org.python.python 0x0000000106f2b0f1 PyEval_EvalCodeEx + 1583 81 org.python.python 0x0000000106ecffb1 function_call + 352 82 org.python.python 0x0000000106eb1eb0 PyObject_Call + 99 83 org.python.python 0x0000000106ebccb8 instancemethod_call + 173 84 org.python.python 0x0000000106eb1eb0 PyObject_Call + 99 85 org.python.python 0x0000000106f3506f PyEval_CallObjectWithKeywords + 165 86 org.python.python 0x0000000106f6267a t_bootstrap + 70 87 libsystem_pthread.dylib 0x00007fff9a81599d _pthread_body + 131 88 libsystem_pthread.dylib 0x00007fff9a81591a _pthread_start + 168 89 libsystem_pthread.dylib 0x00007fff9a813351 thread_start + 13
Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000000000000 rbx: 0x00007ffb78f78860 rcx: 0x0000000000000100 rdx: 0x0000000000ffff00 rdi: 0x0000000000000800 rsi: 0x0000000000000800 rbp: 0x0000700000895ed0 rsp: 0x0000700000895eb0 r8: 0x0000000000000006 r9: 0x00000000ffff8000 r10: 0x000000000000000f r11: 0x00007ffb7b400000 r12: 0x00007fff7bceb180 r13: 0x00007ffb78f78860 r14: 0x00007fff7bceb180 r15: 0x00007ffb78f78860 rip: 0x00007fff9dc0e661 rfl: 0x0000000000010206 cr2: 0x0000000000000110
Logical CPU: 0 Error Code: 0x00000006 Trap Number: 14
Binary Images:
0x106e9f000 - 0x106ea0fff +org.python.python (2.7.11 - 2.7.11) <6BAE76DA-21F3-361A-9D58-50D270E8B694> /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
0x106ea7000 - 0x106f9dff7 +org.python.python (2.7.11, [c] 2001-2015 Python Software Foundation. - 2.7.11)
External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 0 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: 83007 thread_create: 0 thread_set_state: 0
VM Region Summary: ReadOnly portion of Libraries: Total=114.4M resident=0K(0%) swapped_out_or_unallocated=114.4M(100%) Writable regions: Total=82.2M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=82.2M(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced) =========== ======= ======= Dispatch continuations 8192K 2 Kernel Alloc Once 4K 2 MALLOC 44.0M 13 MALLOC guard page 16K 4 Process Corpse Info 2048K 2 STACK GUARD 4K 2 Stack 12.1M 4 Stack Guard 56.0M 3 VM_ALLOCATE 16.0M 25 DATA 4000K 89 LINKEDIT 93.0M 39 TEXT 21.4M 86 UNICODE 552K 2 shared memory 28K 5 =========== ======= ======= TOTAL 257.1M 264
Model: MacBookPro10,2, BootROM MBP102.0106.B0A, 2 processors, Intel Core i5, 2.5 GHz, 8 GB, SMC 2.6f59 Graphics: Intel HD Graphics 4000, Intel HD Graphics 4000, Built-In Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1600 MHz, 0x02FE, 0x45424A3831554738454255302D474E2D4620 Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1600 MHz, 0x02FE, 0x45424A3831554738454255302D474E2D4620 AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x10F), Broadcom BCM43xx 1.0 (7.21.95.175.1a6) Bluetooth: Version 4.4.5f3 17904, 3 services, 18 devices, 1 incoming serial ports Network Service: Wi-Fi, AirPort, en0 Serial ATA Device: APPLE SSD SD128E, 121.33 GB USB Device: USB 2.0 Bus USB Device: Hub USB Device: FaceTime HD Camera (Built-in) USB Device: USB 2.0 Bus USB Device: Hub USB Device: Hub USB Device: Apple Internal Keyboard / Trackpad USB Device: BRCM20702 Hub USB Device: Bluetooth USB Host Controller USB Device: USB 3.0 Bus Thunderbolt Bus: MacBook Pro, Apple Inc., 23.4
My program required a thread safe timeout decorator, so I have been using the timeout-decorator in multiprocessing mode (by passing use_signals=False to the timeout decorator function). This has worked well for the most part--resulting in successful timeouts. When there is a timeout, my program attempts to rerun the function that had the timeout decorator until it is able to complete the function in below the allotted time--this normally occurs within one or two additional attempts. But every once in awhile the timeout decorator will cause my OSX to think that Python quit unexpectedly. An OSX error message will appear, requesting to send details of Python's unexpected termination to Apple. Despite this, my main program continues running (attempting to rerun the function that had the timeout decorator), though after the error message it is never able to successfully complete the function in the allotted (as said before, normally it would do this within one or two additional attempts). I think this may mean that Python has not crashed in the main thread but has crashed in one of the sub threads.
I am 99% sure that it is the timeout decorator that is causing this issue, because it does not happen when I run my program without the decorator. Has anyone else experienced this issue or have any advice on how to solve it?