Interesting, I dont see any reason why detach should cause a crash, and it does not for me. All detach does is fork, then redirect stdout and stderr to /dev/null and call setsid().
https://github.com/kovidgoyal/calibr...init__.py#L877
What does
strace -f calibre --detach
output?