[Bug 205898] makewhatis asserts when -a parameter is used

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jan 4 18:47:16 UTC 2016


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

            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 at FreeBSD.org
          Reporter: s3erios at 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 != bufp), function mlinks_undupe, file
/usr/src/usr.bin/mandoc/../../contrib/mdocml/mandocdb.c, line 1018.
Process 10557 stopped
* thread #1: tid = 100619, 0x28301e3b libc.so.7`thr_kill + 7, stop reason =
signal SIGABRT
    frame #0: 0x28301e3b libc.so.7`thr_kill + 7
libc.so.7`thr_kill:
->  0x28301e3b <+7>:  jb     0x28305114                ; .cerror
    0x28301e41 <+13>: retl   
    0x28301e42:       nop    
    0x28301e43:       nop    
(lldb) bt
* thread #1: tid = 100619, 0x28301e3b libc.so.7`thr_kill + 7, stop reason =
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=<unavailable>) + 5560 at
mandocdb.c:1127
    frame #6: 0x08074b9f makewhatis`mandocdb(argc=<unavailable>,
argv=<unavailable>) + 3119 at mandocdb.c:529
    frame #7: 0x080713d5 makewhatis`main(argc=3, argv=0x9fbfec50) + 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 = strstr(buf, "cat");
-> 1018                 assert(NULL != bufp);
   1019                 memcpy(bufp, "man", 3);
   1020                 if (NULL != (bufp = strrchr(buf, '.')))
   1021                         *++bufp = '\0';

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


More information about the freebsd-bugs mailing list