[LLVMbugs] [Bug 6145] New: jit fails on ClamAV with an assert: ADT/SmallVector.h:152: T& llvm::SmallVectorTemplateCommon<T>::operator[](unsigned int) [with T = llvm::Instruction*]: Assertion `begin() + idx < end()'

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Jan 26 01:29:38 PST 2010


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

           Summary: jit fails on ClamAV with an assert:
                    ADT/SmallVector.h:152: T&
                    llvm::SmallVectorTemplateCommon<T>::operator[](unsigned
                    int) [with T = llvm::Instruction*]: Assertion `begin() +
                    idx < end()'
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Running the jit test in MultiSource/Applications/ClamAV crashes.


~/llvm-git/obj/Release/bin/lli -load ./bugpoint.safe.bc-VthxOi.llc.s.so
bugpoint.test.bc-WkE2B9                                                         
LibClamAV Warning: ***********************************************************  
LibClamAV Warning: ***  This version of the ClamAV engine is outdated.     ***  
LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***  
LibClamAV Warning: ***********************************************************  
lli: /home/edwin/llvm-git/llvm/include/llvm/ADT/SmallVector.h:152: T&
llvm::SmallVectorTemplateCommon<T>::operator[](unsigned int) [with T =
llvm::Instruction*]: Assertion `begin() + idx < end()' failed.                  
0  lli                              0x0000000000b302df                          
1  lli                              0x0000000000b30aed                          
2  libpthread.so.0                  0x0000003283c0e990                          
3  libc.so.6                        0x0000003283031f55 gsignal + 53             
4  libc.so.6                        0x0000003283034d90 abort + 384              
5  libc.so.6                        0x000000328302b07a __assert_fail + 234      
6  lli                              0x00000000004ee9f9                          
7  lli                              0x00000000004f594a
llvm::BitcodeReader::ParseFunctionBody(llvm::Function*) + 970       
8  lli                              0x00000000004fa1e4
llvm::BitcodeReader::materializeFunction(llvm::Function*, std::string*) + 324   
9  lli                              0x000000000082d3ad
llvm::JIT::getPointerToFunction(llvm::Function*) + 157              
10 lli                              0x000000000082fe95
getPointerToNamedFunction + 53                                      
11 bugpoint.safe.bc-VthxOi.llc.s.so 0x00007f9c283ce4af
12 bugpoint.safe.bc-VthxOi.llc.s.so 0x00007f9c283ce111 logg + 513
Stack dump:
0.      Program arguments: /home/edwin/llvm-git/obj/Release/bin/lli -load
./bugpoint.safe.bc-VthxOi.llc.s.so bugpoint.test.bc-WkE2B9
Aborted



*** The following functions are being miscompiled:  logg_bb37 logg_bb39
<llc><gcc>You can reproduce the problem with the command line:         
  lli -load ./bugpoint.safe.bc-VthxOi.llc.s.so bugpoint.test.bc-WkE2B9 --debug
--exclude-dir .svn --verbose
-d/home/edwin/llvm-svn/llvm-commit/projects/llvm-test/MultiSource/Applications/ClamAV/dbdir
-r
/home/edwin/llvm-svn/llvm-commit/projects/llvm-test/MultiSource/Applications/ClamAV/inputs/clam.cab
/home/edwin/llvm-svn/llvm-commit/projects/llvm-test/MultiSource/Applications/ClamAV/inputs/clamdoc.tar.gz
/home/edwin/llvm-svn/llvm-commit/projects/llvm-test/MultiSource/Applications/ClamAV/inputs/clam.exe
/home/edwin/llvm-svn/llvm-commit/projects/llvm-test/MultiSource/Applications/ClamAV/inputs/clam.exe.bz2
/home/edwin/llvm-svn/llvm-commit/projects/llvm-test/MultiSource/Applications/ClamAV/inputs/clam-v2.rar
/home/edwin/llvm-svn/llvm-commit/projects/llvm-test/MultiSource/Applications/ClamAV/inputs/clam-v3.rar
/home/edwin/llvm-svn/llvm-commit/projects/llvm-test/MultiSource/Applications/ClamAV/inputs/clam.zip
/home/edwin/llvm-svn/llvm-commit/projects/llvm-test/MultiSource/Applications/ClamAV/inputs/README
/home/edwin/llvm-svn/llvm-commit/projects/llvm-test/MultiSource/Applications/ClamAV/inputs/rtf-test 
The shared object was created with:                                             
  llc -march=c bugpoint.safe.bc-VthxOi -o temporary.c                           
  gcc -xc temporary.c -O2 -o ./bugpoint.safe.bc-VthxOi.llc.s.so -fPIC -shared
-fno-strict-aliasing


-- 
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