origin icon indicating copy to clipboard operation
origin copied to clipboard

segmentation fault on apple m1

Open hjchanna opened this issue 3 years ago • 14 comments

The oc command fails with the error message segmentation fault on ARM based Apple M1 Macbook Pro.

Version

openshift-origin-client-tools-v3.11.0-0cbc58b-mac

Steps To Reproduce
  1. Just run the oc command
Current Result

[1] 13704 segmentation fault ./oc

hjchanna avatar Apr 27 '21 08:04 hjchanna

any update with this?

fathiraz avatar Jul 17 '21 10:07 fathiraz

Any alternatives?

JCzz avatar Sep 27 '21 10:09 JCzz

+1

androidfanatic avatar Oct 30 '21 13:10 androidfanatic

Try installing it via homebrew. I think the issue is in the 3.x version of oc and not M1 in particular. Homebrew ships with version 4.x. I am using it with an OpenShift cluster at version 3.11 and the client works fine at version 4.x.

shahzebs avatar Nov 05 '21 11:11 shahzebs

+100

thygesen avatar Nov 12 '21 13:11 thygesen

+1

sudharsanpunniyakotti avatar Dec 06 '21 20:12 sudharsanpunniyakotti

+1

aldokkani avatar Jan 04 '22 15:01 aldokkani

Try installing it via homebrew. I think the issue is in the 3.x version of oc and not M1 in particular. Homebrew ships with version 4.x. I am using it with an OpenShift cluster at version 3.11 and the client works fine at version 4.x.

still doesn't work, has your mac m1 been resolved?

xiaosTyy avatar Feb 27 '22 14:02 xiaosTyy

sadly, +1

JasonHao123 avatar Mar 25 '22 19:03 JasonHao123

+1

janimikael avatar Apr 07 '22 11:04 janimikael

+1

ghost avatar Apr 08 '22 18:04 ghost

brew install openshift-cli

ghost avatar Apr 08 '22 18:04 ghost

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

openshift-bot avatar Jul 07 '22 19:07 openshift-bot

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten /remove-lifecycle stale

openshift-bot avatar Aug 06 '22 19:08 openshift-bot

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen. Mark the issue as fresh by commenting /remove-lifecycle rotten. Exclude this issue from closing again by commenting /lifecycle frozen.

/close

openshift-bot avatar Sep 06 '22 00:09 openshift-bot

@openshift-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen. Mark the issue as fresh by commenting /remove-lifecycle rotten. Exclude this issue from closing again by commenting /lifecycle frozen.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

openshift-ci[bot] avatar Sep 06 '22 00:09 openshift-ci[bot]

Adding an extra note for those searching for a solution. This is what worked for me.

  1. Running brew install openshift-cli
  2. Still got a segmentation fault with brew's oc
  3. Install Xcode
  4. No segmentation fault

I didn't dig into it too much, but my theory is that there's some dependent library which is present with Xcode which allows oc to run.

Short version: install Xcode, then brew install openshift-cli.

richdougherty avatar Nov 26 '23 19:11 richdougherty