Bug 220623

Summary: [patch] makewhatis crashes if a manpage has .ce active
Product: Base System Reporter: Keith White <ksw.childe>
Component: binAssignee: Oleksandr Tymoshenko <gonzo>
Status: Closed Overcome By Events    
Severity: Affects Some People CC: bapt, emaste, gonzo, yuripv
Priority: --- Keywords: patch
Version: CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch
none
test case none

Description Keith White 2017-07-11 10:13:14 UTC
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.
Comment 1 Keith White 2017-07-11 10:14:55 UTC
Created attachment 184252 [details]
test case

A short test case that demonstrates the bug by adding a ".ce" to known good manpage.
Comment 2 Yuri Pankov 2017-12-02 19:39:41 UTC
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
Comment 3 Oleksandr Tymoshenko freebsd_committer freebsd_triage 2019-01-15 21:02:03 UTC
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.