-
Notifications
You must be signed in to change notification settings - Fork 38
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 on Alpine Linux #354
Comments
Perhaps using alpine (musl) might have sth to do with it? |
Probably so. Never had it happen on Arch with glibc. |
I'd suggest trying with a regular |
In any case it would be good to debug it further and eventually report the buggy behaviour to the crystal's issue tracker instead. |
Should help work around crystal-ameba/ameba#354
Just got this issue on Cable https://github.com/cable-cr/cable/actions/runs/4774224693/jobs/8487769812?pr=69
Seems it only happened on Crystal 1.6. I'm also using |
Confirmed, taking off the |
Using ameba (alpine base) build crashes on our CI too, this is our latest crash:
but only once in a week. 99% of the time it works. FROM alpine:edge as builder
RUN apk add --update crystal shards yaml-dev musl-dev make
RUN mkdir /ameba
WORKDIR /ameba
COPY . /ameba/
RUN make clean && make
FROM alpine:latest
RUN apk add --update yaml pcre2 gc libevent libgcc
RUN mkdir /src
WORKDIR /src
COPY --from=builder /ameba/bin/ameba /usr/bin/
RUN ameba -v
ENTRYPOINT [ "/usr/bin/ameba" ] The image is rebuilt every day using these: build:
stage: build
script:
# clone to subdirectory "ameba"
- git clone --depth=1 https://github.com/crystal-ameba/ameba.git ameba
# add our patched Dockerfile
- cp Dockerfile ameba/Dockerfile
- cd ameba
# build
- docker build --pull -t "${CI_REGISTRY_IMAGE}:latest" .
# push
- docker push "${CI_REGISTRY_IMAGE}:latest" (The Dockerfile is based of ameba's Dockerfile.) |
Please check if crystal-lang/crystal#15043 fixes this |
@HertzDevil Thanks! This only happens occasionally, so maybe the issue can be closed for now and reopened if someone complains. |
Since Crystal 1.14 is out now, can you possibly try it out and confirm whether the issue is actually fixed? |
@Sija yup! This fixed the original issue I had. I was able to add |
Great! Now we just need to wait for alpine maintainers to update |
Sometimes Ameba randomly fails in GitHub Actions with:
ci.yml
:shard.yml
:Rerunning fixes the issue, but would be great to fix this this in Ameba.
Happy to provide additional information if needed.
The text was updated successfully, but these errors were encountered: