[LLVMbugs] [Bug 9057] New: [REGRESSION] Assertion failed: (AR && "Analysis Resolver is not set"), function initializeAnalysisImpl, file PassManager.cpp, line 1045.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jan 26 01:39:44 PST 2011


http://llvm.org/bugs/show_bug.cgi?id=9057

           Summary: [REGRESSION] Assertion failed: (AR && "Analysis
                    Resolver is not set"), function
                    initializeAnalysisImpl, file PassManager.cpp, line
                    1045.
           Product: clang
           Version: unspecified
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: ismail at namtrac.org
                CC: llvmbugs at cs.uiuc.edu


This is an interesting problem, to reproduce you will need an exact command
line replayed else it won't crash:

clang -MD -MP -D_ISOC99_SOURCE -D_BSD_SOURCE -O2 -march=core2 -pipe
-D_ISOC99_SOURCE -D_BSD_SOURCE -O2 -march=core2 -pipe -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -mdynamic-no-pic -I.
-Iffmpeg  -DPIC  -I/usr/X11/include -I/usr/X11/include/freetype2
-I/usr/X11/include -DFF_API_MAX_STREAMS=0 -c -o decode.o decode.c

Assertion failed: (AR && "Analysis Resolver is not set"), function
initializeAnalysisImpl, file PassManager.cpp, line 1045.
0  clang             0x0000000101509e32
llvm::SmallVectorTemplateBase<llvm_regmatch_t, false>::grow(unsigned long) +
754
1  clang             0x000000010150ac83
llvm::SmallVectorTemplateBase<llvm_regmatch_t, false>::grow(unsigned long) +
4419
2  libSystem.B.dylib 0x00007fff885db67a _sigtramp + 26
3  libSystem.B.dylib 0x0000000101e558c0 _sigtramp + 2038932064
4  clang             0x000000010001a762
std::vector<llvm::PassRegistrationListener*,
std::allocator<llvm::PassRegistrationListener*>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::PassRegistrationListener**,
std::vector<llvm::PassRegistrationListener*,
std::allocator<llvm::PassRegistrationListener*> > >,
llvm::PassRegistrationListener* const&) + 3474
5  clang             0x000000010143746e llvm::BasicBlockPass::~BasicBlockPass()
+ 13678
6  clang             0x00000001012f1697 llvm::LoopInfoBase<llvm::BasicBlock,
llvm::Loop>::ConsiderForLoop(llvm::BasicBlock*,
llvm::DominatorTreeBase<llvm::BasicBlock>&) + 9159
7  clang             0x000000010143bcf0 llvm::BasicBlockPass::~BasicBlockPass()
+ 32240
8  clang             0x000000010143be0b llvm::BasicBlockPass::~BasicBlockPass()
+ 32523
9  clang             0x000000010143d98f llvm::BasicBlockPass::~BasicBlockPass()
+ 39567
10 clang             0x000000010143dc83 llvm::BasicBlockPass::~BasicBlockPass()
+ 40323
11 clang             0x000000010143dd5d llvm::BasicBlockPass::~BasicBlockPass()
+ 40541
12 clang             0x0000000100182dfa clang::PCHGenerator::~PCHGenerator() +
5866
13 clang             0x00000001002ace3e
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 286
14 clang             0x00000001002dfc29 llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateAdd(llvm::Value*, llvm::Value*, llvm::Twine const&) + 1033
15 clang             0x00000001002abb8c llvm::IRBuilder<true,
llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true>
>::CreateIsNull(llvm::Value*, llvm::Twine const&) + 3292
16 clang             0x00000001000533b9 llvm::DenseMap<clang::IdentifierInfo
const*, unsigned int, llvm::DenseMapInfo<clang::IdentifierInfo const*>,
llvm::DenseMapInfo<unsigned int> >::grow(unsigned int) + 7673
17 clang             0x0000000100024972 std::_Rb_tree<std::string, std::string,
std::_Identity<std::string>, std::less<std::string>,
std::allocator<std::string> >::_M_insert_unique(std::string const&) + 2002
18 clang             0x000000010001c5ba
std::vector<llvm::PassRegistrationListener*,
std::allocator<llvm::PassRegistrationListener*>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::PassRegistrationListener**,
std::vector<llvm::PassRegistrationListener*,
std::allocator<llvm::PassRegistrationListener*> > >,
llvm::PassRegistrationListener* const&) + 11242
19 clang             0x00000001000239a4 std::vector<std::string,
std::allocator<std::string> >::operator=(std::vector<std::string,
std::allocator<std::string> > const&) + 12196
20 clang             0x000000010001aee4
std::vector<llvm::PassRegistrationListener*,
std::allocator<llvm::PassRegistrationListener*>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::PassRegistrationListener**,
std::vector<llvm::PassRegistrationListener*,
std::allocator<llvm::PassRegistrationListener*> > >,
llvm::PassRegistrationListener* const&) + 5396
21 clang             0x0000000000000046
std::vector<llvm::PassRegistrationListener*,
std::allocator<llvm::PassRegistrationListener*>
>::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::PassRegistrationListener**,
std::vector<llvm::PassRegistrationListener*,
std::allocator<llvm::PassRegistrationListener*> > >,
llvm::PassRegistrationListener* const&) + 4294862454
Stack dump:
0.    Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-apple-darwin10.0.0 -emit-obj -disable-free -main-file-name decode.c
-pic-level 1 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2
-target-linker-version 97.17 -resource-dir /usr/local/bin/../lib/clang/2.9
-dependency-file decode.d -MT decode.o -sys-header-deps -MP -D _ISOC99_SOURCE
-D _BSD_SOURCE -D _ISOC99_SOURCE -D _BSD_SOURCE -D _LARGEFILE_SOURCE -D
_FILE_OFFSET_BITS=64 -D _LARGEFILE64_SOURCE -D PIC -D FF_API_MAX_STREAMS=0 -I
libdvdread4 -I . -I ffmpeg -I /usr/X11/include -I /usr/X11/include/freetype2 -I
/usr/X11/include -O2 -ferror-limit 19 -fmessage-length 120 -stack-protector 1
-fblocks -fdiagnostics-show-option -fcolor-diagnostics -o decode.o -x c
decode.c 
1.    <eof> parser at end of file
2.    Code generation
3.    Running pass 'Function Pass Manager' on module 'decode.c'.
4.    Running pass 'Loop Pass Manager' on function '@mpeg2_parse'
clang: error: unable to execute command: Illegal instruction
clang: error: clang frontend command failed due to signal 1 (use -v to see
invocation)

Since I am unable to reproduce the problem with the just preprocessed source
I'll be uploading the decode.c and dependencies.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list