Skip to content

xgb.train crashes on Apple Macbook Pro M4 #11399

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

Open
Sutty100 opened this issue Apr 9, 2025 · 2 comments
Open

xgb.train crashes on Apple Macbook Pro M4 #11399

Sutty100 opened this issue Apr 9, 2025 · 2 comments

Comments

@Sutty100
Copy link

Sutty100 commented Apr 9, 2025

When ever calling xgb.train(...) on a Macbook Pro with an M4 Arm chip Python/Java/R crash. The same python script runs fine on an Intel based Mac. The version of MacOS is 15.4

I have tested this with

  • Python 3.11, 3.12, 3.13
  • Java 21, 17
  • R 4.4.3

All result in a fatal crash with no useful logs e.g. Python reports:

libc++abi: terminating

Process finished with exit code 134 (interrupted by signal 6:SIGABRT)

and it is a similar picture for Java

I have tried Xgboost 3.0 and Xgboost 2.14 for Python I have both taken from pip and built from source following this guide. I have installed libomp through brew. All of the above results in the same outcome.

I have also for R followed this guide written for M3 based macs but it does not work for me.

This issue is occurring on a clean install of MacOS.

I'm stuck on exactly what to try next and/or if it is a fundamental issue with the latest mac chips that mean it can not run so any help would be greatly appreciated!

@trivialfis
Copy link
Member

Please share how you install XGBoost.

@trivialfis
Copy link
Member

There's no m4 instance on AWS we can test or debug yet: https://aws.amazon.com/ec2/instance-types/mac/ I can't be of assistance here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants