https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289420

            Bug ID: 289420
           Summary: mandoc core dump due to tag_put assertion
           Product: Base System
           Version: 14.3-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: [email protected]
          Reporter: [email protected]

mandoc dumps core when formatting got(1) manual page

root /usr/local/share/man/man1 # zcat got.1.gz | mandoc
Assertion failed: (n->tag == NULL), function tag_put, file
/usr/src/contrib/mandoc/tag.c, line 185.
Abort trap (core dumped)

the first line below triggers the issue (.Tg ignore):

.Tg ignore
.Ss Ignore Patterns

it seems that upstream mandoc has fixed the issue in

  bsd.lv tag.c revision 1.37
  date: 2022/04/26 11:38:38;  author: schwarze;  lines: +17 -4;
  If a node is tagged explicitly, skip implicit tagging for that node.
  Apart from making sense in the first place, this fixes an assertion
  failure that happened when the calculated implicit tag did not match
  the string value of the first child of the node,
  Bug found by tb@ using afl(1).

some branches have imported updated mandoc (e.g. stable/14 and stable/15), but
not releng/14.3

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to