[llvm] r200853 - Fix an invalid check for duplicate option categories.

Rafael EspĂ­ndola rafael.espindola at gmail.com
Wed Feb 5 14:39:33 PST 2014


On 5 February 2014 14:03, Alexander Kornienko <alexfh at google.com> wrote:
> Could you provide more details? I have run the tests without problems before
> submitting this.

Sure. The crashing command was

./bin/clang -cc1 -internal-isystem
/home/espindola/llvm/build-dbg/bin/../lib/clang/3.5/include -load
/home/espindola/llvm/build-dbg/./lib/SampleAnalyzerPlugin.so -analyze
-analyzer-checker=example.MainCallChecker -verify
/home/espindola/llvm/clang/test/Analysis/checker-plugins.c

The backtrace is

#0  0x0000003856a359e9 in raise () from /lib64/libc.so.6
#1  0x0000003856a370f8 in abort () from /lib64/libc.so.6
#2  0x0000003856a2e956 in __assert_fail_base () from /lib64/libc.so.6
#3  0x0000003856a2ea02 in __assert_fail () from /lib64/libc.so.6
#4  0x00000000015d5542 in llvm::cl::OptionCategory::registerCategory
(this=0x4e317d8 <llvm::cl::GeneralCategory>)
    at /home/espindola/llvm/llvm/lib/Support/CommandLine.cpp:138
#5  0x00007ffff767803f in llvm::cl::OptionCategory::OptionCategory
(this=0x4e317d8 <llvm::cl::GeneralCategory>, Name=0x7ffff7c67bae
<.L.str4> "General options",
    Description=0x0) at
/home/espindola/llvm/llvm/include/llvm/Support/CommandLine.h:151
#6  0x00007ffff7635721 in __cxx_global_var_init () at
/home/espindola/llvm/llvm/lib/Support/CommandLine.cpp:126
#7  0x00007ffff7635c29 in global constructors keyed to a () at
/home/espindola/llvm/llvm/lib/Support/CommandLine.cpp:235
#8  0x000000385660f4f3 in _dl_init_internal () from /lib64/ld-linux-x86-64.so.2
#9  0x0000003856613ad4 in dl_open_worker () from /lib64/ld-linux-x86-64.so.2
#10 0x000000385660f304 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
#11 0x00000038566131eb in _dl_open () from /lib64/ld-linux-x86-64.so.2
#12 0x0000003856e0102b in dlopen_doit () from /lib64/libdl.so.2
#13 0x000000385660f304 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
#14 0x0000003856e0162d in _dlerror_run () from /lib64/libdl.so.2
#15 0x0000003856e010c1 in dlopen@@GLIBC_2.2.5 () from /lib64/libdl.so.2
#16 0x000000000386d0a9 in
llvm::sys::DynamicLibrary::getPermanentLibrary (filename=0x4e43c88
"/home/espindola/llvm/build-dbg/./lib/SampleAnalyzerPlugin.so",
    errMsg=0x7fffffffc5f8) at
/home/espindola/llvm/llvm/lib/Support/DynamicLibrary.cpp:60
#17 0x000000000192e51d in
llvm::sys::DynamicLibrary::LoadLibraryPermanently (Filename=0x4e43c88
"/home/espindola/llvm/build-dbg/./lib/SampleAnalyzerPlugin.so",
    ErrMsg=0x7fffffffc5f8) at
/home/espindola/llvm/llvm/include/llvm/Support/DynamicLibrary.h:77
#18 0x000000000192d41a in clang::ExecuteCompilerInvocation
(Clang=0x4e42ac0) at
/home/espindola/llvm/llvm/tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:203
#19 0x00000000008a0c0a in cc1_main (ArgBegin=0x7fffffffd4f0,
ArgEnd=0x7fffffffd530, Argv0=0x7fffffffe166
"/home/espindola/llvm/build-dbg/./bin/clang",
    MainAddr=0x898980 <GetExecutablePath(char const*, bool)>) at
/home/espindola/llvm/llvm/tools/clang/tools/driver/cc1_main.cpp:101
#20 0x0000000000898d04 in main (argc_=10, argv_=0x7fffffffddf8) at
/home/espindola/llvm/llvm/tools/clang/tools/driver/driver.cpp:314

Cheers,
Rafael



More information about the llvm-commits mailing list