Crash: Segfault when opening macvim
kevinkirkup opened this issue · comments
python3 is crashing when opening a MacVim/vim.
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: python3.6 [87555]
Path: /Users/USER/*/python3.6
Identifier: python3.6
Version: ???
Code Type: X86-64 (Native)
Parent Process: Vim [87482]
Responsible: iTerm2 [8673]
User ID: 503
Date/Time: 2022-06-09 13:11:18.7449 -0400
OS Version: macOS 12.4 (21F79)
Report Version: 12
Bridge OS Version: 6.5 (19P5071)
Anonymous UUID: 0A3484C7-C44B-3BA9-B3E7-B7C839F9FC42
Time Awake Since Boot: 81000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x000000000034c469
Exception Codes: 0x0000000000000001, 0x000000000034c469
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process: exc handler [87555]
VM Region Info: 0x34c469 is not in any region. Bytes before following region: 4440271767
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 108ddf000-10907b000 [ 2672K] r-x/rwx SM=COW ...R/*/python3.6
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libpython3.6m.dylib 0x109f10a54 PyGILState_Ensure + 116
1 ycm_core.cpython-36m-darwin.so 0x10a1b3b1c pybind11::detail::get_internals() + 60
2 ycm_core.cpython-36m-darwin.so 0x10a1c6e5c PyInit_ycm_core + 124
3 python3.6 0x108f62bf2 _PyImport_LoadDynamicModuleWithSpec + 402
4 python3.6 0x108f62390 _imp_create_dynamic + 208
5 python3.6 0x108e63712 PyCFunction_Call + 66
6 python3.6 0x108f2916b _PyEval_EvalFrameDefault + 27979
7 python3.6 0x108f20dc5 _PyEval_EvalCodeWithName + 533
8 python3.6 0x108f2fb06 fast_function + 374
9 python3.6 0x108f2f6d2 call_function + 338
10 python3.6 0x108f27c3e _PyEval_EvalFrameDefault + 22558
Log is empty.
Seems like this is an issue when not compiling with the OSX System Python3 version.
Change from anaconda env to system fixed the issue.