Thanks for reporting that. I installed the attached into the master branch and am marking the bug as fixed. Not sure whether it's worth installing into the emacs-26 branch. It is a serious problem if Lisp code can make Emacs crash; on the other hand, the usage is erroneous.