I added the --without-bash-malloc to the ./configure parameters.
For some reason, using the builting BASH malloc caused memory
problems. I don't know why, and I don't really know how to debug
them. But this appears to work.

This is the first commit where the executable actually seems to
work properly. Of course, I do to more testing.