This seems to be the same problem as debian bug 898297. Attached is a patch that fixed the issue for me (already submitted it to the debian bug).
** Patch added: "Tentative patch" https://bugs.launchpad.net/ubuntu/+source/ufraw/+bug/1768855/+attachment/5201431/+files/05_lensfun_destroy_cleanup.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1768855 Title: ufraw-batch in bionic segfault To manage notifications about this bug go to: https://bugs.launchpad.net/ufraw/+bug/1768855/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs