
I'm trying to put together a minimal Docker container consisting of nothing
but GHC-compiled static executables. Below you can see a full interaction
I've had with GHC and Docker. The high level summary is that:
* When compiled statically, the executable runs just fine in both my host
OS (Ubuntu 14.04) and an Ubuntu 14.04 Docker image
* That same executable run from a busybox (or a "scratch" image, not shown
here since it's slightly longer to set up) hangs and then runs out of memory
I've watched the process in top, and it uses up a huge amount of CPU and
memory. I get the same behavior whether I compiled with or without
optimizations or the multithreaded runtime. I also get identical behavior
with both GHC 7.8.4 and 7.10.1.
I'm not sure how best to proceed with trying to debug this, any suggestions?
vagrant@vagrant-ubuntu-trusty-64:~/Desktop$ cat > hello.hs <