createDict causes core dumps