A Crash about PCHReader

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

A Crash about PCHReader

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

_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: A Crash about PCHReader

Douglas Gregor

On Jan 28, 2010, at 10:34 PM, 章磊 <[hidden email]> 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
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: A Crash about PCHReader

Lei Zhang
Thx, it works well in c-index-test. Sorry for bothering.

2010/1/29 Douglas Gregor <[hidden email]>

On Jan 28, 2010, at 10:34 PM, 章磊 <[hidden email]> 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
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev



--
Best regards!

Lei Zhang

_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev