From owner-freebsd-bugs@freebsd.org Mon Jan 4 18:47:16 2016 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 231BCA60791 for ; Mon, 4 Jan 2016 18:47:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 087641FC8 for ; Mon, 4 Jan 2016 18:47:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u04IlFDN010057 for ; Mon, 4 Jan 2016 18:47:15 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 205898] makewhatis asserts when -a parameter is used Date: Mon, 04 Jan 2016 18:47:16 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: s3erios@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jan 2016 18:47:16 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D205898 Bug ID: 205898 Summary: makewhatis asserts when -a parameter is used Product: Base System Version: 11.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: s3erios@gmail.com # lldb /usr/bin/makewhatis (lldb) target create "/usr/bin/makewhatis" Current executable set to '/usr/bin/makewhatis' (i386). (lldb) r -a /usr/share/man Process 10557 launching Process 10557 launched: '/usr/bin/makewhatis' (i386) Assertion failed: (NULL !=3D bufp), function mlinks_undupe, file /usr/src/usr.bin/mandoc/../../contrib/mdocml/mandocdb.c, line 1018. Process 10557 stopped * thread #1: tid =3D 100619, 0x28301e3b libc.so.7`thr_kill + 7, stop reason= =3D signal SIGABRT frame #0: 0x28301e3b libc.so.7`thr_kill + 7 libc.so.7`thr_kill: -> 0x28301e3b <+7>: jb 0x28305114 ; .cerror 0x28301e41 <+13>: retl=20=20=20 0x28301e42: nop=20=20=20=20 0x28301e43: nop=20=20=20=20 (lldb) bt * thread #1: tid =3D 100619, 0x28301e3b libc.so.7`thr_kill + 7, stop reason= =3D signal SIGABRT * frame #0: 0x28301e3b libc.so.7`thr_kill + 7 frame #1: 0x28301d6c libc.so.7`__raise + 60 frame #2: 0x28301533 libc.so.7`abort + 99 frame #3: 0x282eeda8 libc.so.7`__assert + 104 frame #4: 0x080770dc makewhatis`mpages_merge [inlined] mlinks_undupe + = 5596 at mandocdb.c:1018 frame #5: 0x080770b8 makewhatis`mpages_merge(mp=3D) + 5560= at mandocdb.c:1127 frame #6: 0x08074b9f makewhatis`mandocdb(argc=3D, argv=3D) + 3119 at mandocdb.c:529 frame #7: 0x080713d5 makewhatis`main(argc=3D3, argv=3D0x9fbfec50) + 293= at main.c:147 frame #8: 0x0804a16a makewhatis` + 314 frame #9: 0x0804a028 makewhatis + 24 (lldb) f 4 frame #4: 0x080770dc makewhatis`mpages_merge [inlined] mlinks_undupe + 5596= at mandocdb.c:1018 1015 } 1016 (void)strlcpy(buf, mlink->file, sizeof(buf)); 1017 bufp =3D strstr(buf, "cat"); -> 1018 assert(NULL !=3D bufp); 1019 memcpy(bufp, "man", 3); 1020 if (NULL !=3D (bufp =3D strrchr(buf, '.'))) 1021 *++bufp =3D '\0'; --=20 You are receiving this mail because: You are the assignee for the bug.=