Skip to content

docker: add libgcc runtime dependency to prevent pthread_exit abort#24

Open
soroushalinia wants to merge 1 commit intoEndPositive:mainfrom
soroushalinia:fix/docker-libgcc
Open

docker: add libgcc runtime dependency to prevent pthread_exit abort#24
soroushalinia wants to merge 1 commit intoEndPositive:mainfrom
soroushalinia:fix/docker-libgcc

Conversation

@soroushalinia
Copy link
Copy Markdown

Fixes #23

When connecting via SSH (e.g. for tunneling), the container could crash with:
"libgcc_s.so.1 must be installed for pthread_exit to work"

Root cause: the final runtime image was missing libgcc_s.so.1.

Change:

  • Copy libgcc_s.so.1 from the builder stage into the runtime stage:
    COPY --from=builder /lib/x86_64-linux-gnu/libgcc_s.so.1 /lib/x86_64-linux-gnu/

Tested:

  • Built the Docker image locally and verified SSH connect/disconnect no longer terminates the container.

@EndPositive
Copy link
Copy Markdown
Owner

prefer using the cc distroless image, see dd11646

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

Successfully merging this pull request may close these issues.

Crash due to libgcc_s.so.1 missing.

2 participants