Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bus error using 1.15.0rc2 openblas linked wheels (via non python threads) #11551

Closed
ales-erjavec opened this issue Jul 11, 2018 · 17 comments
Closed

Comments

@ales-erjavec
Copy link
Contributor

Using numpy 1.15.0rc2 wheels, numpy.dot faults with a Bus error: 10 if the call is made from a non main thread which is not a 'Python native' thread; in particular a Qt5 QThreadPool's managed thread (via PyQt5).

Code

import numpy as np

from PyQt5.QtCore import QRunnable, QThreadPool

pool = QThreadPool.globalInstance()

class Runnable(QRunnable):
    def __init__(self, target):
        super().__init__()
        self._target = target

    def run(self):
        self._target()

A = np.random.rand(150, 100)
B = np.random.rand(100, 1000)

rs = []
for i in range(10):
    def run():
        np.dot(A, B)

    r = Runnable(run)
    pool.start(r)
    rs.append(r)

pool.waitForDone()

This faults in:

Thread 4 Crashed:: Thread (pooled)
0   libopenblasp-r0.3.0.dev.dylib 	0x000000010fc443c2 dgemm_thread_nn + 1490
1   libopenblasp-r0.3.0.dev.dylib 	0x000000010fb15e26 cblas_dgemm + 854
2   multiarray.cpython-36m-darwin.so	0x000000010f9aa265 cblas_matrixproduct + 4917
3   multiarray.cpython-36m-darwin.so	0x000000010f96fd27 PyArray_MatrixProduct2 + 215
4   multiarray.cpython-36m-darwin.so	0x000000010f974d1f array_matrixproduct + 191
5   org.python.python             	0x000000010f074af3 _PyCFunction_FastCallDict + 461
(the full report)
Process:               Python [11650]
Path:                  /usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/Resources/Python.app/Contents/MacOS/Python
Identifier:            Python
Version:               3.6.5 (3.6.5)
Code Type:             X86-64 (Native)
Parent Process:        bash [23859]
Responsible:           Terminal [505]
User ID:               501

Date/Time:             2018-07-11 15:16:20.098 +0200
OS Version:            Mac OS X 10.11.6 (15G20015)
Report Version:        11
Anonymous UUID:        6B468A1E-8CB4-EC03-324B-AA83B1B93698

Sleep/Wake UUID:       850D839F-C482-4814-9D32-8C614C762A56

Time Awake Since Boot: 1300000 seconds
Time Since Wake:       7800 seconds

System Integrity Protection: enabled

Crashed Thread:        4  Thread (pooled)

Exception Type:        EXC_BAD_ACCESS (SIGBUS)
Exception Codes:       KERN_PROTECTION_FAILURE at 0x0000700000189250

VM Regions Near 0x700000189250:
    Stack                  0000700000107000-0000700000189000 [  520K] rw-/rwx SM=COW  thread 4
--> Stack Guard            0000700000189000-000070000018a000 [    4K] ---/rwx SM=NUL  
    Stack                  000070000018a000-000070000020c000 [  520K] rw-/rwx SM=COW  

Thread 0:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	0x00007fff9062bdb6 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fff8c987728 _pthread_cond_wait + 767
2   org.qt-project.QtCore         	0x000000011b00126b 0x11afd1000 + 197227
3   org.qt-project.QtCore         	0x000000011b001202 QWaitCondition::wait(QMutex*, unsigned long) + 162
4   org.qt-project.QtCore         	0x000000011aff8269 QThreadPoolPrivate::waitForDone(int) + 217
5   org.qt-project.QtCore         	0x000000011aff87c3 QThreadPool::waitForDone(int) + 19
6   QtCore.so                     	0x000000011adfa8fa meth_QThreadPool_waitForDone(_object*, _object*, _object*) + 138
7   org.python.python             	0x000000010f074af3 _PyCFunction_FastCallDict + 461
8   org.python.python             	0x000000010f0dc52c call_function + 562
9   org.python.python             	0x000000010f0d9937 _PyEval_EvalFrameDefault + 26877
10  org.python.python             	0x000000010f0dcd09 _PyEval_EvalCodeWithName + 1910
11  org.python.python             	0x000000010f0d2f8a PyEval_EvalCode + 100
12  org.python.python             	0x000000010f0fd6cd run_mod + 58
13  org.python.python             	0x000000010f0fc709 PyRun_FileExFlags + 178
14  org.python.python             	0x000000010f0fbfa7 PyRun_SimpleFileExFlags + 668
15  org.python.python             	0x000000010f1108b2 Py_Main + 3562
16  org.python.python             	0x000000010f028e19 0x10f027000 + 7705
17  libdyld.dylib                 	0x00007fff906145ad start + 1

Thread 1:
0   libsystem_kernel.dylib        	0x00007fff9062bdb6 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fff8c987728 _pthread_cond_wait + 767
2   libopenblasp-r0.3.0.dev.dylib 	0x000000010fe2272b blas_thread_server + 187
3   libsystem_pthread.dylib       	0x00007fff8c98699d _pthread_body + 131
4   libsystem_pthread.dylib       	0x00007fff8c98691a _pthread_start + 168
5   libsystem_pthread.dylib       	0x00007fff8c984351 thread_start + 13

Thread 2:
0   libsystem_kernel.dylib        	0x00007fff9062bdb6 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fff8c987728 _pthread_cond_wait + 767
2   libopenblasp-r0.3.0.dev.dylib 	0x000000010fe2272b blas_thread_server + 187
3   libsystem_pthread.dylib       	0x00007fff8c98699d _pthread_body + 131
4   libsystem_pthread.dylib       	0x00007fff8c98691a _pthread_start + 168
5   libsystem_pthread.dylib       	0x00007fff8c984351 thread_start + 13

Thread 3:
0   libsystem_kernel.dylib        	0x00007fff9062bdb6 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fff8c987728 _pthread_cond_wait + 767
2   libopenblasp-r0.3.0.dev.dylib 	0x000000010fe2272b blas_thread_server + 187
3   libsystem_pthread.dylib       	0x00007fff8c98699d _pthread_body + 131
4   libsystem_pthread.dylib       	0x00007fff8c98691a _pthread_start + 168
5   libsystem_pthread.dylib       	0x00007fff8c984351 thread_start + 13

Thread 4 Crashed:: Thread (pooled)
0   libopenblasp-r0.3.0.dev.dylib 	0x000000010fc443c2 dgemm_thread_nn + 1490
1   libopenblasp-r0.3.0.dev.dylib 	0x000000010fb15e26 cblas_dgemm + 854
2   multiarray.cpython-36m-darwin.so	0x000000010f9aa265 cblas_matrixproduct + 4917
3   multiarray.cpython-36m-darwin.so	0x000000010f96fd27 PyArray_MatrixProduct2 + 215
4   multiarray.cpython-36m-darwin.so	0x000000010f974d1f array_matrixproduct + 191
5   org.python.python             	0x000000010f074af3 _PyCFunction_FastCallDict + 461
6   org.python.python             	0x000000010f0dc52c call_function + 562
7   org.python.python             	0x000000010f0d9937 _PyEval_EvalFrameDefault + 26877
8   org.python.python             	0x000000010f0dd68e _PyFunction_FastCall + 121
9   org.python.python             	0x000000010f0dc506 call_function + 524
10  org.python.python             	0x000000010f0d9937 _PyEval_EvalFrameDefault + 26877
11  org.python.python             	0x000000010f0dd68e _PyFunction_FastCall + 121
12  org.python.python             	0x000000010f03b2f9 _PyObject_FastCallDict + 218
13  org.python.python             	0x000000010f03b418 _PyObject_Call_Prepend + 149
14  org.python.python             	0x000000010f03b160 PyObject_Call + 101
15  sip.so                        	0x000000011b5bb3c9 call_method + 85
16  sip.so                        	0x000000011b5b7348 sip_api_call_procedure_method + 156
17  QtCore.so                     	0x000000011add199a sipQRunnable::run() + 90
18  org.qt-project.QtCore         	0x000000011aff706e 0x11afd1000 + 155758
19  org.qt-project.QtCore         	0x000000011afffc47 0x11afd1000 + 191559
20  libsystem_pthread.dylib       	0x00007fff8c98699d _pthread_body + 131
21  libsystem_pthread.dylib       	0x00007fff8c98691a _pthread_start + 168
22  libsystem_pthread.dylib       	0x00007fff8c984351 thread_start + 13

Thread 4 crashed with X86 Thread State (64-bit):
  rax: 0x0000700000189410  rbx: 0x0000000113c7f5d0  rcx: 0x0000000000000000  rdx: 0x0000000000000040
  rdi: 0x0000000000000000  rsi: 0x0000700000189410  rbp: 0x0000700000209280  rsp: 0x0000700000185d90
   r8: 0x0000000113c7f5d0   r9: 0x0000000000000004  r10: 0x0000000000000000  r11: 0x0000000080000001
  r12: 0x0000000000000004  r13: 0x0000000000000000  r14: 0x0000000000000004  r15: 0x0000000100000003
  rip: 0x000000010fc443c2  rfl: 0x0000000000010246  cr2: 0x0000700000189250
  
Logical CPU:     1
Error Code:      0x00000006
Trap Number:     14


Binary Images:
       0x10f027000 -        0x10f028fff +org.python.python (3.6.5 - 3.6.5) <EB53A51D-F021-3881-A774-7F674FB767D4> /usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/Resources/Python.app/Contents/MacOS/Python
       0x10f030000 -        0x10f19eff7 +org.python.python (3.6.5, [c] 2001-2018 Python Software Foundation. - 3.6.5) <8938018B-FFD3-3EC8-8E3B-57A890729974> /usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/Python
       0x10f748000 -        0x10f749fff +_heapq.cpython-36m-darwin.so (0) <207A05C8-6D79-3216-B504-D85818BF15AC> /usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_heapq.cpython-36m-darwin.so
       0x10f877000 -        0x10f87cfff +math.cpython-36m-darwin.so (0) <FC0F94DF-EAE0-350F-9A6D-AF1CF033AFA4> /usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/math.cpython-36m-darwin.so
       0x10f882000 -        0x10fa1dff7 +multiarray.cpython-36m-darwin.so (???) <A6528474-A1D8-331E-B38A-D58959B0D485> /Users/USER/*/multiarray.cpython-36m-darwin.so
       0x10faf5000 -        0x113c785a7 +libopenblasp-r0.3.0.dev.dylib (0) <EB499C92-1D72-3498-9AD5-088D81B269F9> /Users/USER/*/libopenblasp-r0.3.0.dev.dylib
       0x113feb000 -        0x114102ff7 +libgfortran.3.dylib (0) <9ABE5EDE-AD43-391A-9E54-866711FAC32A> /Users/USER/*/libgfortran.3.dylib
       0x114166000 -        0x11419cfff +libquadmath.0.dylib (0) <7FFA409F-FB04-3B64-BE9A-3E3A494C975E> /Users/USER/*/libquadmath.0.dylib
       0x1141ab000 -        0x1141c0ff7 +libgcc_s.1.dylib (0) <7C6D7CB7-82DB-3290-8181-07646FEA1F80> /Users/USER/*/libgcc_s.1.dylib
       0x11a20c000 -        0x11a216ffb +_datetime.cpython-36m-darwin.so (0) <53BCD978-C4F8-359D-B39B-112131D8E232> /usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_datetime.cpython-36m-darwin.so
       0x11a21e000 -        0x11a30bfff +umath.cpython-36m-darwin.so (???) <9D2BC000-EC1B-30A1-9708-099643245C39> /Users/USER/*/umath.cpython-36m-darwin.so
       0x11a3d4000 -        0x11a3e3ff7 +_ctypes.cpython-36m-darwin.so (0) <0BD7A3F8-E7E4-39E2-8C8C-01F77A6DD8A7> /usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_ctypes.cpython-36m-darwin.so
       0x11a3ee000 -        0x11a3f1ffb +_struct.cpython-36m-darwin.so (0) <7BA3282C-88B2-38BA-90FF-459DCBAB2FEB> /usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_struct.cpython-36m-darwin.so
       0x11a479000 -        0x11a485ffb +_pickle.cpython-36m-darwin.so (0) <30EA71A2-414A-385E-9AE6-B8E2CEE0CF10> /usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_pickle.cpython-36m-darwin.so
       0x11a64f000 -        0x11a652fff +zlib.cpython-36m-darwin.so (0) <AF7865F4-2DB7-35B0-B14F-69C9EA113361> /usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/zlib.cpython-36m-darwin.so
       0x11a657000 -        0x11a658fff +_bz2.cpython-36m-darwin.so (0) <243DFE2E-040D-3534-8AEA-C4C14E9C19A2> /usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_bz2.cpython-36m-darwin.so
       0x11a65c000 -        0x11a65fff7 +_lzma.cpython-36m-darwin.so (0) <874DECB9-AEBB-3250-A9F0-CD4E86A02FEB> /usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_lzma.cpython-36m-darwin.so
       0x11a664000 -        0x11a680ffb +liblzma.5.dylib (0) <6AE21824-5738-33EA-A45B-9B0E053B000E> /usr/local/opt/xz/lib/liblzma.5.dylib
       0x11a686000 -        0x11a687fff +grp.cpython-36m-darwin.so (0) <97205E7A-2C30-388D-86C4-DF85770EBFC3> /usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/grp.cpython-36m-darwin.so
       0x11a6ca000 -        0x11a6cdfff +_hashlib.cpython-36m-darwin.so (0) <AACDE295-A180-35C7-81FA-11468341D20E> /usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_hashlib.cpython-36m-darwin.so
       0x11a6d1000 -        0x11a70ffff +libssl.1.0.0.dylib (0) <BF697A02-E79F-315D-8B36-1B3CE2AC18FC> /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
       0x11a72c000 -        0x11a89eabf +libcrypto.1.0.0.dylib (0) <BC03E10B-64B9-3F10-8CE0-A06F8AF86220> /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib
       0x11a916000 -        0x11a91bfff +_blake2.cpython-36m-darwin.so (0) <0600833D-578D-3E34-9361-B807D178877D> /usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_blake2.cpython-36m-darwin.so
       0x11a91f000 -        0x11a92fff3 +_sha3.cpython-36m-darwin.so (0) <E4CBFFAE-A687-37AD-9C2D-AF0F911F8434> /usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_sha3.cpython-36m-darwin.so
       0x11a934000 -        0x11a934fff +_bisect.cpython-36m-darwin.so (0) <FE616CEC-014F-34C7-B44A-A28066FD2E77> /usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_bisect.cpython-36m-darwin.so
       0x11a937000 -        0x11a938fff +_random.cpython-36m-darwin.so (0) <04FBEF05-BFA7-371D-94DC-29D1EA08FA61> /usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_random.cpython-36m-darwin.so
       0x11a9bb000 -        0x11a9bcff7 +lapack_lite.cpython-36m-darwin.so (???) <22695BE8-E0F6-326D-B258-E878FBB2C31D> /Users/USER/*/lapack_lite.cpython-36m-darwin.so
       0x11a9c0000 -        0x11a9dbff7 +_umath_linalg.cpython-36m-darwin.so (???) <E7251325-D9B2-3D6D-A831-780B4D7C2CC0> /Users/USER/*/_umath_linalg.cpython-36m-darwin.so
       0x11aaba000 -        0x11aae5ff3 +_decimal.cpython-36m-darwin.so (0) <B93149A1-B3A7-343E-88E7-B5AD6A6CF365> /usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload/_decimal.cpython-36m-darwin.so
       0x11ab38000 -        0x11ab48ff7 +_multiarray_tests.cpython-36m-darwin.so (???) <72F2C6E4-3DD5-3012-BAC8-84CAB2B8F7AF> /Users/USER/*/_multiarray_tests.cpython-36m-darwin.so
       0x11ab57000 -        0x11ab60fff +fftpack_lite.cpython-36m-darwin.so (???) <944B3C9C-51C9-3C4E-9FA8-06F289B18519> /Users/USER/*/fftpack_lite.cpython-36m-darwin.so
       0x11aba4000 -        0x11ac62fff +mtrand.cpython-36m-darwin.so (???) <F5A7F8C1-BB05-3EE4-913A-6465F855D66E> /Users/USER/*/mtrand.cpython-36m-darwin.so
       0x11ad27000 -        0x11ae6cff3 +QtCore.so (0) <B07CD9D2-38EB-33BE-BB52-12E1A6290A05> /usr/local/lib/python3.6/site-packages/PyQt5/QtCore.so
       0x11afd1000 -        0x11b4cdfff +org.qt-project.QtCore (5.11 - 5.11.1) <3CE0E6DB-D76A-38D8-ACE5-3E24720E19C8> /usr/local/opt/qt/lib/QtCore.framework/Versions/5/QtCore
       0x11b5b2000 -        0x11b5c5fff +sip.so (0) <966E61F2-DDE0-3638-B12F-E86B3F091142> /usr/local/lib/python3.6/site-packages/sip.so
    0x7fff62e69000 -     0x7fff62ea0a47  dyld (360.22) <C8E77F6D-CE86-3C5B-8576-2584A799B51E> /usr/lib/dyld
    0x7fff8adb5000 -     0x7fff8adb8fff  com.apple.IOSurface (108.3.2 - 108.3.2) <88A893E9-A0E4-39FC-9A4E-1FB428F577EE> /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
    0x7fff8ae37000 -     0x7fff8af65fff  com.apple.CoreText (352.0 - 494.16) <0416A4AB-0A6F-3D29-AFCD-D5A33C4FFA68> /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText
    0x7fff8b08f000 -     0x7fff8b0b8fff  libsystem_info.dylib (477.50.4) <FAA9226D-64DE-3769-A6D8-6CABA4B7FF4D> /usr/lib/system/libsystem_info.dylib
    0x7fff8b0b9000 -     0x7fff8b0f3fff  com.apple.QD (3.12 - 302) <0FE53180-2895-3D14-A1E7-F82DE1D106E1> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
    0x7fff8b0f8000 -     0x7fff8b0f9ffb  libremovefile.dylib (41) <552EF39E-14D7-363E-9059-4565AC2F894E> /usr/lib/system/libremovefile.dylib
    0x7fff8bb54000 -     0x7fff8bb92ff7  libGLImage.dylib (12.1) <BB1F1A93-5101-3906-AB17-8D83FCB200F9> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
    0x7fff8bba5000 -     0x7fff8bcc9fff  libsqlite3.dylib (216.4) <280D67B8-F93D-3587-A146-19F36C817548> /usr/lib/libsqlite3.dylib
    0x7fff8bd03000 -     0x7fff8bd0bfff  com.apple.CoreServices.FSEvents (1223.10.1 - 1223.10.1) <7F5B7A23-BC1D-3FA9-A9B8-D534F1E1979A> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents
    0x7fff8bd0c000 -     0x7fff8bd94fff  com.apple.CoreSymbolication (3.1 - 58048.1) <C42C7600-2BEC-300F-8611-CE0F1C13BB36> /System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication
    0x7fff8bdd2000 -     0x7fff8bff3ff7  com.apple.CoreImage (11.4.0 - 366.4.20) <7721BA55-A10E-3425-8392-C5D7C510EAAB> /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage
    0x7fff8bff4000 -     0x7fff8c01fff3  libarchive.2.dylib (33.20.3) <CC63CA40-0077-314D-BF76-82CB77317354> /usr/lib/libarchive.2.dylib
    0x7fff8c023000 -     0x7fff8c039ff7  libLinearAlgebra.dylib (1162.2) <FFE54EDF-F06F-3C0A-864A-4CA7BBFD4B2D> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib
    0x7fff8c228000 -     0x7fff8c31aff7  libiconv.2.dylib (44) <F05A0A5A-92A9-3668-8F20-F27CBDA26BE9> /usr/lib/libiconv.2.dylib
    0x7fff8c983000 -     0x7fff8c98cff7  libsystem_pthread.dylib (138.10.4) <62FC23B9-1DEE-3918-A30D-A58EC95A0720> /usr/lib/system/libsystem_pthread.dylib
    0x7fff8d785000 -     0x7fff8d812fef  libsystem_c.dylib (1082.60.1) <0F0C7ED5-3902-3427-9C1D-E2F130B528C5> /usr/lib/system/libsystem_c.dylib
    0x7fff8dc01000 -     0x7fff8dcb1fff  com.apple.backup.framework (1.7.4 - 1.7.4) <F304E9D1-991A-379E-9659-BF85C35B4808> /System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup
    0x7fff8dde1000 -     0x7fff8ddebfff  com.apple.NetAuth (6.0 - 6.0) <D692B1EF-534F-3892-8E2F-2BBA7C8AFD74> /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth
    0x7fff8e680000 -     0x7fff8e680fff  com.apple.audio.units.AudioUnit (1.13 - 1.13) <378B5292-F216-32AB-B628-8C33A72D7052> /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
    0x7fff8e6cf000 -     0x7fff8e703ff7  com.apple.CoreVideo (1.8 - 191.3) <1AA24A1B-CB84-3F6B-B6DE-11494542649C> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
    0x7fff8e70d000 -     0x7fff8e70efff  libsystem_blocks.dylib (65) <1244D9D5-F6AA-35BB-B307-86851C24B8E5> /usr/lib/system/libsystem_blocks.dylib
    0x7fff8e70f000 -     0x7fff8e72cff7  com.apple.AppleVPAFramework (2.1.2 - 2.1.2) <D15C8464-EC96-30F4-8AD0-283A30F154D9> /System/Library/PrivateFrameworks/AppleVPA.framework/Versions/A/AppleVPA
    0x7fff8e73c000 -     0x7fff8e79afff  com.apple.CoreServices.OSServices (728.14 - 728.14) <F8B095AF-7E33-3D03-BAE5-0FA4B240D12A> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
    0x7fff8e85b000 -     0x7fff8e861ff7  com.apple.speech.recognition.framework (5.1.1 - 5.1.1) <9E5A980A-F455-32D5-BBEE-3BD6018CC45E> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
    0x7fff8e862000 -     0x7fff8e8cdff7  com.apple.framework.CoreWLAN (11.0 - 1101.20) <F91E178D-874A-3080-8C6D-556E07A4C527> /System/Library/Frameworks/CoreWLAN.framework/Versions/A/CoreWLAN
    0x7fff8e8ce000 -     0x7fff8e8cefff  libmetal_timestamp.dylib (600.0.44.2) <DEEA1127-7A5D-3EF2-A4B2-AE125CBA5DB5> /System/Library/PrivateFrameworks/GPUCompiler.framework/libmetal_timestamp.dylib
    0x7fff8e947000 -     0x7fff8e94aff7  libCoreFSCache.dylib (119.5) <2389D7DA-B8EF-3EB4-AAAF-FBEDE01CDECA> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreFSCache.dylib
    0x7fff8e9b9000 -     0x7fff8eb20fff  libBLAS.dylib (1162.2) <A1398FE0-39D2-33EA-9A0F-B2644EEA29A0> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
    0x7fff8eb21000 -     0x7fff8eb87ff7  libsystem_network.dylib (583.50.1) <B52DAB73-92DC-3DA7-B9F4-B899D66445C1> /usr/lib/system/libsystem_network.dylib
    0x7fff8eba8000 -     0x7fff8ebacfff  libpam.2.dylib (20) <CFCD19BD-87BC-3F2B-BB1C-4C23E8E55F1A> /usr/lib/libpam.2.dylib
    0x7fff8ebad000 -     0x7fff8ebdcfc3  libsystem_m.dylib (3105) <8A645D53-92DD-3C2E-8AFA-F28BC63E3657> /usr/lib/system/libsystem_m.dylib
    0x7fff8ec93000 -     0x7fff8ec97fff  libGIF.dylib (1464) <91BEB042-4459-3632-B24A-E7E8D67CFC8D> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
    0x7fff8f40b000 -     0x7fff8f40bfff  libOpenScriptingUtil.dylib (169.2) <A6D6ECFF-C315-3353-832B-1ADB5F4588CB> /usr/lib/libOpenScriptingUtil.dylib
    0x7fff8f470000 -     0x7fff8f497fff  com.apple.ChunkingLibrary (167 - 167) <AD7F285C-005E-36BB-98A3-5826413533BE> /System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/ChunkingLibrary
    0x7fff8f498000 -     0x7fff8f4b0fef  libcompression.dylib (28) <E7601B62-1053-369D-8A9E-91CF86239220> /usr/lib/libcompression.dylib
    0x7fff8f4b1000 -     0x7fff8f4b5fff  libcache.dylib (75) <9548AAE9-2AB7-3525-9ECE-A2A7C4688447> /usr/lib/system/libcache.dylib
    0x7fff8f4b6000 -     0x7fff8f4b8ff7  libsystem_configuration.dylib (802.40.13) <B815C622-96EF-388A-823B-B02618E7F190> /usr/lib/system/libsystem_configuration.dylib
    0x7fff8f4b9000 -     0x7fff8f528fff  com.apple.datadetectorscore (7.0 - 460) <54109E72-3125-3ABE-B8F7-4894D0F706B4> /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore
    0x7fff8f529000 -     0x7fff8f56eff7  com.apple.coreservices.SharedFileList (24.4 - 24.5) <1D2AD77B-778F-3253-A295-3D0A32A8121C> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList
    0x7fff8f571000 -     0x7fff8f5bdffb  com.apple.HIServices (1.22 - 550) <6B76B41C-CF5A-34C4-89F4-EFD7CA3D1C9D> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
    0x7fff8f886000 -     0x7fff8f8ccff7  libauto.dylib (186) <999E610F-41FC-32A3-ADCA-5EC049B65DFB> /usr/lib/libauto.dylib
    0x7fff8f8cd000 -     0x7fff8fad8fff  libFosl_dynamic.dylib (16.24) <5F9DB82D-FD4B-3952-8531-CE020F93ED49> /usr/lib/libFosl_dynamic.dylib
    0x7fff8fad9000 -     0x7fff8fadbff7  libquarantine.dylib (80) <5B351BEC-27CC-3935-82F3-A065CC764255> /usr/lib/system/libquarantine.dylib
    0x7fff8fafd000 -     0x7fff8fb08ff7  libkxld.dylib (3248.73.8) <B8E4129A-CA87-3C2B-94D3-BC63331D6263> /usr/lib/system/libkxld.dylib
    0x7fff8fb6b000 -     0x7fff8fb73ffb  libsystem_dnssd.dylib (625.60.4) <80189998-32B0-316C-B5C5-53857486713D> /usr/lib/system/libsystem_dnssd.dylib
    0x7fff8fce8000 -     0x7fff8fcfffff  libmarisa.dylib (4) <E4919B03-D9BD-3AF8-B436-C415C98E3F0A> /usr/lib/libmarisa.dylib
    0x7fff8fd00000 -     0x7fff8fd05fff  com.apple.DiskArbitration (2.7 - 2.7) <8CB47F4A-0FD2-343A-93C8-965174F6F24F> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x7fff8fd22000 -     0x7fff8fd3efff  com.apple.GenerationalStorage (2.0 - 239.1.1) <D9199946-561F-3C1C-8826-D8E96024AC97> /System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage
    0x7fff8fdb9000 -     0x7fff8ffc6fff  libicucore.A.dylib (551.51.6) <142B2AD5-0A50-3382-8213-096E925863F7> /usr/lib/libicucore.A.dylib
    0x7fff90165000 -     0x7fff9016eff7  com.apple.CommonAuth (4.0 - 2.0) <5B980638-76EC-3B49-8B24-690BA48C3CDC> /System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth
    0x7fff901e6000 -     0x7fff901f9fff  com.apple.CoreBluetooth (1.0 - 1) <E54CA9A2-A5C6-30C5-9D6E-8472DBA9371E> /System/Library/Frameworks/CoreBluetooth.framework/Versions/A/CoreBluetooth
    0x7fff901fb000 -     0x7fff90206fff  libGL.dylib (12.1) <70D51643-04AC-3400-8F11-A6FC25985289> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
    0x7fff902b7000 -     0x7fff903c5ff3  com.apple.desktopservices (1.10.3 - 1.10.3) <3A6906D4-C0B8-30D1-B589-0466E5E42B69> /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
    0x7fff9047a000 -     0x7fff90569ffb  libxml2.2.dylib (29.17) <FBD158AB-4229-352A-B738-566BC41E136B> /usr/lib/libxml2.2.dylib
    0x7fff90611000 -     0x7fff90614ffb  libdyld.dylib (360.22) <5CE14929-3304-3F6D-BC5E-772589C27D9B> /usr/lib/system/libdyld.dylib
    0x7fff90615000 -     0x7fff90633ff7  libsystem_kernel.dylib (3248.73.8) <DD688C4A-8255-3103-A908-45EEFAAB5F43> /usr/lib/system/libsystem_kernel.dylib
    0x7fff9077e000 -     0x7fff9077eff7  liblaunch.dylib (765.70.1) <96D7C3EE-82E2-39AB-870F-B317A030E86D> /usr/lib/system/liblaunch.dylib
    0x7fff9077f000 -     0x7fff9078dff7  libbz2.1.0.dylib (38) <790B4CA3-9A41-39B2-ACDB-3DF973695B0F> /usr/lib/libbz2.1.0.dylib
    0x7fff90835000 -     0x7fff908d5fff  com.apple.Metadata (10.7.0 - 972.34) <CC129633-BAE2-3AF2-A15E-8EE021F66B6E> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
    0x7fff908d6000 -     0x7fff90aa4ff3  com.apple.QuartzCore (1.11 - 410.14) <624AEEBC-570F-3A2C-92FF-867923CBE6E6> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
    0x7fff90aa5000 -     0x7fff90b13ff7  com.apple.ApplicationServices.ATS (377 - 394.5) <892FAD85-37FC-39FC-9E6A-7EC00DBA70B9> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
    0x7fff91a3b000 -     0x7fff91a55fff  com.apple.Kerberos (3.0 - 1) <1B4744BF-E5AE-38E2-AA56-E22D3270F2E8> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
    0x7fff91a95000 -     0x7fff91b1eff7  com.apple.PerformanceAnalysis (1.0 - 1) <059AC15F-E93B-377C-ABFE-22244800D109> /System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis
    0x7fff91e93000 -     0x7fff9212dffb  com.apple.security (7.0 - 57337.60.8) <ACE9EE34-8C77-337C-AB31-AD4A2543F3D5> /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x7fff9212e000 -     0x7fff9216fff7  libGLU.dylib (12.1) <CD7A5916-3E3C-3EF3-A275-B281016B99CB> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
    0x7fff92171000 -     0x7fff921fedd7  com.apple.AppleJPEG (1.0 - 1) <BF7EDBDB-A52D-37F7-BDE4-EAD49310D7A9> /System/Library/PrivateFrameworks/AppleJPEG.framework/Versions/A/AppleJPEG
    0x7fff921ff000 -     0x7fff92254fff  com.apple.AE (701 - 701) <AD492742-F884-386B-A450-FAC281B9FFA4> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
    0x7fff9225c000 -     0x7fff92541ffb  com.apple.CoreServices.CarbonCore (1136.2 - 1136.2) <2DBAFC9A-6CD6-351D-B1F4-87D81AA6D640> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
    0x7fff9256c000 -     0x7fff9265cff7  libJP2.dylib (1464) <B75DE70D-C370-331B-9C68-AE5D0B542875> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
    0x7fff92694000 -     0x7fff926a0ff7  com.apple.OpenDirectory (10.11 - 194) <31A67AD5-5CC2-350A-96D7-821DF4BC4196> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
    0x7fff926c1000 -     0x7fff926c2fff  libsystem_secinit.dylib (20) <32B1A8C6-DC84-3F4F-B8CE-9A52B47C3E6B> /usr/lib/system/libsystem_secinit.dylib
    0x7fff926c3000 -     0x7fff92969ff7  com.apple.CoreData (120 - 641.3) <A29A5491-6169-372B-828F-84EE0CFD4BC4> /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
    0x7fff9296a000 -     0x7fff92a91fff  com.apple.LaunchServices (728.14 - 728.14) <9FD72377-259A-3B98-8D39-5F5298A4C1FE> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
    0x7fff92ca7000 -     0x7fff92cc0fff  com.apple.CFOpenDirectory (10.11 - 194) <11F95672-55E0-3F9D-9171-5E8C56AEE948> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
    0x7fff92cc1000 -     0x7fff92dbdff7  libFontParser.dylib (158.8) <E471503F-C3F1-370C-ABDC-B9152CA6BCAA> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib
    0x7fff92ea4000 -     0x7fff92eabff7  libcompiler_rt.dylib (62) <A13ECF69-F59F-38AE-8609-7B731450FBCD> /usr/lib/system/libcompiler_rt.dylib
    0x7fff92f29000 -     0x7fff92f4bfff  com.apple.IconServices (68.1 - 68.1) <CDEEDBE6-F53B-3BA1-82D4-23BCA3DD8949> /System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconServices
    0x7fff92f6e000 -     0x7fff93081ff7  libvDSP.dylib (563.5) <DECAFACB-E61D-3B8E-A103-CD5EED1A9E9F> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
    0x7fff935b2000 -     0x7fff93659fff  com.apple.LanguageModeling (1.0 - 1) <58C18A47-BDE7-3CBE-81C0-797029D170A1> /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling
    0x7fff9365a000 -     0x7fff9365afff  com.apple.CoreServices (728.14 - 728.14) <11D8D061-60A6-31BA-99CD-43241E7A8F97> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x7fff93a6b000 -     0x7fff93ae0fff  com.apple.framework.IOKit (2.0.2 - 1179.50.3) <80452F8B-D168-3848-A5F6-3CF96EBEDD5D> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x7fff93b00000 -     0x7fff93b77feb  libcorecrypto.dylib (335.50.1) <D3E09C83-7B98-3E1A-B47E-820A135A3879> /usr/lib/system/libcorecrypto.dylib
    0x7fff93b8d000 -     0x7fff93bc7ff7  com.apple.DebugSymbols (132 - 132) <23A42C53-B941-3871-9EE2-4C87A46005B5> /System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbols
    0x7fff93bc8000 -     0x7fff93bd3ff7  libChineseTokenizer.dylib (16) <79B8C67A-3061-3C78-92CD-4650719E68D4> /usr/lib/libChineseTokenizer.dylib
    0x7fff93bd7000 -     0x7fff94e23fff  com.apple.CoreGraphics (1.600.0 - 960.7) <FEC94049-FAD3-3F63-B8D4-F8C5AB1C7687> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
    0x7fff94e38000 -     0x7fff94e38fff  com.apple.Accelerate (1.10 - Accelerate 1.10) <185EC96A-5AF0-3620-A4ED-4D3654D25B39> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    0x7fff94e45000 -     0x7fff951a7f3f  libobjc.A.dylib (680) <7489D2D6-1EFD-3414-B18D-2AECCCC90286> /usr/lib/libobjc.A.dylib
    0x7fff952ae000 -     0x7fff95724fff  com.apple.CoreFoundation (6.9 - 1259.22) <53EFA4A7-4614-383E-BEEE-B8B9D9D19FFA> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff95725000 -     0x7fff9634eff7  com.apple.AppKit (6.9 - 1404.47) <F3411F6E-DD87-34D0-8C68-C69B2205E41D> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x7fff9634f000 -     0x7fff96351ff7  com.apple.xpc.ServiceManagement (1.0 - 1) <B4181284-D588-3A20-93F3-B4FA882BC9A8> /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement
    0x7fff96352000 -     0x7fff9637ffff  libdispatch.dylib (501.40.12) <C7499857-61A5-3D7D-A5EA-65DCC8C3DF92> /usr/lib/system/libdispatch.dylib
    0x7fff963bb000 -     0x7fff96642fff  com.apple.CFNetwork (760.9 - 760.9) <54B34D8B-BDE6-37EA-B178-1906827ECC59> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
    0x7fff967bc000 -     0x7fff967bfffb  libScreenReader.dylib (426.42) <16FC79D1-4573-3E90-945F-CBA22D5185FD> /usr/lib/libScreenReader.dylib
    0x7fff96fa5000 -     0x7fff96fadfff  libGFXShared.dylib (12.1) <FBBA57ED-8EDC-33EF-BBF5-C7FBDCDE6B41> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib
    0x7fff96fb0000 -     0x7fff96fcfff7  com.apple.framework.Apple80211 (11.0 - 1121.34.2) <84FDA279-9F05-32F9-908F-4E0DAC422311> /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211
    0x7fff96fec000 -     0x7fff97007ff7  libCRFSuite.dylib (34) <078B4CD8-6A8C-3067-B2BA-0C2A0BAB8AC3> /usr/lib/libCRFSuite.dylib
    0x7fff970a5000 -     0x7fff970bcff7  libsystem_coretls.dylib (83.40.5) <C90DAE38-4082-381C-A185-2A6A8B677628> /usr/lib/system/libsystem_coretls.dylib
    0x7fff9742a000 -     0x7fff9771ffff  com.apple.HIToolbox (2.1.1 - 807.2) <36413C45-36AF-34EF-9C0E-F18B31D1E565> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
    0x7fff97791000 -     0x7fff977b6ff7  libPng.dylib (1464) <F481B1EF-3A1F-3F1A-88D7-2A2FF5168466> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
    0x7fff977b7000 -     0x7fff977efff7  com.apple.RemoteViewServices (2.0 - 101) <B2881449-8CFE-3D1C-B4BF-155640392533> /System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices
    0x7fff978eb000 -     0x7fff978f9fff  libxar.1.dylib (302) <03207F66-2C4A-3DBD-8D81-70F4C85903C4> /usr/lib/libxar.1.dylib
    0x7fff97904000 -     0x7fff97973fff  com.apple.SearchKit (1.4.0 - 1.4.0) <F159A888-34CA-36F1-AC8E-EB1B38C9DFB3> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
    0x7fff9799f000 -     0x7fff97a35fff  com.apple.ColorSync (4.9.0 - 4.9.0) <8FC37E20-6579-3CB2-9D49-BC39FC38DF87> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
    0x7fff97a36000 -     0x7fff97a42fff  com.apple.SpeechRecognitionCore (2.2.7 - 2.2.7) <6BA06290-D4A3-351C-87F9-B61EF61FF055> /System/Library/PrivateFrameworks/SpeechRecognitionCore.framework/Versions/A/SpeechRecognitionCore
    0x7fff97b1a000 -     0x7fff97b28fff  com.apple.opengl (12.1.0 - 12.1.0) <B9CE1265-6D68-3BE3-8345-90F9402F5DF3> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
    0x7fff97b29000 -     0x7fff97b53ff7  libc++abi.dylib (307.4) <D24E06BF-6522-3C4A-BD0C-11C42BA4D8E8> /usr/lib/libc++abi.dylib
    0x7fff97ce1000 -     0x7fff98076fdb  com.apple.vImage (8.0 - 8.0) <4BAC9B6F-7482-3580-8787-AB0A5B4D331B> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
    0x7fff9807e000 -     0x7fff9808fff7  libsystem_trace.dylib (201.10.3) <356456FC-C29F-30DB-8382-9806D0D9426D> /usr/lib/system/libsystem_trace.dylib
    0x7fff98090000 -     0x7fff98090fff  com.apple.ApplicationServices (48 - 48) <ADD57D3A-142F-3EF5-BFD8-EACD82164884> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
    0x7fff9809c000 -     0x7fff983f0fff  com.apple.Foundation (6.9 - 1259.32) <472CF0E0-E6AE-3330-86A5-849F120749E2> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x7fff983fc000 -     0x7fff9840dfff  libSparseBLAS.dylib (1162.2) <EBEB3848-3468-342A-91A6-5C47F2369CD9> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib
    0x7fff989f1000 -     0x7fff989f2fff  liblangid.dylib (122) <9CC4F0D1-5C51-3B69-BC8F-EE3A51FD0822> /usr/lib/liblangid.dylib
    0x7fff989f3000 -     0x7fff98a0fff7  libextension.dylib (78) <FD952DA6-BBEC-3CB6-98B3-E1D111C5C54E> /usr/lib/libextension.dylib
    0x7fff99307000 -     0x7fff99307ff7  libunc.dylib (29) <DDB1E947-C775-33B8-B461-63E5EB698F0E> /usr/lib/system/libunc.dylib
    0x7fff99327000 -     0x7fff99755fff  com.apple.vision.FaceCore (3.3.1 - 3.3.1) <E54028EA-4217-3078-A2B1-C52E4214D59E> /System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore
    0x7fff99762000 -     0x7fff998e0fff  com.apple.UIFoundation (1.0 - 436.1) <AABB5267-E7B7-3D75-B051-E665BDA8DEF4> /System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation
    0x7fff998e1000 -     0x7fff998e7fff  com.apple.IOAccelerator (205.14 - 205.14) <AFCB63A4-BEF6-362B-98C2-912FB1FC5F82> /System/Library/PrivateFrameworks/IOAccelerator.framework/Versions/A/IOAccelerator
    0x7fff99930000 -     0x7fff9993fffb  com.apple.LangAnalysis (1.7.0 - 1.7.0) <18D21123-A3E7-3851-974A-08E5D4540475> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
    0x7fff99989000 -     0x7fff9999aff7  libz.1.dylib (61.20.1) <B3EBB42F-48E3-3287-9F0D-308E04D407AC> /usr/lib/libz.1.dylib
    0x7fff99c07000 -     0x7fff99dcdff7  com.apple.ImageIO.framework (3.3.0 - 1462) <78862785-0667-35F6-87C0-A1B1FA3588A7> /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
    0x7fff99dce000 -     0x7fff99e42ff3  com.apple.securityfoundation (6.0 - 55126) <DB67837E-9813-3C25-896A-CB6FA800F366> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
    0x7fff99e70000 -     0x7fff99e81fff  libcmph.dylib (6) <BA4BF2C6-7F4E-33B8-9DD7-619C9EB83ECF> /usr/lib/libcmph.dylib
    0x7fff99e82000 -     0x7fff99e99ff7  libsystem_asl.dylib (323.50.1) <41F8E11F-1BD0-3F1D-BA3A-AA1577ED98A9> /usr/lib/system/libsystem_asl.dylib
    0x7fff99eed000 -     0x7fff99f91fff  com.apple.Bluetooth (4.4.6 - 4.4.6f2) <C84D30C1-DC2E-356E-A8C8-DA496CA659CB> /System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth
    0x7fff99f92000 -     0x7fff99facff3  liblzma.5.dylib (10) <CC03591B-FA57-3CA5-AC81-0D76033AC0CE> /usr/lib/liblzma.5.dylib
    0x7fff9a396000 -     0x7fff9a39bff7  libheimdal-asn1.dylib (453.40.11) <41620070-8AA6-3566-8520-67C65F6FA0DF> /usr/lib/libheimdal-asn1.dylib
    0x7fff9a767000 -     0x7fff9a772fff  com.apple.CrashReporterSupport (10.11 - 718) <43A265E6-47D6-35F9-8C27-387DE099E9E4> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport
    0x7fff9a7c6000 -     0x7fff9a7cefff  libcopyfile.dylib (127) <A48637BC-F3F2-34F2-BB68-4C65FD012832> /usr/lib/system/libcopyfile.dylib
    0x7fff9aac6000 -     0x7fff9aaefff7  libxslt.1.dylib (14.6) <ADD24C4F-3B96-304E-8EE5-5F5B0EA62991> /usr/lib/libxslt.1.dylib
    0x7fff9aaf0000 -     0x7fff9aaf0ff7  libkeymgr.dylib (28) <8371CE54-5FDD-3CE9-B3DF-E98C761B6FE0> /usr/lib/system/libkeymgr.dylib
    0x7fff9aaf1000 -     0x7fff9ab0dff3  libresolv.9.dylib (60) <A650B5C8-1950-36A0-86D1-0B2465318BFA> /usr/lib/libresolv.9.dylib
    0x7fff9ab0e000 -     0x7fff9ab19ff7  libcommonCrypto.dylib (60075.50.1) <D81DA58F-A07A-3358-A09C-BE2C83F9CAD2> /usr/lib/system/libcommonCrypto.dylib
    0x7fff9af28000 -     0x7fff9af74fff  com.apple.print.framework.PrintCore (11.2 - 472.2) <5AE8AA6B-CE09-397D-B0D4-0F9CCBF1F77D> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
    0x7fff9b382000 -     0x7fff9b528ff7  com.apple.audio.toolbox.AudioToolbox (1.13 - 1.13) <370E95BC-956C-3962-86CC-0A14CF6A0389> /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
    0x7fff9b735000 -     0x7fff9b737ff7  libRadiance.dylib (1464) <B0EA74D9-BC3B-3C5F-8D35-C3AADB5BD61F> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
    0x7fff9b807000 -     0x7fff9b82bfff  libJPEG.dylib (1464) <492AEE9D-5D4B-3063-A380-FA8561103D55> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
    0x7fff9b82c000 -     0x7fff9b835ff3  libsystem_notify.dylib (150.40.1) <D48BDE34-0F7E-34CA-A0FF-C578E39987CC> /usr/lib/system/libsystem_notify.dylib
    0x7fff9b8e5000 -     0x7fff9b8f1fff  com.apple.speech.synthesis.framework (5.4.12 - 5.4.12) <71DA00B8-5EA2-326B-8814-59DB25512F65> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
    0x7fff9ba1a000 -     0x7fff9ba1bffb  libSystem.B.dylib (1226.10.1) <2CBB584D-A69C-36AA-A432-8E4E334EA589> /usr/lib/libSystem.B.dylib
    0x7fff9ba1c000 -     0x7fff9ba6dfff  com.apple.audio.CoreAudio (4.3.0 - 4.3.0) <EA7D4F3B-062B-3C81-A98C-C89264D00D48> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
    0x7fff9bc9c000 -     0x7fff9bccdfff  com.apple.GSS (4.0 - 2.0) <23A5ACE3-683C-3E32-9A9B-05FC934AFAFB> /System/Library/Frameworks/GSS.framework/Versions/A/GSS
    0x7fff9c5ad000 -     0x7fff9c642fff  com.apple.ink.framework (10.9 - 214) <1F76CF36-3F79-36B8-BC37-C540AF34B338> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
    0x7fff9ccff000 -     0x7fff9cd02fff  libCoreVMClient.dylib (119.5) <560D70FB-709F-3030-96C9-F249FCB7DA6D> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib
    0x7fff9ce0b000 -     0x7fff9ce0cfff  libDiagnosticMessagesClient.dylib (100) <4243B6B4-21E9-355B-9C5A-95A216233B96> /usr/lib/libDiagnosticMessagesClient.dylib
    0x7fff9d06a000 -     0x7fff9d06dfff  libsystem_sandbox.dylib (460.60.4) <907BB546-2F67-30B0-9B5B-05EC5F249EB2> /usr/lib/system/libsystem_sandbox.dylib
    0x7fff9d088000 -     0x7fff9d31efff  libmecabra.dylib (696.5) <EF6C0BD4-5FE8-34FB-8ADF-69A53CEC97A9> /usr/lib/libmecabra.dylib
    0x7fff9d322000 -     0x7fff9d364ff7  com.apple.Metal (56.6 - 56.6) <30518711-8D00-3759-AA19-800D3C88E693> /System/Library/Frameworks/Metal.framework/Versions/A/Metal
    0x7fff9dafc000 -     0x7fff9db01ff7  libmacho.dylib (875.1) <318264FA-58F1-39D8-8285-1F6254EE410E> /usr/lib/system/libmacho.dylib
    0x7fff9de4c000 -     0x7fff9de54fef  libsystem_platform.dylib (74.40.2) <29A905EF-6777-3C33-82B0-6C3A88C4BA15> /usr/lib/system/libsystem_platform.dylib
    0x7fff9de64000 -     0x7fff9deb7ff7  libc++.1.dylib (120.1) <8FC3D139-8055-3498-9AC5-6467CB7F4D14> /usr/lib/libc++.1.dylib
    0x7fff9debe000 -     0x7fff9df0fff7  libcups.2.dylib (435.2) <91584A40-214D-33E8-A613-CE22289037C8> /usr/lib/libcups.2.dylib
    0x7fff9e023000 -     0x7fff9e097ff7  com.apple.Heimdal (4.0 - 2.0) <72D36F0E-2D3D-316E-870E-E68BF30F1D7D> /System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal
    0x7fff9e248000 -     0x7fff9e250fff  com.apple.NetFS (6.0 - 4.0) <842A5346-24C3-3F22-9ECF-E586A10EA1F2> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
    0x7fff9e352000 -     0x7fff9e362fff  libbsm.0.dylib (34) <7E14504C-A8B0-3574-B6EB-5D5FABC72926> /usr/lib/libbsm.0.dylib
    0x7fff9e369000 -     0x7fff9e36bfff  libCVMSPluginSupport.dylib (12.1) <994EFFFB-132C-3670-B738-5316EB8051F4> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib
    0x7fff9e4dc000 -     0x7fff9e4f8ff7  libsystem_malloc.dylib (67.40.1) <5748E8B2-F81C-34C6-8B13-456213127678> /usr/lib/system/libsystem_malloc.dylib
    0x7fff9e6c2000 -     0x7fff9e71efff  libTIFF.dylib (1464) <0328905B-AF97-39D1-A631-E1A4376014CF> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
    0x7fff9e71f000 -     0x7fff9e765fff  libFontRegistry.dylib (155.4) <EA64114D-1069-3D4D-BB6A-3F5769EE63B5> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib
    0x7fff9e766000 -     0x7fff9e78fff7  libxpc.dylib (765.70.1) <4FB1311F-4032-3F56-BF0B-CFF45D78FB01> /usr/lib/system/libxpc.dylib
    0x7fff9e790000 -     0x7fff9eb8cfff  libLAPACK.dylib (1162.2) <987E42B0-5108-3065-87F0-9DF7616A8A06> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
    0x7fff9eca8000 -     0x7fff9ecf7ff7  com.apple.opencl (2.7.0 - 2.7.0) <F410C203-0A88-35AB-8C06-D0E1A0209DA8> /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
    0x7fff9edcf000 -     0x7fff9edcffff  libenergytrace.dylib (10.40.1) <0A491CA7-3451-3FD5-999A-58AB4362682B> /usr/lib/libenergytrace.dylib
    0x7fff9f71e000 -     0x7fff9f720fff  com.apple.loginsupport (1.0 - 1) <9B2F5F9B-ED38-313F-B798-D2B667BCD6B5> /System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport
    0x7fff9f721000 -     0x7fff9f745fff  com.apple.MultitouchSupport.framework (304.12 - 304.12) <2B4AC448-89A8-3A3F-947F-06B5BF069DAF> /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport
    0x7fff9f746000 -     0x7fff9f796ff7  com.apple.Symbolication (1.4 - 58044) <F70BF765-FBE9-3F1E-85CA-BB2F8E53E8C2> /System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication
    0x7fff9f7fe000 -     0x7fff9f865fff  com.apple.framework.CoreWiFi (11.0 - 1101.20) <91C5A231-0F7B-3B6A-A2D9-D389DBE9E1EB> /System/Library/PrivateFrameworks/CoreWiFi.framework/Versions/A/CoreWiFi
    0x7fffa0ab9000 -     0x7fffa0abefff  com.apple.TCC (1.0 - 1) <F5EEB2D3-9517-3975-97BE-22CB8E11B8A3> /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
    0x7fffa0af6000 -     0x7fffa0af6fff  com.apple.Accelerate.vecLib (3.10 - vecLib 3.10) <054DFE32-737D-3211-9A14-0FC5E1A880E3> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
    0x7fffa0b39000 -     0x7fffa0b3eff3  libunwind.dylib (35.3) <F6EB48E5-4D12-359A-AB54-C937FBBE9043> /usr/lib/system/libunwind.dylib
    0x7fffa0c5b000 -     0x7fffa0cb9fff  com.apple.SystemConfiguration (1.14 - 1.14) <F083C2B2-6162-358F-9270-98EE9FE58A08> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
    0x7fffa0cba000 -     0x7fffa0d6afe7  libvMisc.dylib (563.5) <40346E9C-FC15-375F-A4FB-FE94EBE490B4> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
    0x7fffa0dbe000 -     0x7fffa0dc0fff  libsystem_coreservices.dylib (19.2) <1B3F5AFC-FFCD-3ECB-8B9A-5538366FB20D> /usr/lib/system/libsystem_coreservices.dylib
    0x7fffa1090000 -     0x7fffa11daff7  com.apple.coreui (2.1 - 366.1) <A004F065-6CDF-3456-A114-C6B3404D8A50> /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
    0x7fffa11db000 -     0x7fffa11e3fff  libsystem_networkextension.dylib (385.40.36) <66095DC7-6539-38F2-95EE-458F15F6D014> /usr/lib/system/libsystem_networkextension.dylib
    0x7fffa1274000 -     0x7fffa12a3ff7  com.apple.DictionaryServices (1.2 - 250.3) <30250542-CBAA-39C1-91AA-B57A5DE17594> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
    0x7fffa1411000 -     0x7fffa1433ff7  com.apple.Sharing (442.13.6 - 442.13.6) <DDD2811C-6ECB-32F2-8EE1-69BF9657B4A8> /System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 2
    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: 364995092
    thread_create: 0
    thread_set_state: 141

VM Region Summary:
ReadOnly portion of Libraries: Total=297.0M resident=0K(0%) swapped_out_or_unallocated=297.0M(100%)
Writable regions: Total=190.2M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=190.2M(100%)
 
                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Activity Tracing                  2048K        2 
Kernel Alloc Once                    4K        2 
MALLOC                            32.7M       20 
MALLOC guard page                   32K        7 
MALLOC_LARGE (reserved)            512K        3         reserved VM address space (unallocated)
STACK GUARD                         16K        5 
Stack                             18.0M        6 
Stack Guard                          4K        2 
VM_ALLOCATE                       8200K       21 
VM_ALLOCATE (reserved)           128.0M        3         reserved VM address space (unallocated)
__DATA                            18.9M      216 
__IMAGE                            528K        2 
__LINKEDIT                        98.2M       38 
__TEXT                           198.8M      212 
__UNICODE                          552K        2 
shared memory                       12K        4 
===========                     =======  ======= 
TOTAL                            506.2M      529 
TOTAL, minus reserved VM space   377.7M      529 

Model: iMac17,1, BootROM IM171.0151.B00, 4 processors, Intel Core i5, 3.3 GHz, 16 GB, SMC 2.34f2
Graphics: AMD Radeon R9 M395, AMD Radeon R9 M395, PCIe, 2048 MB
Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1867 MHz, 0x802C, 0x31364B544631473634485A2D314739453220
Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1867 MHz, 0x802C, 0x31364B544631473634485A2D314739453220
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x14A), Broadcom BCM43xx 1.0 (7.21.95.178.1a2)
Bluetooth: Version 4.4.6f2, 3 services, 27 devices, 1 incoming serial ports
Network Service: Ethernet, Ethernet, en0
Serial ATA Device: APPLE HDD ST2000DM001, 2 TB
Serial ATA Device: APPLE SSD SM0128G, 121.33 GB
USB Device: USB 3.0 Bus
USB Device: Bluetooth USB Host Controller
USB Device: FaceTime HD Camera (Built-in)
USB Device: Keyboard Hub
USB Device: Apple Keyboard
Thunderbolt Bus: iMac, Apple Inc., 28.1

Unfortunately I cannot duplicate this with Python's threading module. I am not sure why that is - openblas, python and Qt5 use the same posix threading model underneath.

Building numpy 1.15.0rc2 against OpenBLAS 3.1.0 (from homebrew) seems to fix this. OpenBLAS 3.1.0 release notes do feature a note: 'rewritten thread initialization code with significantly reduced overhead'

Is it too late in the 1.15.0 release plan to rebuild and retest with OpenBLAS 3.1.0?

Python: 3.6.5
Platform: macOS (10.11.6)
Numpy: 1.15.0rc2 with openblas 3.0.0 (pypi wheel)

@charris
Copy link
Member

charris commented Jul 11, 2018

Certainly worth a try. How are you calling the function without going through Python? I note that NumPy doesn't do well as a subprocess. @matthew-brett Thoughts?

@charris
Copy link
Member

charris commented Jul 11, 2018

@matthew-brett Are the Mac wheels actually built against openblas or are they using accelerate?

@matthew-brett
Copy link
Contributor

Yes, looks like we're building against OpenBLAS : https://travis-ci.org/MacPython/numpy-wheels/jobs/401864648#L5256

@ales-erjavec
Copy link
Contributor Author

How are you calling the function without going through Python?

The call does go through python. The difference is that the native thread is allocated and started by Qt's runtime instead of the python's. The python code is then invoked via the QRunnable interface, where PyQt5/sip api ensures that the Python's thread state is initialized (as per https://docs.python.org/3/c-api/init.html#non-python-created-threads)

@charris
Copy link
Member

charris commented Jul 14, 2018

@matthew-brett Probably worth trying OpenBLAS 0.3.1. I'd like to release NumPy 1.15.0 out in about week, but if we update OpenBLAS I could do a rc3 sooner just to make sure nothing obvious breaks.

@matthew-brett
Copy link
Contributor

I just merged OpenBLAS 0.3.1 builds into numpy-wheels/master - can you branch from there?

@ales-erjavec
Copy link
Contributor Author

Building numpy 1.15.0rc2 against OpenBLAS 0.3.1 (from homebrew) seems to fix this. OpenBLAS 3.1.0 release notes do feature a note: 'rewritten thread initialization code with significantly reduced overhead'

Bah. Scratch that. Linking with OpenBLAS 0.3.0 homebrew build also worked. The differences seems to be in the OpenBLAS build parameter NUM_THREADS. Building OpenBLAS 0.3.1 with NUM_THREADS=64 as done in https://github.com/MacPython/openblas-libs/blob/master/travis-ci/build_steps.sh exhibits the same problem.

@matthew-brett
Copy link
Contributor

Hum - what NUM_THREADS does homebrew use?

@ales-erjavec
Copy link
Contributor Author

It does not specify the parameter (openblas.rb) so I assume it takes the current number or cores. When I build it with no parameter it builds with

 OpenBLAS build complete. (BLAS CBLAS LAPACK LAPACKE)

  OS               ... Darwin             
  Architecture     ... x86_64               
  BINARY           ... 64bit                 
  C compiler       ... CLANG  (command line : cc)
  Fortran compiler ... GFORTRAN  (command line : gfortran)
-n   Library Name     ... libopenblasp-r0.3.1.a
 (Multi threaded; Max num-threads is 4)

@matthew-brett
Copy link
Contributor

Can you try building the homebrew version of 0.3.0 with 64 threads, and verify it reproduces the crash? I'm worried it may be some other aspect of the build.

@ales-erjavec
Copy link
Contributor Author

Yes rebuilding and linking OpenBLAS 0.3.0 with NUM_THREADS=64 reproduces the crash.

@matthew-brett
Copy link
Contributor

Sorry to ask, but how about rebuilding and linking with NUM_THREADS=4

@njsmith
Copy link
Member

njsmith commented Jul 16, 2018

Unfortunately, we can't really ship wheels with NUM_THREADS=4, because there are lots of people out there with more than four cores... though I guess maybe not running MacOS.

@ales-erjavec
Copy link
Contributor Author

The problem actually seems to be insufficient stack size of the QThreadPool created threads (well actually Apple's default stack size for pthread_createed threads which is 512 KB). Qt chose to keep system defaults, unless otherwise specified (QTBUG-49607, QTBUG-2568), while Python seems to explicitly set the stack size for the threads it creates to something reasonable.

When OpenBLAS is build with NUM_THREADS=64 it allocates 512 KB on the stack just for the jobs array in gemm_driver (see OpenMathLib/OpenBLAS@5d33121 for the rundown of allocation size).

Explicitly setting the the stack size to 8MB for the threads in the QThreadPool (QThreadPool::setStackSize) fixes the problem for both OpenBLAS 0.3.0 and 0.3.1 with NUM_THREADS=64.

@ales-erjavec
Copy link
Contributor Author

I guess you can close this as the problem lies somewhere else. Sorry for the trouble.

@charris
Copy link
Member

charris commented Jul 16, 2018

Sorry for the trouble.

No problem, I think we have all learned something worth knowing.

@charris charris closed this as completed Jul 16, 2018
@matthew-brett
Copy link
Contributor

Seconded - thanks for tracking this down.

jjyao added a commit to ray-project/ray that referenced this issue Nov 28, 2023
The default thread stack size for core worker io thread on macOS is insufficient to run some python code (e.g. import numpy numpy/numpy#11551).

Signed-off-by: Jiajun Yao <jeromeyjj@gmail.com>
ujjawal-khare pushed a commit to ujjawal-khare-27/ray that referenced this issue Nov 29, 2023
…oject#41360)

The default thread stack size for core worker io thread on macOS is insufficient to run some python code (e.g. import numpy numpy/numpy#11551).

Signed-off-by: Jiajun Yao <jeromeyjj@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants