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

Assertion failed: 0 (src/main.c: main: 96) #7

Open
snsinfu opened this issue Sep 10, 2019 · 0 comments
Open

Assertion failed: 0 (src/main.c: main: 96) #7

snsinfu opened this issue Sep 10, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@snsinfu
Copy link
Owner

snsinfu commented Sep 10, 2019

Assertion fails when the command exits due to a signal.

Create this Dockerfile:

FROM alpine
WORKDIR /srv
RUN apk add --no-cache curl \
 && curl -fsSLO https://github.com/snsinfu/ftrap/releases/download/v0.3.0/ftrap \
 && chmod u+x ftrap
CMD ["/srv/ftrap", "-f/srv", "sleep", "100"]

Build and run:

docker build -t ftrap_test .
docker run -it --rm ftrap_test

Then, press Ctrl-C. It triggers the assertion failure:

^CAssertion failed: 0 (src/main.c: main: 96)
@snsinfu snsinfu added the bug Something isn't working label Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant