wlav / cppyy

Other
387 stars 39 forks source link

Could not load cppyy_backend library, details:\n%s? #178

Open NiKeYiGuN opened 11 months ago

NiKeYiGuN commented 11 months ago

raise RuntimeError("could not load cppyy_backend library, details:\n%s" % RuntimeError: could not load cppyy_backend library, details: Could not find module 'libcppyy_backend.cp38-win_amd64.pyd' (or one of its dependencies). Try using the full path with constructor syntax. [WinError 1114] 动态链接库(DLL)初始化例程失败。 Could not find module 'libcppyy_backend.dll' (or one of its dependencies). Try using the full path with constructor syntax. Could not find module 'C:\GIT\mymeep\venv\lib\site-packages\cppyy_backend\lib\libcppyy_backend.cp38-win_amd64.pyd' (or one of its dependencies). Try using the full path with constructor syntax. python-BaseException

wlav commented 11 months ago

Does the library exist on your system in the paths where cppyy is looking for it? I'd figure it exists, as "[WinError 1114] 动态链接库(DLL)初始化例程失败。" apparently translates as "[WinError 1114] Dynamic Link Library (DLL) initialization routine failed." suggesting that the library is found, but can not be loaded.

This being Windows: the library it found is 64b. Is the Python interpreter used also 64b?

NiKeYiGuN commented 11 months ago

yes,both the library and the Python interpreter are 64b,This error disappeared after I update cppyy from 2.4.1 to 3.0.0.

wlav commented 11 months ago

On Windows, I'd expect problems with 2.4.1 for recent versions of MSVC as MSVC dropped support for Clang9 (on which 2.4 is based) about a year ago. However, I would expect that to manifest itself differently.

N-Coder commented 10 months ago

I had a similar issue when trying to use debug instead of release builds of my library on Windows, maybe that is the issue here too?

N-Coder commented 3 months ago

Hm, I'm now also getting this issue on GitHub Actions with an unmodified latest cppyy failing to load its backend: https://github.com/ogdf/ogdf-wheel/actions/runs/8535679388/job/23382829735

wlav commented 3 months ago

Did this just start with a recent cppyy upgrade or did it appear with a chance of compilers on the action build machine?

My best guess is a mismatch of C++ versions. The offending code is protected with a preprocessor define #if _HAS_CXX20: https://github.com/light-tech/MSCpp/blob/master/include/msvc/type_traits#L1273

Can you set the CLING_REBUILD_PCH envar to force rebuilding of the PCH? (The standard chosen isn't part of the PCH name as in principle, it's fixed at installation time, so if there's somehow a standards change, it won't rebuild the PCH automatically.)

N-Coder commented 3 months ago

This issue already appeared 5 months ago (unfortunately the logs are already gone, but I remember they looked pretty similar to what they look like on the more recent run). The CI isn't caching anything and installs freshly from a clean state, so there should also be no stale info after a standards change. Setting the env var unfortunately didn't help.

wlav commented 3 months ago

Is it possible to downgrade to C++17 by setting the envar STDCXX=17 at installation time? I checked and release 3.1.x is the only release where C++20 is enabled by default on Windows. Prior releases stick to C++17 or older.

N-Coder commented 3 months ago

Still doesn't work, although the errors now look very different. We now have "failed to materialize symbols", both for things in the stdlib and within my library. Previously we had some parse error (MSVC\14.39.33519\include\type_traits:1394:5: error: expected a type) together with the dll not loading ([WinError 1114] A dynamic link library (DLL) initialization routine failed). Downgrading to cppyy 3.0 also doesn't help. Regarding the parse error, I recently had something remotely similar because I mixed up the order of some windows headers (but probably unrelated to C++ 20).

wlav commented 3 months ago

It's very concerning that the change of C++ standard used for Cling would make such a difference. :(

Interesting though that this is the first time that the "failed to materialize symbols" error occurs on another platform than some versions of Linux. There, the issue had to do with initializers in headers that Clang has trouble with, but I'd expect less, not more, of those when lowering the standard version.

WINAPI not being defined sounds familiar, but I can't find it.

As for the order, I'm wondering whether perhaps Windows.h should be added to the PCH (it's not, currently, included explicitly, but also not implicitly AFAIK).

N-Coder commented 3 months ago

As already promised here, I set up a GitHub Actions workflow for testing cppyy on different platforms at N-Coder/cppyy-ci. Different env vars can be injected and versions of all the different cppyy packages can be selected (or the code from the github master branches can be used, which currently is the default). A manual trigger from the CLI looks like the following, but this can also be done through the web interface:

gh workflow run test.yml --field 'env=STDCXX=17\nCLING_REBUILD_PCH=1' --field 'ver-cppyy=3.1.2' --field 'ver-CPyCppyy=>0' --field 'ver-cppyy-backend=>0' --field 'ver-cppyy-cling=>0'

The >0 is just to specify some non-empty pip version specifier so that the nightly version isn't taken by default.

Here, I get similar problems as before that again differ depending on whether I set STDCXX=17 or not. Unfortunately, I didn't find a way of injecting a Windows.h import at the right place. So, feel free to play around with this if you have time. You can also simply copy it for the official cppyy repo if that helps.

N-Coder commented 3 months ago

I now also get a warning when importing cppyy and later on failures to materialize symbols + segfaults on my Windows desktop:

Python 3.10.8 (tags/v3.10.8:aaaf517, Oct 11 2022, 16:50:30) [MSC v.1933 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import cppyy
In file included from input_line_3:38:
In file included from C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\cassert:9:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\assert.h:12:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt.h:260:12: error: redefinition of '_CrtEnableIf<true, _Ty>'
    struct _CrtEnableIf<true, _Ty>
           ^~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt.h:205:12: note: previous definition is here
    struct _CrtEnableIf<true, _Ty>
           ^
In file included from input_line_3:38:
In file included from C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\cassert:9:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\assert.h:12:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt.h:610:16: error: redefinition of '__crt_locale_data_public'
typedef struct __crt_locale_data_public
               ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt.h:596:16: note: previous definition is here
typedef struct __crt_locale_data_public
               ^
In file included from input_line_3:38:
In file included from C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\cassert:9:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\assert.h:12:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt.h:617:16: error: redefinition of '__crt_locale_pointers'
typedef struct __crt_locale_pointers
               ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt.h:603:16: note: previous definition is here
typedef struct __crt_locale_pointers
               ^
In file included from input_line_3:38:
In file included from C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\cassert:9:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\assert.h:12:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt.h:625:16: error: redefinition of '_Mbstatet'
typedef struct _Mbstatet
               ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt.h:611:16: note: previous definition is here
typedef struct _Mbstatet
               ^
>>> cppyy.cppexec('std::cout << _MSC_VER << std::endl;')
1937
True
>>> from ogdf_python import *
[runStaticInitializersOnce]: Failed to materialize symbols: { (main, { ?s_ogdfInitializer@ogdf@@3VInitialization@1@A, .weak.??__Fs_ogdfInitializer@ogdf@@YAXXZ.default.__orc_init_func.cling-module-39, $.cling-module-39.__inits.0, __orc_init_func.cling-module-39, .weak.??__Es_ogdfInitializer@ogdf@@YAXXZcling_module_39_.default.__orc_init_func.cling-module-39, ??__Es_ogdfInitializer@ogdf@@YAXXZcling_module_39_, _GLOBAL__sub_I_cling_module_39, .weak._GLOBAL__sub_I_cling_module_39.default.__orc_init_func.cling-module-39, .weak.?s_ogdfInitializer@ogdf@@3VInitialization@1@A.default.__orc_init_func.cling-module-39, ??__Fs_ogdfInitializer@ogdf@@YAXXZ }) }
[runStaticInitializersOnce]: Failed to materialize symbols: { (main, { __orc_init_func.cling-module-39 }) }
In file included from input_line_35:1:
In file included from c:\users\niko\appdata\roaming\python\python310\site-packages\../Include\CPyCppyy/API.h:26:
In file included from C:\Program Files\Python310\Include\Python.h:8:
In file included from C:\Program Files\Python310\Include/pyconfig.h:59:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\io.h:12:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt_io.h:11:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt_share.h:11:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt.h:260:12: error: redefinition of '_CrtEnableIf<true, _Ty>'
    struct _CrtEnableIf<true, _Ty>
           ^~~~~~~~~~~~~~~~~~~~~~~
C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt.h:205:12: note: previous definition is here
    struct _CrtEnableIf<true, _Ty>
           ^
In file included from input_line_35:1:
In file included from c:\users\niko\appdata\roaming\python\python310\site-packages\../Include\CPyCppyy/API.h:26:
In file included from C:\Program Files\Python310\Include\Python.h:8:
In file included from C:\Program Files\Python310\Include/pyconfig.h:59:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\io.h:12:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt_io.h:11:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt_share.h:11:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt.h:610:16: error: redefinition of '__crt_locale_data_public'
typedef struct __crt_locale_data_public
               ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt.h:596:16: note: previous definition is here
typedef struct __crt_locale_data_public
               ^
In file included from input_line_35:1:
In file included from c:\users\niko\appdata\roaming\python\python310\site-packages\../Include\CPyCppyy/API.h:26:
In file included from C:\Program Files\Python310\Include\Python.h:8:
In file included from C:\Program Files\Python310\Include/pyconfig.h:59:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\io.h:12:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt_io.h:11:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt_share.h:11:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt.h:617:16: error: redefinition of '__crt_locale_pointers'
typedef struct __crt_locale_pointers
               ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt.h:603:16: note: previous definition is here
typedef struct __crt_locale_pointers
               ^
In file included from input_line_35:1:
In file included from c:\users\niko\appdata\roaming\python\python310\site-packages\../Include\CPyCppyy/API.h:26:
In file included from C:\Program Files\Python310\Include\Python.h:8:
In file included from C:\Program Files\Python310\Include/pyconfig.h:59:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\io.h:12:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt_io.h:11:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt_share.h:11:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt.h:625:16: error: redefinition of '_Mbstatet'
typedef struct _Mbstatet
               ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt.h:611:16: note: previous definition is here
typedef struct _Mbstatet
               ^
In file included from input_line_35:1:
In file included from c:\users\niko\appdata\roaming\python\python310\site-packages\../Include\CPyCppyy/API.h:26:
In file included from C:\Program Files\Python310\Include\Python.h:8:
In file included from C:\Program Files\Python310\Include/pyconfig.h:59:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\io.h:12:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt_io.h:12:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt_wio.h:35:8: error: redefinition of '_wfinddata32_t'
struct _wfinddata32_t
       ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wio.h:35:8: note: previous definition is here
struct _wfinddata32_t
       ^
In file included from input_line_35:1:
In file included from c:\users\niko\appdata\roaming\python\python310\site-packages\../Include\CPyCppyy/API.h:26:
In file included from C:\Program Files\Python310\Include\Python.h:8:
In file included from C:\Program Files\Python310\Include/pyconfig.h:59:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\io.h:12:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt_io.h:12:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt_wio.h:45:8: error: redefinition of '_wfinddata32i64_t'
struct _wfinddata32i64_t
       ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wio.h:45:8: note: previous definition is here
struct _wfinddata32i64_t
       ^
In file included from input_line_35:1:
In file included from c:\users\niko\appdata\roaming\python\python310\site-packages\../Include\CPyCppyy/API.h:26:
In file included from C:\Program Files\Python310\Include\Python.h:8:
In file included from C:\Program Files\Python310\Include/pyconfig.h:59:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\io.h:12:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt_io.h:12:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt_wio.h:55:8: error: redefinition of '_wfinddata64i32_t'
struct _wfinddata64i32_t
       ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wio.h:55:8: note: previous definition is here
struct _wfinddata64i32_t
       ^
In file included from input_line_35:1:
In file included from c:\users\niko\appdata\roaming\python\python310\site-packages\../Include\CPyCppyy/API.h:26:
In file included from C:\Program Files\Python310\Include\Python.h:8:
In file included from C:\Program Files\Python310\Include/pyconfig.h:59:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\io.h:12:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt_io.h:12:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt_wio.h:65:8: error: redefinition of '_wfinddata64_t'
struct _wfinddata64_t
       ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wio.h:65:8: note: previous definition is here
struct _wfinddata64_t
       ^
In file included from input_line_35:1:
In file included from c:\users\niko\appdata\roaming\python\python310\site-packages\../Include\CPyCppyy/API.h:26:
In file included from C:\Program Files\Python310\Include\Python.h:8:
In file included from C:\Program Files\Python310\Include/pyconfig.h:59:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\io.h:12:
In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt_io.h:12:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt_wio.h:148:14: error: redefinition of '_wmktemp_s'
    errno_t, _wmktemp_s,
             ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\corecrt_wio.h:148:14: note: previous definition is here
    errno_t, _wmktemp_s,
             ^
In file included from input_line_35:1:
In file included from c:\users\niko\appdata\roaming\python\python310\site-packages\../Include\CPyCppyy/API.h:26:
In file included from C:\Program Files\Python310\Include\Python.h:50:
In file included from C:\Program Files\Python310\Include/pyport.h:243:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\sys/stat.h:24:8: error: redefinition of '_stat32'
struct _stat32
       ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\sys\stat.h:24:8: note: previous definition is here
struct _stat32
       ^
In file included from input_line_35:1:
In file included from c:\users\niko\appdata\roaming\python\python310\site-packages\../Include\CPyCppyy/API.h:26:
In file included from C:\Program Files\Python310\Include\Python.h:50:
In file included from C:\Program Files\Python310\Include/pyport.h:243:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\sys/stat.h:39:8: error: redefinition of '_stat32i64'
struct _stat32i64
       ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\sys\stat.h:39:8: note: previous definition is here
struct _stat32i64
       ^
In file included from input_line_35:1:
In file included from c:\users\niko\appdata\roaming\python\python310\site-packages\../Include\CPyCppyy/API.h:26:
In file included from C:\Program Files\Python310\Include\Python.h:50:
In file included from C:\Program Files\Python310\Include/pyport.h:243:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\sys/stat.h:54:8: error: redefinition of '_stat64i32'
struct _stat64i32
       ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\sys\stat.h:54:8: note: previous definition is here
struct _stat64i32
       ^
In file included from input_line_35:1:
In file included from c:\users\niko\appdata\roaming\python\python310\site-packages\../Include\CPyCppyy/API.h:26:
In file included from C:\Program Files\Python310\Include\Python.h:50:
In file included from C:\Program Files\Python310\Include/pyport.h:243:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\sys/stat.h:69:8: error: redefinition of '_stat64'
struct _stat64
       ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\sys\stat.h:69:8: note: previous definition is here
struct _stat64
       ^
In file included from input_line_35:1:
In file included from c:\users\niko\appdata\roaming\python\python310\site-packages\../Include\CPyCppyy/API.h:26:
In file included from C:\Program Files\Python310\Include\Python.h:50:
In file included from C:\Program Files\Python310\Include/pyport.h:243:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\sys/stat.h:87:12: error: redefinition of 'stat'
    struct stat
           ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\sys\stat.h:87:12: note: previous definition is here
    struct stat
           ^
In file included from input_line_35:1:
In file included from c:\users\niko\appdata\roaming\python\python310\site-packages\../Include\CPyCppyy/API.h:26:
In file included from C:\Program Files\Python310\Include\Python.h:50:
In file included from C:\Program Files\Python310\Include/pyport.h:243:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\sys/stat.h:233:39: error: redefinition of 'fstat'
        static __inline int __CRTDECL fstat(int const _FileHandle, struct stat* const _Stat)
                                      ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\sys\stat.h:233:39: note: previous definition is here
        static __inline int __CRTDECL fstat(int const _FileHandle, struct stat* const _Stat)
                                      ^
In file included from input_line_35:1:
In file included from c:\users\niko\appdata\roaming\python\python310\site-packages\../Include\CPyCppyy/API.h:26:
In file included from C:\Program Files\Python310\Include\Python.h:50:
In file included from C:\Program Files\Python310\Include/pyport.h:243:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\sys/stat.h:238:39: error: redefinition of 'stat'
        static __inline int __CRTDECL stat(char const* const _FileName, struct stat* const _Stat)
                                      ^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt\sys\stat.h:238:39: note: previous definition is here
        static __inline int __CRTDECL stat(char const* const _FileName, struct stat* const _Stat)
                                      ^
 *** Break *** segmentation violation

==========================================
=============== STACKTRACE ===============
==========================================

================ Thread 0 ================
  libcppyy_backend!??
  libCoreLegacy!CppyyLegacy::TWinNTSystem::DispatchSignals()
  ucrtbase!seh_filter_exe()
  python!??
  VCRUNTIME140!_C_specific_handler()
  ntdll!_chkstk()
  ntdll!RtlRaiseException()
  ntdll!KiUserExceptionDispatcher()
  libCling!cling::runtime::internal::setValueWithAlloc()
  libCling!cling::runtime::internal::setValueWithAlloc()
  libCling!cling::Value::print()
  libCling!cling::Value::print()
  libCling!cling::Value::print()
  libCling!cling::Value::print()
  libCling!cling::Value::print()
  libCling!cling::Value::print()
  libCling!cling::runtime::internal::EvaluateDynamicExpression()
  libCling!cling::Value::print()
  libCling!cling::Value::print()
  libCling!cling::runtime::internal::EvaluateDynamicExpression()
  libCling!CppyyLegacy::TCling::LoadText()
  libCling!CppyyLegacy::TCling::Declare()
  libcppyy.cp310-win_amd64!TPyArg::operator _object * __ptr64()
  libcppyy.cp310-win_amd64!CPyCppyy::DispatchPtr::CppOwns()
  libcppyy.cp310-win_amd64!CPyCppyy::PyException::operator=()
  python310!PyType_GenericNew()
  python310!PyObject_MakeTpCall()
  python310!PyObject_FastCallDictTstate()
  python310!PyObject_VectorcallDict()
  python310!PyThreadState_Get()
  python310!PyArg_CheckPositional()
  python310!PyEval_EvalFrameDefault()
  python310!PyMapping_Check()
  python310!PyEval_EvalCode()
  python310!PyArena_Free()
  python310!PyArena_Free()
  python310!Py_HashPointer()
  python310!PyVectorcall_Call()
  python310!PyObject_Call()
  python310!PyObject_Call()
  python310!PyEval_EvalFrameDefault()
  python310!PyFunction_Vectorcall()
  python310!PyEval_EvalFrameDefault()
  python310!PyEval_EvalFrameDefault()
  python310!PyFunction_Vectorcall()
  python310!PyEval_EvalFrameDefault()
  python310!PyFunction_Vectorcall()
  python310!PyEval_EvalFrameDefault()
  python310!PyFunction_Vectorcall()
  python310!PyObject_CallMethodIdObjArgs()
  python310!PyObject_CallMethodIdObjArgs()
  python310!PyObject_CallMethodIdObjArgs()
  python310!PyObject_CallFunctionObjArgs()
  python310!PyImport_ImportModuleLevelObject()
  python310!PyList_Size()
  python310!PyEval_EvalFrameDefault()
  python310!PyMapping_Check()
  python310!PyEval_EvalCode()
  python310!PyArena_Free()
  python310!PyArena_Free()
  python310!Py_HashPointer()
  python310!PyVectorcall_Call()
  python310!PyObject_Call()
  python310!PyObject_Call()
  python310!PyEval_EvalFrameDefault()
  python310!PyFunction_Vectorcall()
  python310!PyEval_EvalFrameDefault()
  python310!PyEval_EvalFrameDefault()
  python310!PyFunction_Vectorcall()
  python310!PyEval_EvalFrameDefault()
  python310!PyFunction_Vectorcall()
  python310!PyEval_EvalFrameDefault()
  python310!PyFunction_Vectorcall()
  python310!PyObject_CallMethodIdObjArgs()
  python310!PyObject_CallMethodIdObjArgs()
  python310!PyObject_CallMethodIdObjArgs()
  python310!PyObject_CallFunctionObjArgs()
  python310!PyImport_ImportModuleLevelObject()
  python310!PyList_Size()
  python310!PyEval_EvalFrameDefault()
  python310!PyMapping_Check()
  python310!PyEval_EvalCode()
  python310!PyArena_Free()
  python310!PyArena_Free()
  python310!Py_HashPointer()
  python310!PyVectorcall_Call()
  python310!PyObject_Call()
  python310!PyObject_Call()
  python310!PyEval_EvalFrameDefault()
  python310!PyFunction_Vectorcall()
  python310!PyEval_EvalFrameDefault()
  python310!PyEval_EvalFrameDefault()
  python310!PyFunction_Vectorcall()
  python310!PyEval_EvalFrameDefault()
  python310!PyFunction_Vectorcall()
  python310!PyEval_EvalFrameDefault()
  python310!PyFunction_Vectorcall()
  python310!PyObject_CallMethodIdObjArgs()
  python310!PyObject_CallMethodIdObjArgs()
  python310!PyObject_CallMethodIdObjArgs()
  python310!PyObject_CallFunctionObjArgs()
  python310!PyImport_ImportModuleLevelObject()
  python310!PyList_Size()
  python310!PyEval_EvalFrameDefault()
  python310!PyMapping_Check()
  python310!PyEval_EvalCode()
  python310!PyArena_Free()
  python310!PyArena_Free()
  python310!Py_HashPointer()
  python310!PyVectorcall_Call()
  python310!PyObject_Call()
  python310!PyObject_Call()
  python310!PyEval_EvalFrameDefault()
  python310!PyFunction_Vectorcall()
  python310!PyEval_EvalFrameDefault()
  python310!PyEval_EvalFrameDefault()
  python310!PyFunction_Vectorcall()
  python310!PyEval_EvalFrameDefault()
  python310!PyFunction_Vectorcall()
  python310!PyEval_EvalFrameDefault()
  python310!PyFunction_Vectorcall()
  python310!PyObject_CallMethodIdObjArgs()
  python310!PyObject_CallMethodIdObjArgs()
  python310!PyObject_CallMethodIdObjArgs()
  python310!PyObject_CallFunctionObjArgs()
  python310!PyImport_ImportModuleLevelObject()
  python310!PyList_Size()
  python310!PyEval_EvalFrameDefault()
  python310!PyMapping_Check()
  python310!PyEval_EvalCode()
  python310!PyArena_Free()
  python310!PyArena_Free()
  python310!PyRun_InteractiveOneObject()
  python310!PyRun_InteractiveLoopObject()
  python310!Py_gitversion()
  python310!PyRun_AnyFileExFlags()
  python310!Py_gitversion()
  python310!Py_RunMain()
  python310!Py_RunMain()
  python310!Py_Main()
  python!??
  KERNEL32!BaseThreadInitThunk()
  ntdll!RtlUserThreadStart()

================ Thread 1 ================
  ntdll!ZwWaitForWorkViaWorkerFactory()
  ntdll!TpReleaseCleanupGroupMembers()
  KERNEL32!BaseThreadInitThunk()
  ntdll!RtlUserThreadStart()

================ Thread 2 ================
  ntdll!ZwWaitForWorkViaWorkerFactory()
  ntdll!TpReleaseCleanupGroupMembers()
  KERNEL32!BaseThreadInitThunk()
  ntdll!RtlUserThreadStart()

================ Thread 3 ================
  ntdll!ZwWaitForWorkViaWorkerFactory()
  ntdll!TpReleaseCleanupGroupMembers()
  KERNEL32!BaseThreadInitThunk()
  ntdll!RtlUserThreadStart()

================ Thread 4 ================
  ntdll!NtWaitForMultipleObjects()
  KERNELBASE!WaitForMultipleObjectsEx()
  KERNELBASE!WaitForMultipleObjects()
  libopenblas64__v0.3.23-293-gc2f!openblas_get_parallel_64_()

================ Thread 5 ================
  ntdll!NtWaitForMultipleObjects()
  KERNELBASE!WaitForMultipleObjectsEx()
  KERNELBASE!WaitForMultipleObjects()
  libopenblas64__v0.3.23-293-gc2f!openblas_get_parallel_64_()

================ Thread 6 ================
  ntdll!NtWaitForMultipleObjects()
  KERNELBASE!WaitForMultipleObjectsEx()
  KERNELBASE!WaitForMultipleObjects()
  libopenblas64__v0.3.23-293-gc2f!openblas_get_parallel_64_()

================ Thread 7 ================
  ntdll!NtWaitForMultipleObjects()
  KERNELBASE!WaitForMultipleObjectsEx()
  KERNELBASE!WaitForMultipleObjects()
  libopenblas64__v0.3.23-293-gc2f!openblas_get_parallel_64_()

================ Thread 8 ================
  ntdll!NtWaitForMultipleObjects()
  KERNELBASE!WaitForMultipleObjectsEx()
  KERNELBASE!WaitForMultipleObjects()
  libopenblas64__v0.3.23-293-gc2f!openblas_get_parallel_64_()

================ Thread 9 ================
  ntdll!NtWaitForMultipleObjects()
  KERNELBASE!WaitForMultipleObjectsEx()
  KERNELBASE!WaitForMultipleObjects()
  libopenblas64__v0.3.23-293-gc2f!openblas_get_parallel_64_()

================ Thread 10 ================
  ntdll!NtWaitForMultipleObjects()
  KERNELBASE!WaitForMultipleObjectsEx()
  KERNELBASE!WaitForMultipleObjects()
  libopenblas64__v0.3.23-293-gc2f!openblas_get_parallel_64_()

================ Thread 11 ================
  ntdll!NtWaitForMultipleObjects()
  KERNELBASE!WaitForMultipleObjectsEx()
  KERNELBASE!WaitForMultipleObjects()
  libopenblas64__v0.3.23-293-gc2f!openblas_get_parallel_64_()

================ Thread 12 ================
  ntdll!NtWaitForMultipleObjects()
  KERNELBASE!WaitForMultipleObjectsEx()
  KERNELBASE!WaitForMultipleObjects()
  libopenblas64__v0.3.23-293-gc2f!openblas_get_parallel_64_()

================ Thread 13 ================
  ntdll!NtWaitForMultipleObjects()
  KERNELBASE!WaitForMultipleObjectsEx()
  KERNELBASE!WaitForMultipleObjects()
  libopenblas64__v0.3.23-293-gc2f!openblas_get_parallel_64_()

================ Thread 14 ================
  ntdll!NtWaitForMultipleObjects()
  KERNELBASE!WaitForMultipleObjectsEx()
  KERNELBASE!WaitForMultipleObjects()
  libopenblas64__v0.3.23-293-gc2f!openblas_get_parallel_64_()

================ Thread 15 ================
  ntdll!ZwWaitForSingleObject()
  KERNELBASE!WaitForSingleObjectEx()
  tcl86t!TclpGetDate()
  KERNEL32!BaseThreadInitThunk()
  ntdll!RtlUserThreadStart()

================ Thread 16 ================
  ntdll!ZwWaitForSingleObject()
  KERNELBASE!WaitForSingleObjectEx()
  tcl86t!TclWinFlushDirtyChannels()
  KERNEL32!BaseThreadInitThunk()
  ntdll!RtlUserThreadStart()

================ Thread 17 ================
  ntdll!ZwWaitForSingleObject()
  KERNELBASE!WaitForSingleObjectEx()
  tcl86t!TclWinFlushDirtyChannels()
  KERNEL32!BaseThreadInitThunk()
  ntdll!RtlUserThreadStart()

================ Thread 18 ================
  ntdll!ZwWaitForSingleObject()
  KERNELBASE!WaitForSingleObjectEx()
  tcl86t!TclWinFlushDirtyChannels()
  KERNEL32!BaseThreadInitThunk()
  ntdll!RtlUserThreadStart()

==========================================
============= END STACKTRACE =============
==========================================

 *** Break *** segmentation violation

==========================================
=============== STACKTRACE ===============
==========================================

================ Thread 0 ================
  libcppyy_backend!??
  libCoreLegacy!CppyyLegacy::TWinNTSystem::DispatchSignals()
  ucrtbase!seh_filter_exe()
  python!??
  VCRUNTIME140!_C_specific_handler()
  ntdll!_chkstk()
  ntdll!RtlRaiseException()
  ntdll!KiUserExceptionDispatcher()
  libCling!cling::runtime::internal::setValueWithAlloc()
  libCling!cling::runtime::internal::setValueWithAlloc()
  libCling!cling::Value::print()
  libCling!cling::Value::print()
  libCling!cling::Value::print()
  libCling!cling::Value::print()
  libCling!cling::Value::print()
  libCling!cling::Value::print()
  libCling!cling::runtime::internal::EvaluateDynamicExpression()
  libCling!cling::Value::print()
  libCling!cling::Value::print()
  libCling!cling::runtime::internal::EvaluateDynamicExpression()
  libCling!CppyyLegacy::TCling::LoadText()
  libCling!CppyyLegacy::TCling::Declare()
  libcppyy.cp310-win_amd64!TPyArg::operator _object * __ptr64()
  libcppyy.cp310-win_amd64!CPyCppyy::DispatchPtr::CppOwns()
  libcppyy.cp310-win_amd64!CPyCppyy::PyException::operator=()
  python310!PyType_GenericNew()
  python310!PyObject_MakeTpCall()
  python310!PyObject_FastCallDictTstate()
  python310!PyObject_VectorcallDict()
  python310!PyThreadState_Get()
  python310!PyArg_CheckPositional()
  python310!PyEval_EvalFrameDefault()
  python310!PyMapping_Check()
  python310!PyEval_EvalCode()
  python310!PyArena_Free()
  python310!PyArena_Free()
  python310!Py_HashPointer()
  python310!PyVectorcall_Call()
  python310!PyObject_Call()
  python310!PyObject_Call()
  python310!PyEval_EvalFrameDefault()
  python310!PyFunction_Vectorcall()
  python310!PyEval_EvalFrameDefault()
  python310!PyEval_EvalFrameDefault()
  python310!PyFunction_Vectorcall()
  python310!PyEval_EvalFrameDefault()
  python310!PyFunction_Vectorcall()
  python310!PyEval_EvalFrameDefault()
  python310!PyFunction_Vectorcall()
  python310!PyObject_CallMethodIdObjArgs()
  python310!PyObject_CallMethodIdObjArgs()
  python310!PyObject_CallMethodIdObjArgs()
  python310!PyObject_CallFunctionObjArgs()
  python310!PyImport_ImportModuleLevelObject()
  python310!PyList_Size()
  python310!PyEval_EvalFrameDefault()
  python310!PyMapping_Check()
  python310!PyEval_EvalCode()
  python310!PyArena_Free()
  python310!PyArena_Free()
  python310!Py_HashPointer()
  python310!PyVectorcall_Call()
  python310!PyObject_Call()
  python310!PyObject_Call()
  python310!PyEval_EvalFrameDefault()
  python310!PyFunction_Vectorcall()
  python310!PyEval_EvalFrameDefault()
  python310!PyEval_EvalFrameDefault()
  python310!PyFunction_Vectorcall()
  python310!PyEval_EvalFrameDefault()
  python310!PyFunction_Vectorcall()
  python310!PyEval_EvalFrameDefault()
  python310!PyFunction_Vectorcall()
  python310!PyObject_CallMethodIdObjArgs()
  python310!PyObject_CallMethodIdObjArgs()
  python310!PyObject_CallMethodIdObjArgs()
  python310!PyObject_CallFunctionObjArgs()
  python310!PyImport_ImportModuleLevelObject()
  python310!PyList_Size()
  python310!PyEval_EvalFrameDefault()
  python310!PyMapping_Check()
  python310!PyEval_EvalCode()
  python310!PyArena_Free()
  python310!PyArena_Free()
  python310!Py_HashPointer()
  python310!PyVectorcall_Call()
  python310!PyObject_Call()
  python310!PyObject_Call()
  python310!PyEval_EvalFrameDefault()
  python310!PyFunction_Vectorcall()
  python310!PyEval_EvalFrameDefault()
  python310!PyEval_EvalFrameDefault()
  python310!PyFunction_Vectorcall()
  python310!PyEval_EvalFrameDefault()
  python310!PyFunction_Vectorcall()
  python310!PyEval_EvalFrameDefault()
  python310!PyFunction_Vectorcall()
  python310!PyObject_CallMethodIdObjArgs()
  python310!PyObject_CallMethodIdObjArgs()
  python310!PyObject_CallMethodIdObjArgs()
  python310!PyObject_CallFunctionObjArgs()
  python310!PyImport_ImportModuleLevelObject()
  python310!PyList_Size()
  python310!PyEval_EvalFrameDefault()
  python310!PyMapping_Check()
  python310!PyEval_EvalCode()
  python310!PyArena_Free()
  python310!PyArena_Free()
  python310!Py_HashPointer()
  python310!PyVectorcall_Call()
  python310!PyObject_Call()
  python310!PyObject_Call()
  python310!PyEval_EvalFrameDefault()
  python310!PyFunction_Vectorcall()
  python310!PyEval_EvalFrameDefault()
  python310!PyEval_EvalFrameDefault()
  python310!PyFunction_Vectorcall()
  python310!PyEval_EvalFrameDefault()
  python310!PyFunction_Vectorcall()
  python310!PyEval_EvalFrameDefault()
  python310!PyFunction_Vectorcall()
  python310!PyObject_CallMethodIdObjArgs()
  python310!PyObject_CallMethodIdObjArgs()
  python310!PyObject_CallMethodIdObjArgs()
  python310!PyObject_CallFunctionObjArgs()
  python310!PyImport_ImportModuleLevelObject()
  python310!PyList_Size()
  python310!PyEval_EvalFrameDefault()
  python310!PyMapping_Check()
  python310!PyEval_EvalCode()
  python310!PyArena_Free()
  python310!PyArena_Free()
  python310!PyRun_InteractiveOneObject()
  python310!PyRun_InteractiveLoopObject()
  python310!Py_gitversion()
  python310!PyRun_AnyFileExFlags()
  python310!Py_gitversion()
  python310!Py_RunMain()
  python310!Py_RunMain()
  python310!Py_Main()
  python!??
  KERNEL32!BaseThreadInitThunk()
  ntdll!RtlUserThreadStart()

================ Thread 1 ================
  ntdll!ZwWaitForWorkViaWorkerFactory()
  ntdll!TpReleaseCleanupGroupMembers()
  KERNEL32!BaseThreadInitThunk()
  ntdll!RtlUserThreadStart()

================ Thread 2 ================
  ntdll!ZwWaitForWorkViaWorkerFactory()
  ntdll!TpReleaseCleanupGroupMembers()
  KERNEL32!BaseThreadInitThunk()
  ntdll!RtlUserThreadStart()

================ Thread 3 ================
  ntdll!ZwWaitForWorkViaWorkerFactory()
  ntdll!TpReleaseCleanupGroupMembers()
  KERNEL32!BaseThreadInitThunk()
  ntdll!RtlUserThreadStart()

================ Thread 4 ================
  ntdll!NtWaitForMultipleObjects()
  KERNELBASE!WaitForMultipleObjectsEx()
  KERNELBASE!WaitForMultipleObjects()
  libopenblas64__v0.3.23-293-gc2f!openblas_get_parallel_64_()

================ Thread 5 ================
  ntdll!NtWaitForMultipleObjects()
  KERNELBASE!WaitForMultipleObjectsEx()
  KERNELBASE!WaitForMultipleObjects()
  libopenblas64__v0.3.23-293-gc2f!openblas_get_parallel_64_()

================ Thread 6 ================
  ntdll!NtWaitForMultipleObjects()
  KERNELBASE!WaitForMultipleObjectsEx()
  KERNELBASE!WaitForMultipleObjects()
  libopenblas64__v0.3.23-293-gc2f!openblas_get_parallel_64_()

================ Thread 7 ================
  ntdll!NtWaitForMultipleObjects()
  KERNELBASE!WaitForMultipleObjectsEx()
  KERNELBASE!WaitForMultipleObjects()
  libopenblas64__v0.3.23-293-gc2f!openblas_get_parallel_64_()

================ Thread 8 ================
  ntdll!NtWaitForMultipleObjects()
  KERNELBASE!WaitForMultipleObjectsEx()
  KERNELBASE!WaitForMultipleObjects()
  libopenblas64__v0.3.23-293-gc2f!openblas_get_parallel_64_()

================ Thread 9 ================
  ntdll!NtWaitForMultipleObjects()
  KERNELBASE!WaitForMultipleObjectsEx()
  KERNELBASE!WaitForMultipleObjects()
  libopenblas64__v0.3.23-293-gc2f!openblas_get_parallel_64_()

================ Thread 10 ================
  ntdll!NtWaitForMultipleObjects()
  KERNELBASE!WaitForMultipleObjectsEx()
  KERNELBASE!WaitForMultipleObjects()
  libopenblas64__v0.3.23-293-gc2f!openblas_get_parallel_64_()

================ Thread 11 ================
  ntdll!NtWaitForMultipleObjects()
  KERNELBASE!WaitForMultipleObjectsEx()
  KERNELBASE!WaitForMultipleObjects()
  libopenblas64__v0.3.23-293-gc2f!openblas_get_parallel_64_()

================ Thread 12 ================
  ntdll!NtWaitForMultipleObjects()
  KERNELBASE!WaitForMultipleObjectsEx()
  KERNELBASE!WaitForMultipleObjects()
  libopenblas64__v0.3.23-293-gc2f!openblas_get_parallel_64_()

================ Thread 13 ================
  ntdll!NtWaitForMultipleObjects()
  KERNELBASE!WaitForMultipleObjectsEx()
  KERNELBASE!WaitForMultipleObjects()
  libopenblas64__v0.3.23-293-gc2f!openblas_get_parallel_64_()

================ Thread 14 ================
  ntdll!NtWaitForMultipleObjects()
  KERNELBASE!WaitForMultipleObjectsEx()
  KERNELBASE!WaitForMultipleObjects()
  libopenblas64__v0.3.23-293-gc2f!openblas_get_parallel_64_()

================ Thread 15 ================
  ntdll!ZwWaitForSingleObject()
  KERNELBASE!WaitForSingleObjectEx()
  tcl86t!TclpGetDate()
  KERNEL32!BaseThreadInitThunk()
  ntdll!RtlUserThreadStart()

================ Thread 16 ================
  ntdll!ZwWaitForSingleObject()
  KERNELBASE!WaitForSingleObjectEx()
  tcl86t!TclWinFlushDirtyChannels()
  KERNEL32!BaseThreadInitThunk()
  ntdll!RtlUserThreadStart()

================ Thread 17 ================
  ntdll!ZwWaitForSingleObject()
  KERNELBASE!WaitForSingleObjectEx()
  tcl86t!TclWinFlushDirtyChannels()
  KERNEL32!BaseThreadInitThunk()
  ntdll!RtlUserThreadStart()

================ Thread 18 ================
  ntdll!ZwWaitForSingleObject()
  KERNELBASE!WaitForSingleObjectEx()
  tcl86t!TclWinFlushDirtyChannels()
  KERNEL32!BaseThreadInitThunk()
  ntdll!RtlUserThreadStart()

==========================================
============= END STACKTRACE =============
==========================================