segfault on creating page