[llvm-bugs] [Bug 47117] New: "CommandLine Error: Option 'filter' registered more than once!" crash on startup in applications using libclang
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Aug 11 06:58:10 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=47117
Bug ID: 47117
Summary: "CommandLine Error: Option 'filter' registered more
than once!" crash on startup in applications using
libclang
Product: clang
Version: 11.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: libclang
Assignee: unassignedclangbugs at nondot.org
Reporter: bero at lindev.ch
CC: klimek at google.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
Several applications that use (dynamically linked) libclang crash on startup
with libclang 11-rc1, including doxygen and the Qt6 version of lupdate.
$ ./bin/doxygen
: CommandLine Error: Option 'filter' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options
Aborted (core dumped)
Doxygen isn't doing anything funny like mixing shared and static libraries.
The crash seems to happen in a global constructor in libclang, before even
doxygen's main() is called.
#0 0x00007ffff3dd386f in raise () from /lib64/libc.so.6
#1 0x00007ffff3db9538 in abort () from /lib64/libc.so.6
#2 0x00007fffedc4cb39 in llvm::report_fatal_error(llvm::Twine const&, bool) ()
from /usr/lib64/libLLVMSupport.so.11.0
#3 0x00007fffedc4c978 in llvm::report_fatal_error(char const*, bool) () from
/usr/lib64/libLLVMSupport.so.11.0
#4 0x00007fffedc32904 in ?? () from /usr/lib64/libLLVMSupport.so.11.0
#5 0x00007fffedc24044 in ?? () from /usr/lib64/libLLVMSupport.so.11.0
#6 0x00007fffedc2207d in llvm::cl::Option::addArgument() () from
/usr/lib64/libLLVMSupport.so.11.0
#7 0x00007ffff76ff910 in ?? () from /usr/lib64/libclang-cpp.so.11.0
#8 0x00007ffff7702da6 in ?? () from /usr/lib64/libclang-cpp.so.11.0
#9 0x00007ffff7fe1f0e in call_init () from /lib64/ld-linux-x86-64.so.2
#10 0x00007ffff7fe1fec in _dl_init () from /lib64/ld-linux-x86-64.so.2
#11 0x00007ffff7fd20ca in _dl_start_user () from /lib64/ld-linux-x86-64.so.2
#12 0x0000000000000001 in ?? ()
#13 0x00007fffffffd8db in ?? ()
#14 0x0000000000000000 in ?? ()
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200811/f51122f4/attachment.html>
More information about the llvm-bugs
mailing list