[Bug 52237] Lots of errors running under valgrind