Reputation: 101
I have a C# WebApi project running within a Docker container and it is basically working. But regularly the container silently crashes and restarts. The exit code is 139. I assume this happens because I pinvoke into a native library (uplink.NET) which itself is a go-library compiled to C.
I already added plenty of debug output to see when exactly the error happens, but it seems the error occurs "randomly". So I assume the go-runtime crashes during garbage collection or whatever.
My main problem is: I do not get any info from there. So I tried to get a core-dump telling me where exactly my container died, but did not get any yet.
How to set up an existing container to produce a core-dump?
Setting up the container is quite complex so I need a solution for a ready-to-start container to "simply get the full error dump". Any ideas?
Upvotes: 1
Views: 83