kaniko icon indicating copy to clipboard operation
kaniko copied to clipboard

coredump in kaniko,but suceessfule in docker build

Open SuperLight-007 opened this issue 2 years ago • 2 comments

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

image

SuperLight-007 avatar Jul 07 '22 14:07 SuperLight-007

it a python script that run successfully already,then coredump

SuperLight-007 avatar Jul 07 '22 14:07 SuperLight-007

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

SuperLight-007 avatar Jul 07 '22 14:07 SuperLight-007

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

aaron-prindle avatar May 29 '23 05:05 aaron-prindle

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

tooptoop4 avatar Jun 30 '23 10:06 tooptoop4

@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

aaron-prindle avatar Jun 30 '23 17:06 aaron-prindle

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

tooptoop4 avatar Jul 01 '23 09:07 tooptoop4