Bug 220623 - [patch] makewhatis crashes if a manpage has .ce active
Summary: [patch] makewhatis crashes if a manpage has .ce active
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: Oleksandr Tymoshenko
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2017-07-11 10:13 UTC by Keith White
Modified: 2019-01-15 21:02 UTC (History)
4 users (show)

See Also:


Attachments
patch (381 bytes, patch)
2017-07-11 10:13 UTC, Keith White
no flags Details | Diff
test case (365 bytes, text/plain)
2017-07-11 10:14 UTC, Keith White
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.