Bug 277429 - makewhatis coredump (SIGABRT) on 12.3, 13.1 and 13.2
Summary: makewhatis coredump (SIGABRT) on 12.3, 13.1 and 13.2
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 13.2-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-02 08:09 UTC by Michael Landin
Modified: 2024-12-18 18:24 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Landin freebsd_committer freebsd_triage 2024-03-02 08:09:58 UTC
makewhatis core dumps randomly across multiple systems.

backtrace:

(lldb) bt all
* thread #1, name = 'makewhatis', stop reason = signal SIGABRT
  * frame #0: 0x000000080048769a libc.so.7`__sys_thr_kill at thr_kill.S:3
    frame #1: 0x0000000800485af4 libc.so.7`__raise(s=6) at raise.c:52:10
    frame #2: 0x00000008003fb719 libc.so.7`abort at abort.c:67:8
    frame #3: 0x0000000000242277 makewhatis`mandoc_escape(end=<unavailable>, start=<unavailable>, sz=<unavailable>) at mandoc.c:243:4
    frame #4: 0x000000000023a75d makewhatis`roff_parseln [inlined] roff_parsetext(r=<unavailable>, buf=0x00007fffffffdd20, pos=<unavailable>, offs=0x00007fffffffdd0c) at roff.c:1742:10
    frame #5: 0x000000000023a670 makewhatis`roff_parseln(r=<unavailable>, ln=<unavailable>, buf=<unavailable>, offs=<unavailable>) at roff.c:1819
    frame #6: 0x0000000000243d3e makewhatis`mparse_buf_r(curp=<unavailable>, blk=buf @ 0x00007fffffffdd80, i=<unavailable>, start=1) at read.c:275:17
    frame #7: 0x00000000002437e8 makewhatis`mparse_readfd(curp=0x00000008006e3000, fd=<unavailable>, filename=<unavailable>) at read.c:587:2
    frame #8: 0x000000000025f7a4 makewhatis`mpages_merge(dba=0x0000000801e71b30, mp=0x00000008006e3000) at mandocdb.c:1144:4
    frame #9: 0x000000000025eb04 makewhatis`mandocdb(argc=<unavailable>, argv=0x00007fffffffeba8) at mandocdb.c:510:4
    frame #10: 0x0000000000261d5b makewhatis`main(argc=7, argv=0x00007fffffffeba0) at main.c:152:10
    frame #11: 0x0000000000226300 makewhatis`_start(ap=<unavailable>, cleanup=<unavailable>) at crt1.c:76:
Comment 1 Ed Maste freebsd_committer freebsd_triage 2024-03-02 15:35:30 UTC
An updated mandoc is in 13.3, we will want to see if this reproduces there.