reproduce segfault with minimal code