[cfe-dev] A Crash about PCHReader

Douglas Gregor dgregor at apple.com
Thu Jan 28 22:37:52 PST 2010


On Jan 28, 2010, at 10:34 PM, 章磊 <ioripolo at gmail.com> wrote:

> I intend to see how libIndex works by using index-test, but I  
> encounter a crash when i practice the example from the CFE internal  
> manual.

We recently removed index-test from Clang, since most clients should  
just use the C API (CIndex). Perhaps you had an old index-test from a  
previous build?

> Here is the description:
>
> index-test: /home/polo/llvm/include/llvm/ADT/SmallVector.h:152: T&  
> llvm::SmallVectorTemplateCommon<T>::operator[](unsigned int) [with T  
> = long long unsigned int]: Assertion `begin() + idx < end()' failed.
> 0  index-test 0x08576d9e
> 1  index-test 0x08576c13
> 2             0x00604400 __kernel_sigreturn + 0
> 3  libc.so.6  0x00163932 abort + 386
> 4  libc.so.6  0x00159648 __assert_fail + 248
> 5  index-test 0x080b7f3e
> 6  index-test 0x080a987f
> 7  index-test 0x080a9e1c
> 8  index-test 0x0807f7a6
> 9  index-test 0x0804d075 main + 524
> 10 libc.so.6  0x0014cb56 __libc_start_main + 230
> 11 index-test 0x0804c5f1
> Stack dump:
> 0.    Program arguments: index-test t1.ast
> Aborted
>
> it seems to be a problem about the case  
> VERSION_CONTROL_BRANCH_REVISION.
>
> -- 
> Best regards!
>
> Lei Zhang
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list