Crash related to MetadataAllocator

There appears to be a crash related to MetadataAllocator reported here and here.