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

Error: signal: Segmentation fault (core dumped) on Ubuntu Server 20.04 Linux ARM 64-bit #455

Open
pcgeek86 opened this issue Feb 1, 2022 · 3 comments

Comments

@pcgeek86
Copy link

pcgeek86 commented Feb 1, 2022

Scenario

  • I'm running pscale 0.89 on Ubuntu Linux 64-bit on Raspberry Pi 3 B+ (ARM64)
  • I'm running pscale inside a Docker container, using the Ubuntu base image (docker run -it ubuntu:latest)
  • I promoted the main branch to production
  • I used "pscale shell" to connect to the production branch
  • I received an error (see below)

Actual Result

root@f8ef97c5103b:/# pscale branch promote trevor main
Branch main in trevor was successfully promoted.
root@f8ef97c5103b:/# pscale shell trevor main
Error: signal: segmentation fault (core dumped)

However, pscale shell works perfectly fine connecting to a dev branch.

root@f8ef97c5103b:/# pscale shell trevor dev1
trevor/dev1>

Expected Result

  1. Successful connection to main (production) branch
  2. Error indicating that connecting to production branches is unsupported
@pcgeek86
Copy link
Author

pcgeek86 commented Feb 2, 2022

Also ran into the same problem using Docker Desktop on Windows 11, when connecting to a production branch. So, we at least know it's not just an ARM CPU issue.

@i40west
Copy link

i40west commented Jan 9, 2023

Exactly the same issue, running in a Docker container (vscode devcontainer) using Debian Bookworm, macOS 13.1, Intel (not ARM).

pscale shell connects to a dev branch just fine, but segmentation faults connecting to the production branch. Outside Docker just running on macOS, pscale shell connects to either branch okay.

@i40west
Copy link

i40west commented Jan 9, 2023

I figured out this seems to be due to failure to set a locale. The locale I'm passing through is en_US.UTF-8, but the container doesn't have locales installed, probably to save space.

Installing the locales package, editing /etc/locale.gen to enable the locale, and running locale-gen made pscale shell work on the production branch.

Not a great failure mode, but this seems to be the workaround.

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