don't segfault if mmap() failed