[Bug 14366] New: co-operate with valgrind when switching stacks