How to debug seg fault in docker container?
You can permit core files by running ulimit -c unlimited
in a script that launches your app. Then you can process the core file with a debugger (e.g. gdb) to find the cause of the segfault. To get the core file out of a stopped container, there's docker cp $container_id:/path/to/core /host/destination/core
.