[cfe-dev] A Crash about PCHReader

章磊 ioripolo at gmail.com
Thu Jan 28 22:34:26 PST 2010


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.

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100129/2dbefdd7/attachment.html>


More information about the cfe-dev mailing list