From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from danbala.ifoer.tuwien.ac.at (danbala.ifoer.tuwien.ac.at [128.130.168.64]); by fantadrom.bsd.lv (OpenSMTPD) with ESMTP id cb4d1cf8; for ; Thu, 11 Dec 2014 09:58:13 -0500 (EST) Received: by danbala.ifoer.tuwien.ac.at (Postfix, from userid 116) id 28285A5C6; Thu, 11 Dec 2014 15:58:10 +0100 (CET) Date: Thu, 11 Dec 2014 15:58:10 +0100 From: Thomas Klausner To: discuss@mdocml.bsd.lv Subject: NetBSD PR bin/49464: mandoc can abort on certain (third-party old-style) man page inputs Message-ID: <20141211145809.GA14352@danbala.tuwien.ac.at> X-Mailinglist: mdocml-discuss Reply-To: discuss@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi! A bug report against NetBSD's copy of mandoc was filed today, attached. Thomas ----- Forwarded message from he@uninett.no ----- Date: Thu, 11 Dec 2014 13:50:00 +0000 (UTC) From: he@uninett.no To: gnats-admin@netbsd.org, netbsd-bugs@netbsd.org Cc: Subject: bin/49464: mandoc can abort on certain (third-party old-style) man page inputs >Number: 49464 >Category: bin >Synopsis: mandoc can abort on certain (third-party old-style) man page inputs >Confidential: no >Severity: serious >Priority: medium >Responsible: bin-bug-people >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu Dec 11 13:50:00 +0000 2014 >Originator: Havard Eidnes >Release: NetBSD 6.1.4_PATCH >Organization: UNINETT AS >Environment: System: NetBSD floke.uninett.no 6.1.4_PATCH NetBSD 6.1.4_PATCH (GENERIC) #1: Sun Jun 29 13:59:55 CEST 2014 he@floke.uninett.no:/usr/obj/sys/arch/i386/compile/GENERIC i386 Architecture: i386 Machine: i386 >Description: I'm packaging up zabbix 2.4.2 (so far in pkgsrc-wip, yet to be committed at this stage). It has a man page, zabbix_agentd, where when it's installed, "man zabbix_agentd" yeilds an empty man page and an error message which says floke: {17} man zabbix_agentd man: Formatting manual page... assertion "MAN_BLOCK == p->parent->type" failed: file "/usr/src/external/bsd/mdocml/lib/libmandoc/../../dist/man.c", line 212, function "man_node_append" [1] Abort trap /usr/bin/mandoc ... floke: {18} Doing the more traditional % nroff -mandoc | less -s gives a perfectly readable man page. I would therefore characterize this as "lack of robustness". Likewise, makemandb crashes if such a man page is installed. >How-To-Repeat: Try to view this manpage, here compressed and uuencoded: begin 644 zabbix_agentd.8.gz M'XL(`,.TB%0``ZU636\C-PR]SZ\@?$H`>[)I>U@4:5"[\38&LK;A<8+]R"*0 M-1Q;B$::2!K'[J\OJ1DG=IQ%+[VL-Q1)/5*/CY/.K^%;?S`8?7GH_ST_9U/)EFHRQ)!W`8];VWJNY^T(^$^V)T(:TIU+)7*(V7]\6`#T(\4`'+ MWB-NHS7FO!IF?\U&T_EH,CY*FR@/HD4`A75`ORI8I\P2;`%KX92M/7AT:RJK M$DZ4&-!Y1IO!I`K*&I^DHRET>K(+O5Z#ZQV(LTYRZQ'""D%H2F%$0';;\R(G M4,8'%#E?SJXY%J+6`:S!-.DOO-4UA54BK,"O;*US6"#X"J4J%.9IBV3&2%QM M@BJ1$05G=81D(^`&S10=%5R"R$MEE`].!+5&*&HC8U4@I+0NYTX$R]%-,,7& MXI-TEL%OR:RY!7:WV%U+XFDZG]*_VBX?-*Y1/R@C'0J/W_^X",(M,5S^2$:M M#<@-HEL71%&@#`1!:ZB@]>E#4DQ@%]&K&AM?"Z;KA3Z[,\?C**_S?KASN M]>)FE^VE&TWL832H# M^L!$9%=?5Y5FLL-\A1X/\T3,.4T1^*>:#0LGY"/RJ6]0D#0K7NDMG9CT9QJ2;4*$Y`Y9>,Q%,Z6\=)6LULI M)-"MD/)P/*_0P%.-;AM?"4A[3/S?GL#SA14#)7PL+\P-LU;.FI*=2K%E+$1 MM5KNU%0*)B._U6M!#;6I#8*E6&]C:SS3(SZ'C,I9VIP)^$B&*"Q[JR1&4\$' MB1P^U^4E92$6M<^1XQ)NF"*&]I>R> M%T<+T>Q7##X0'=]OCD_F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