umod with segfault error handler