malloc: add exception info to function header