reproduction of segfault in persistent