Skip to content
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

zsh: segmentation fault assume-role #54

Open
parimalyeole1 opened this issue Jan 6, 2021 · 14 comments
Open

zsh: segmentation fault assume-role #54

parimalyeole1 opened this issue Jan 6, 2021 · 14 comments

Comments

@parimalyeole1
Copy link

Steps

  1. $ brew install assume-role
    result 🍺 /usr/local/Cellar/assume-role/0.3.1: 3 files, 7.6MB, built in 2 seconds

  2. assume-role dev
    zsh: segmentation fault assume-role

@madsenwattiq
Copy link

Can I ask what platform you're on? One of my team just reported. the same thing, after Homebrew install on a new M1 ARM-chip Mac. The default Homebrew build is not going to work here since it's for x86, so likely this needs a native compile on an M1 Mac.

@MurreyCode
Copy link

MurreyCode commented Feb 15, 2021

Same issue here. I'm on a MB Pro 2020 with M1 ARM-chip.,OSX 11.1.

First I've tried the following:

$ brew install remind101/formulae/assume-role
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
No changes to formulae.

Warning: remind101/formulae/assume-role 0.3.1 is already installed and up-to-date.
To reinstall 0.3.1, run:
  brew reinstall assume-role
$ which assume-role
/opt/homebrew/bin/assume-role

$ assume-role assume-role prod
[1]    96806 segmentation fault  assume-role prod

Then I've tried this:

$ arch -x86_64 brew install remind101/formulae/assume-role
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
No changes to formulae.

==> Tapping remind101/formulae
Cloning into '/usr/local/Homebrew/Library/Taps/remind101/homebrew-formulae'...
remote: Enumerating objects: 68, done.
remote: Total 68 (delta 0), reused 0 (delta 0), pack-reused 68
Unpacking objects: 100% (68/68), done.
Tapped 3 formulae (95 files, 47.2KB).
==> Installing assume-role from remind101/formulae
==> Downloading https://github.com/remind101/assume-role/releases/download/0.3.1/assume-role
Already downloaded: /Users/pablo.reynel/Library/Caches/Homebrew/downloads/dce6bb22c01221598c2a388d62cafb82e33c91eac77139414a5dd517e8df90d1--assume-role
🍺  /usr/local/Cellar/assume-role/0.3.1: 3 files, 7.6MB, built in 2 seconds

$ arch -x86_64 assume-role prod
[1]    96977 segmentation fault  arch -x86_64 assume-role prod`

@madsenwattiq
Copy link

madsenwattiq commented Feb 15, 2021 via email

@madsenwattiq
Copy link

I just added PR #55 which simply moves to go modules for go1.16 on Mac M1 silicon computers. Works just fine!

@kdlcruz
Copy link

kdlcruz commented Sep 19, 2021

@madsenwattiq how where you able to make this work? I tried

go install github.com/ibisnetworks/assume-role@latest

and I got these

module declares its path as: wattiq.io/assume-role but was required as: github.com/ibisnetworks/assume-role

Thanks!

@madsenwattiq
Copy link

Sorry about that. I expected the original project to update their upstream for go modules, but apparently it is not being actively maintained. Let me see what I can do here.

@madsenwattiq
Copy link

Looking at the current PR's, @kdlcruz , I see that @anherrera has PR #58, which has a setup for go modules and thus probably a clean build on M1 silicon, AND also is updated for AWS SDK changes including SSO. I think my fork should go away and I will support folding hers into the main project -- IF we ever get any responses from Remind. If not, I think we should work from her fork and support the project. Sound reasonable?

@rojosinalma
Copy link

rojosinalma commented Sep 23, 2021

Go ahead and fork it, @rex-remind101 is not active here.
The time since the last commit should make that obvious enough.

@rubber-ant
Copy link

any update on this ?

@gurpalw
Copy link

gurpalw commented Jul 18, 2022

still experiencing this issue on my m1

@anherrera
Copy link

Commented on the wrong thread. Disregard.

@AriVagelatos-KSO
Copy link

Go ahead and fork it, @rex-remind101 is not active here. The time since the last commit should make that obvious enough.

What fork works on M1 Macs? https://github.com/anherrera/assume-role has the same brew install instructions.

@iaforek
Copy link

iaforek commented Aug 31, 2022

I've just stumbled upon the same issue after upgrading from Intel to M1 mac, i.e. assume-role dev was working okay on my intel mac but once I transferred my files to M1 mac assume-role didn't do anything.

I tried to uninstall and install assume-role and brew and eventually I ended up with the same error:

zsh: segmentation fault assume-role

SOLUTION: use awsume!

brew install pipx             # use pipx as this is officially recommend by awsume
pipx ensurepath
                              # restart your terminal
pipx install awsume
awsume-configure

awsume dev                    # works!

You can always check if you assumed role correctly with this command:

aws sts get-caller-identity --output text --query 'Account'

Links:
https://awsu.me/general/quickstart.html
https://pypa.github.io/pipx/

@denizozger
Copy link

Just using https://github.com/danielthank/assume-role seems instead resolved the issue for me on my M1 Mac.

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