-
Notifications
You must be signed in to change notification settings - Fork 164
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
Not working on apple m1 #62
Comments
What is the go version? |
Hi I am experiencing this issue as well.
Update: rebuild using golang 1.16 resulting in the same binary, and also the same error. |
@AWSjswinney is this an arm64 assembly thing? |
Yeah, definitely looks like it. I'll look into it. |
@alfianabdi or @leejw51crypto Could one of you provide minimal instructions to reproduce this issue? It would be better if it worked on Linux/aarch64 because it's harder for me to get access to an M1 system. I built the cortext containers, but I'm not sure how to use them to reproduce the bug. |
I do the following on my local machine: WSL with Docker Desktop. The error I posted above was from Kubernetes with different configuration for cortex. I run cortex container ( arm64 ) with emulator. Create docker image for cortex
Create config file for cortex single binary: cortex.yaml
Run the cortex container
Cortex container should be running, get the IP and verify the logs
Create config file for prometheus: prometheus.yaml. Replace the IP in remote write with the cortex container IP.
Create docker volume and set the permission and run the prometheus container
The cortex container should be exited now
|
Thanks @alfianabdi I followed the instructions, but I haven't been able to reproduce the bug. Can you give me the commit hash of cortex you are working on? Can you verify that the project is using Snappy v0.0.3? I'm looking at the stack trace and I see that it points to a crash on After looking more closely at the original report, I see that Snappy v0.0.2 is being used, which definitely explains the problem. @leejw51crypto Can you please try upgrading to v0.0.3? |
Thanks for your help. The release 1.7 was indeed using v0.02 but the latest is using v0.03. |
@alfianabdi any news? |
@nigeltao and all Cortex 1.9 with snappy compression (v0.0.3) works well. |
This fixes a segfault in arm64, as reported by golang/snappy#62. Signed-off-by: Douglas Camata <[email protected]>
version 0.0.2, 0.0.3: crash
version 0.0.1: OK
crashes in encode_arm64.s
The text was updated successfully, but these errors were encountered: