cli
cli copied to clipboard
Error: signal: Segmentation fault (core dumped) on Ubuntu Server 20.04 Linux ARM 64-bit
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
- Successful connection to main (production) branch
- Error indicating that connecting to production branches is unsupported
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.
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.
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.