[Bug 49225] FreeBSD assertion failure / memory corruption regression from not checking mmap() return value correctly