Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 Jan 2016 18:47:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 205898] makewhatis asserts when -a parameter is used
Message-ID:  <bug-205898-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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<unavailable>) + 5560=
 at
mandocdb.c:1127
    frame #6: 0x08074b9f makewhatis`mandocdb(argc=3D<unavailable>,
argv=3D<unavailable>) + 3119 at mandocdb.c:529
    frame #7: 0x080713d5 makewhatis`main(argc=3D3, argv=3D0x9fbfec50) + 293=
 at
main.c:147
    frame #8: 0x0804a16a makewhatis`<some junk here> + 314
    frame #9: 0x0804a028 makewhatis <and here> + 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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-205898-8>