southbridgeio / xpaste

MIT License
10 stars 6 forks source link

Invalid memory access (signal 11) #1

Open vasyakrg opened 2 years ago

vasyakrg commented 2 years ago

буквально на последнем шаге сборки выдает такое:

..............................

Finished in 109.4 milliseconds

30 inspected, 0 failures.
+ npm run release

> xpaste@0.1.0 release /app
> webpack -p --config config/webpack/production.js

+ shards build --static
Dependencies are satisfied
Building: xpaste
+ rm -f bin/xpaste
+ shards build --release --static
Dependencies are satisfied
Building: xpaste
Error target xpaste failed to compile:
Invalid memory access (signal 11) at address 0x7fb413a6bad8
[0x7fb430c31f96] ???
[0x7fb430b7bbeb] ???
[0x7fb4319ff831] ???

The command '/bin/sh -c set -ex &&     nginx -t -c /app/config/nginx.conf &&     crystal bin/ameba.cr &&     npm run release &&     shards build --static &&     rm -f bin/xpaste &&     shards build --release --static &&     strip bin/xpaste &&     upx -9 bin/xpaste &&     rm -f bin/xpaste.dwarf &&     :' returned a non-zero code: 1

запускал сборку так:

if [[ "$OSTYPE" == "darwin"* ]]; then
    docker buildx build --platform linux/amd64,linux/arm64 --push -t vasyakrg/xpaste .
else
    docker build -t vasyakrg/xpaste . && \
        docker push vasyakrg/xpaste
fi

пробовал и на макос и на linux хостах. ╰─$ docker --version
Docker version 20.10.17, build 100c701

khramov86 commented 1 month ago

Заменил вторую строчку в файле и собрался

FROM crystallang/crystal:0.35.1-alpine-build as build-env
#ENV BUILD_PACKAGES npm git upx nginx python xvfb sqlite-static
ENV BUILD_PACKAGES npm git upx nginx python3 xvfb sqlite-static