test app demonstrating segfault