-
Notifications
You must be signed in to change notification settings - Fork 100
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
Fix segfault while loading xgboost binary models #209
Conversation
Backtrace:
|
@wphicks I've seen this issue before. Treelite and XGBoost both link with dmlc-core library, and they currently use incompatible versions. Treelite should use commit 5df8305fe699d3b503d10c60a231ab0223142407 of dmlc-core, to match the version used by XGBoost. |
Change this line to 5df8305fe699d3b503d10c60a231ab0223142407: treelite/cmake/ExternalLibs.cmake Line 6 in 5e9af4f
|
@wphicks Related issue: apache/tvm#4953. This was fixed by dmlc/xgboost#5590 by hiding all C++ symbols in |
The fix for the underlying problem will be addressed by dmlc/xgboost#6188. I'll update this PR tomorrow with a workaround that avoids using dmlc's |
Great! Here are the list of files that uses
They should all be replaced with the standard C++ library functions for file I/O. |
Closing this out for now, since we're shifting over to xgboost 1.2.1rc1 to handle this instead. Will open a new PR with this approach. |
Closes #210