Open guitargeek opened 2 months ago
Just adding for the record what we already discussed: it's the use of C++ standard regex
in Converters.cxx
and regex
symbols being exported. It's probably doable to reduce the symbols that libcppyy
exports (currently simply all, but what's needed is only the stuff provided in API.h
). Removing the use of regex
in Converters.cxx
would be unfortunate, but not the end of the world.
No idea why the use of a standard library feature would clash in this way, esp. since the use in libcppyy
is built locally, so is guaranteed to use the system-local libstdc++
.
Reproducer:
pip install cppyy xgboost numpy scikit-learn
Swapping the imports fixes the crash, and it also doesn't happen with xgboost before version 2.0.0.
Happens for me on Arch Linux with Python 3.11.8.
Note that it's not necessarily on cppyy to fix this, but I just wanted to document it somewhere.
Stack trace extract: