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 Kubuntu Bugs, which is subscribed to lensfun in 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 -- kubuntu-bugs mailing list kubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs