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

Invalid memory access (signal 11) #1

Open
vasyakrg opened this issue Sep 6, 2022 · 1 comment
Open

Invalid memory access (signal 11) #1

vasyakrg opened this issue Sep 6, 2022 · 1 comment

Comments

@vasyakrg
Copy link

vasyakrg commented Sep 6, 2022

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

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

Finished in 109.4 milliseconds

30 inspected, 0 failures.
+ npm run release

> [email protected] 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
Copy link

khramov86 commented Aug 13, 2024

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

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

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