invalid read errno bug