kaniko icon indicating copy to clipboard operation
kaniko copied to clipboard

stack smashing detected

Open crohling opened this issue 3 years ago • 2 comments

Actual behavior When installing the following dependencies via apt-get RUN apt-get update && apt-get install --assume-yes -o Dpkg::Options::="--force-confnew" libgl1-mesa-dev libglib2.0-0 the next call to pip in the Dockerfile will result in the following error:

INFO[0040] Running: [/bin/sh -c pip install --upgrade pip]
*** stack smashing detected ***: terminated
Aborted (core dumped)
error building image: error building stage: failed to execute command: waiting for process to exit: exit status 134

This container builds cleanly on another Debian box

Expected behavior A clean build, with no stack smashing error

To Reproduce

FROM python:3.9.5

RUN apt-get update && apt-get install --assume-yes -o Dpkg::Options::="--force-confnew" libgl1-mesa-dev libglib2.0-0

RUN pip install --upgrade pip

Additional Information The above dockerfile should reproduce No context necessary to reproduce

kube executor config:

    runners:
      config: |
        [[runners]]
        executor = "kubernetes"
        environment = [ "container=kube" ]
          [runners.kubernetes]
            namespace = "{{.Release.Namespace}}"
            image = "ubuntu:16.04"
            image_pull_secrets = [<SOME_SECRETS>]
            [runners.cache]
              Type = "s3"
              Path = "runner"
              Shared = true
              [runners.cache.s3]
                ServerAddress = "s3.amazonaws.com"
                BucketName = "<BUCKET_NAME>"
                BucketLocation = "us-east-1"
                Insecure = false

Triage Notes for the Maintainers

Description Yes/No
Please check if this a new feature you are proposing
  • - [ ]
Please check if the build works in docker but not in kaniko
  • - [X]
Please check if this error is seen when you use --cache flag
  • - [ ]
Please check if your dockerfile is a multistage dockerfile
  • - [ ]

crohling avatar Mar 25 '22 15:03 crohling

@crohling I faced this problem. Do you have any idea to solve this issue?

ardasendur avatar May 31 '24 07:05 ardasendur

@ardasendur I was never able to resolve it. My solution was to use raw docker.

crohling avatar May 31 '24 22:05 crohling