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

fix segfaults in docker containers built for the wrong architecture #892

Closed
wants to merge 1 commit into from

Conversation

jberger
Copy link
Collaborator

@jberger jberger commented Apr 15, 2024

On certain architectures, when Crypt::Argon2 is built for -march=native but then run on a different architecture (which is easy to do when building on say github actions then deploying elsewhere) the resulting build of the library will segfault when convos attempts to login, killing the container.

Since Crypt::Argon2 version 0.22 an environment variable is available that allows building without the -march=native optimization (when set to NONE).

Fixes #885

@jberger jberger requested a review from jhthorsen April 15, 2024 15:02
On certain architectures, when Crypt::Argon2 is built for
`-march=native` but then run on a different architecture (which is easy
to do when building on say github actions then deploying elsewhere) the
resulting build of the library will segfault when convos attempts to
login, killing the container.

Since Crypt::Argon2 version 0.22 an environment variable is available
that allows building without the `-march=native` optimization (when set
to NONE).
@jhthorsen
Copy link
Collaborator

jhthorsen commented Apr 20, 2024

Please open a PR to https://github.com/convos-chat/docker-base instead, and just merge it. Sorry for not being more responsive, but things are a bit crazy these days 🙈

After the base image is built, I can make a new release. Or you can do it yourself:

  1. Add this to Changes:
8.08 Not Released
  - Fix argon in docker-base #892
  1. Run ./script/convos build release

The problem with adding it here is that I don't know if it will get built, since it might already be built in docker-base.

@jhthorsen jhthorsen closed this Apr 20, 2024
@jhthorsen jhthorsen added the bug label Apr 20, 2024
@jhthorsen jhthorsen added this to the 8.xx milestone Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

convos exited with code 0
2 participants