Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Nov 2025 08:00:35 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 291233] llvm-cov complains about registered duplicated options and segfaults
Message-ID:  <bug-291233-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

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

            Bug ID: 291233
           Summary: llvm-cov complains about registered duplicated options
                    and segfaults
           Product: Base System
           Version: 16.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: royger@freebsd.org

llvm-cov segfaults, just executing `llvm-cov show` gives the following trace:

# llvm-cov show
: CommandLine Error: Option 'o' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options
PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the
crash backtrace.
Stack dump:
0.      Program arguments: llvm-cov "llvm-cov show"
 #0 0x00002b6b9178c0e9 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int)
/usr/src/contrib/llvm-p3
 #1 0x00002b6b91789e55 llvm::sys::RunSignalHandlers()
/usr/src/contrib/llvm-project/llvm/lib/Suppo8
 #2 0x00002b6b9178c7f7 SignalHandler
/usr/src/contrib/llvm-project/llvm/lib/Support/Unix/Signals.i3
 #3 0x00002b6b95de681c handle_signal /usr/src/lib/libthr/thread/thr_sig.c:0:3
 #4 0x00002b6b95de5e2b thr_sighandler
/usr/src/lib/libthr/thread/thr_sig.c:262:1
 #5 0x00002b6b8c3af2d3 ([vdso]+0x2d3)
 #6 0x00002b6b98a6da9a __sys_thr_kill
/usr/obj/usr/src/amd64.amd64/lib/libsys/thr_kill.S:4:0
 #7 0x00002b6b977544c4 _raise /usr/src/lib/libc/gen/raise.c:0:10
 #8 0x00002b6b97805889 abort /usr/src/lib/libc/stdlib/abort.c:67:17
 #9 0x00002b6b9174303e llvm::report_fatal_error(llvm::Twine const&, bool)
/usr/src/contrib/llvm-pr5
#10 0x00002b6b91742e79 (/usr/lib/libprivatellvm.so.19+0x4142e79)
#11 0x00002b6b9172b39b (/usr/lib/libprivatellvm.so.19+0x412b39b)
#12 0x00002b6b9171b374 addOption
/usr/src/contrib/llvm-project/llvm/lib/Support/CommandLine.cpp:0:5
#13 0x00002b6b9171b374 llvm::cl::Option::addArgument()
/usr/src/contrib/llvm-project/llvm/lib/Supp7
#14 0x00002b636b6adefb llvm::cl::alias::done()
/usr/src/contrib/llvm-project/llvm/include/llvm/Sup5
#15 0x00002b636b6a8af4 llvm::cl::alias::alias<char [2], llvm::cl::desc,
llvm::cl::aliasopt>(char c5
#16 0x00002b636b6a9372 doShow
/usr/src/contrib/llvm-project/llvm/tools/llvm-cov/CodeCoverage.cpp:03
#17 0x00002b636b6a70a9 run
/usr/src/contrib/llvm-project/llvm/tools/llvm-cov/CodeCoverage.cpp:960:2
#18 0x00002b636b6a53c9 showMain
/usr/src/contrib/llvm-project/llvm/tools/llvm-cov/CodeCoverage.cpp5
#19 0x00002b636b6f129e main
/usr/src/contrib/llvm-project/llvm/tools/llvm-cov/llvm-cov.cpp:81:14
#20 0x00002b6b97728eff __libc_start1 /usr/src/lib/libc/csu/libc_start1.c:180:2
Abort trap (core dumped)

This is on FreeBSD 16.0, but I was using 15.0 and got the same kind of error.

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

home | help

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