> File valgrind-log.txt added
>
> Here's what I get running valgrind. Let me know if I should enable some extra checks.

Hmmm.. This seems to don't have a useful hint.