Created attachment 184251 [details] patch audio/cdparanoia has a manpage that ends with ".ce", this causes makewhatis to crash. Patch included. Test case will be added too.
Created attachment 184252 [details] test case A short test case that demonstrates the bug by adding a ".ce" to known good manpage.
Looks like this is no longer a problem with mandoc 1.14.3: $ uname -v FreeBSD 12.0-CURRENT #1 r326405+2933f3dd7df2(master) ........... $ sh 220623.sh ; echo $? without .ce /tmp/man//man1/a.1: Adding to database /tmp/man//man1/b.1: Adding to database with .ce /tmp/man//man1/a.1: Adding to database /tmp/man//man1/b.1: Adding to database 0
Thanks for submitting the patch and test case. This is fixed in 11.2 and 12.0 so it must have been fixed in upstream. Closing as OBE.