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

Linux binary only (partially) works on Debian (and co.) #1084

Open
lunaflight opened this issue Aug 6, 2024 · 0 comments
Open

Linux binary only (partially) works on Debian (and co.) #1084

lunaflight opened this issue Aug 6, 2024 · 0 comments

Comments

@lunaflight
Copy link

The documentation should be updated to highlight that the linux binaries may not work if you are on a non-debian-related distro. This should be an easy update to the documentation, so linux users are aware of the shortcomings of the binary in the releases.

To reproduce:

On a non-debian-related linux machine,

  1. Install pixlet via the following method
curl -LO https://github.com/tidbyt/pixlet/releases/download/v0.33.3/pixlet_0.33.3_linux_amd64.tar.gz
tar -xvf pixlet_0.33.3_linux_amd64.tar.gz
chmod +x ./pixlet
sudo mv pixlet /usr/local/bin/pixlet
  1. Create a file main.star with the following contents
load("render.star", "render")
load("http.star", "http")

def main():
    url = "https://www.google.com"
    http.get(url)
    return render.Root(child=render.Text(""))
  1. Run the following
pixlet serve main.star
  1. The following output is generated
2024/08/06 22:25:39 listening at http://127.0.0.1:8080
SIGSEGV: segmentation violation
PC=0x7f52714482a6 m=4 sigcode=1 addr=0x1e83c0
signal arrived during cgo execution

The above is successfully reproduced in Fedora, Arch.
The segmentation fault is not present when done in Debian, Ubuntu.

On Fedora / Arch, building from source makes pixlet serve main.star work successfully.

@lunaflight lunaflight changed the title Linux binary only works on Debian (and co.) Linux binary only (partially) works on Debian (and co.) Aug 6, 2024
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

1 participant