`SR` autocompletion segmentation fault
Created by: PhilipVinc
On Python 3.7.4, Mac OS X 10.15.1, netket v2.1
➜ python
Python 3.7.4 (default, Sep 7 2019, 18:27:02)
[Clang 10.0.1 (clang-1001.0.46.4)] on darwin
Running the following and then pressing tab to check the possible completion causes a segmentation fault
>>> import netket as nk
MPI successfully initialized by NetKet.
>>> sr = nk.optimizer.SR(diag_shift=0.01, use_iterative=True)
>>> sr.[\tab]
[macpro-vicentini:03660] *** Process received signal ***
[macpro-vicentini:03660] Signal: Segmentation fault: 11 (11)
[macpro-vicentini:03660] Signal code: Address not mapped (1)
[macpro-vicentini:03660] Failing at address: 0x8
[macpro-vicentini:03660] [ 0] 0 libsystem_platform.dylib 0x00007fff6a2e6b1d _sigtramp + 29
[macpro-vicentini:03660] [ 1] 0 _C_netket.cpython-37m-darwin.so 0x0000000101be5a70 _ZNSt3__116allocator_traitsINS_9allocatorIlEEE9constructIlJRKlEEEvRS2_PT_DpOT0_ + 64
[macpro-vicentini:03660] [ 2] 0 _C_netket.cpython-37m-darwin.so 0x0000000101b55b25 _ZNK5Eigen15PlainObjectBaseINS_6MatrixINSt3__17complexIdEELin1ELin1ELi0ELin1ELin1EEEE4rowsEv + 21
[macpro-vicentini:03660] [ 3] 0 _C_netket.cpython-37m-darwin.so 0x0000000101c2af5d _ZN8pybind116detail16eigen_array_castINS0_10EigenPropsIN5Eigen6MatrixINSt3__17complexIdEELin1ELin1ELi0ELin1ELin1EEEEEEENS_6handleERKNT_4TypeESA_b + 77
[macpro-vicentini:03660] [ 4] 0 _C_netket.cpython-37m-darwin.so 0x0000000102200467 _ZN8pybind116detail15eigen_ref_arrayINS0_10EigenPropsIN5Eigen6MatrixINSt3__17complexIdEELin1ELin1ELi0ELin1ELin1EEEEEKS8_EENS_6handleERT0_SB_ + 39
[macpro-vicentini:03660] [ 5] 0 _C_netket.cpython-37m-darwin.so 0x00000001022002f8 _ZN8pybind116detail11type_casterIN5Eigen6MatrixINSt3__17complexIdEELin1ELin1ELi0ELin1ELin1EEEvE9cast_implIKS7_EENS_6handleEPT_NS_19return_value_policyESB_ + 392
[macpro-vicentini:03660] [ 6] 0 _C_netket.cpython-37m-darwin.so 0x0000000102200121 _ZN8pybind116detail11type_casterIN5Eigen6MatrixINSt3__17complexIdEELin1ELin1ELi0ELin1ELin1EEEvE4castEPKS7_NS_19return_value_policyENS_6handleE + 49
[macpro-vicentini:03660] [ 7] 0 _C_netket.cpython-37m-darwin.so 0x00000001022000a7 _ZZN8pybind1112cpp_function10initializeIZNS0_C1IPKN5Eigen6MatrixINSt3__17complexIdEELin1ELin1ELi0ELin1ELin1EEEN6netket2SREJEJEEEMT0_KFT_DpT1_EDpRKT2_EUlPKSC_E_SA_JSO_EJEEEvOSE_PFSD_SG_ESM_ENKUlRNS_6detail13function_callEE_clESV_ + 167
[macpro-vicentini:03660] [ 8] 0 _C_netket.cpython-37m-darwin.so 0x00000001021fffe5 _ZZN8pybind1112cpp_function10initializeIZNS0_C1IPKN5Eigen6MatrixINSt3__17complexIdEELin1ELin1ELi0ELin1ELin1EEEN6netket2SREJEJEEEMT0_KFT_DpT1_EDpRKT2_EUlPKSC_E_SA_JSO_EJEEEvOSE_PFSD_SG_ESM_ENUlRNS_6detail13function_callEE_8__invokeESV_ + 21
[macpro-vicentini:03660] [ 9] 0 _C_netket.cpython-37m-darwin.so 0x0000000101b3e313 _ZN8pybind1112cpp_function10dispatcherEP7_objectS2_S2_ + 3971
[macpro-vicentini:03660] [10] 0 Python 0x000000010154cd54 PyCFunction_Call + 208
[macpro-vicentini:03660] [11] 0 Python 0x0000000101552ed3 property_descr_get + 158
[macpro-vicentini:03660] [12] 0 Python 0x0000000101579afc _PyObject_GenericGetAttrWithDict + 180
[macpro-vicentini:03660] [13] 0 Python 0x00000001015d6e25 builtin_getattr + 156
[macpro-vicentini:03660] [14] 0 Python 0x000000010154d52f _PyMethodDef_RawFastCallKeywords + 495
[macpro-vicentini:03660] [15] 0 Python 0x000000010154cab2 _PyCFunction_FastCallKeywords + 44
[macpro-vicentini:03660] [16] 0 Python 0x00000001015e1e82 call_function + 636
[macpro-vicentini:03660] [17] 0 Python 0x00000001015dad0b _PyEval_EvalFrameDefault + 6576
[macpro-vicentini:03660] [18] 0 Python 0x000000010154ce8c function_code_fastcall + 112
[macpro-vicentini:03660] [19] 0 Python 0x00000001015e1ef7 call_function + 753
[macpro-vicentini:03660] [20] 0 Python 0x00000001015dac57 _PyEval_EvalFrameDefault + 6396
[macpro-vicentini:03660] [21] 0 Python 0x000000010154ce8c function_code_fastcall + 112
[macpro-vicentini:03660] [22] 0 Python 0x000000010154d829 _PyObject_Call_Prepend + 150
[macpro-vicentini:03660] [23] 0 Python 0x000000010154c4c3 _PyObject_FastCallDict + 264
[macpro-vicentini:03660] [24] 0 Python 0x000000010154d9d7 _PyObject_CallFunctionVa + 209
[macpro-vicentini:03660] [25] 0 Python 0x000000010154d8e8 PyObject_CallFunction + 126
[macpro-vicentini:03660] [26] 0 readline.so 0x0000000101a4b549 on_completion + 131
[macpro-vicentini:03660] [27] 0 libreadline.8.dylib 0x0000000101a5b7ef rl_completion_matches + 60
[macpro-vicentini:03660] [28] 0 readline.so 0x0000000101a4b429 flex_complete + 367
[macpro-vicentini:03660] [29] 0 libreadline.8.dylib 0x0000000101a5b08a gen_completion_matches + 47
[macpro-vicentini:03660] *** End of error message ***
zsh: segmentation fault python