core file and gdb debugging

First of all, we have to execute on the host

echo '/tmp/core.%t.%e.%p' | sudo tee /proc/sys/kernel/core_pattern

In addition, the following parameters should be added when docker run

--ulimit core=-1 --security-opt seccomp=unconfined
docker run -d --restart=always --name  ubuntu16  --ulimit core=-1 --security-opt seccomp=unconfined   cr.d.xiaomi.net/mig4-videoturbo-service/compiler:v1   init

Guess you like

Origin blog.csdn.net/qq_43373608/article/details/107695330