assert in util.c:189 on exit