have segfault. Want to debug in valgrind