cli icon indicating copy to clipboard operation
cli copied to clipboard

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

Open pcgeek86 opened this issue 2 years ago • 3 comments

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 avatar Feb 01 '22 18:02 pcgeek86

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.

pcgeek86 avatar Feb 02 '22 01:02 pcgeek86

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 avatar Jan 09 '23 20:01 i40west

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.

i40west avatar Jan 09 '23 22:01 i40west