GoogleContainerTools / kaniko

Build Container Images In Kubernetes
Apache License 2.0
14.77k stars 1.44k forks source link

coredump in kaniko,but suceessfule in docker build #2166

Open SuperLight-007 opened 2 years ago

SuperLight-007 commented 2 years ago

Sementation fault (core dump) faild to execute command: waiting for process to exit: exit status 139

image

SuperLight-007 commented 2 years ago

it a python script that run successfully already,then coredump

SuperLight-007 commented 2 years ago

it had update a /lib/x86_64-linux-gnu/libtinfo.so.6.2

aaron-prindle commented 1 year ago

@SuperLight-007 can you provide a repro Dockerfile for the case that caused this with kaniko? Thanks!

tooptoop4 commented 1 year ago

on kaniko v1.12.0-debug i'm consistently getting the same error on update-ca-certificates step:

FROM alpine:20220715
RUN mkdir -p /usr/local/share/ca-certificates/
COPY bundle.cer /usr/local/share/ca-certificates/bundle.cer
RUN cat /usr/local/share/ca-certificates/bundle.cer >> /etc/ssl/certs/ca-certificates.crt && apk update && apk add ca-certificates bind-tools bash
RUN update-ca-certificates

error:

error building image: error building stage: failed to execute command: waiting for process to exit: signal: segmentation fault (core dumped)

note that when i tried in February this year with earlier kaniko v1.9.1-slim it worked

aaron-prindle commented 1 year ago

@tooptoop4 thanks for the information, can you verify if kaniko v1.9.1-debug also works? I'm trying to understand if this is a regression with kaniko some time after kaniko-v1.9.1 or something that only does not occurs with -slim (vs -debug). Thanks

tooptoop4 commented 1 year ago

I kept kaniko 1.12-debug and just changed alpine to 3.16.6, it worked