On Fri, 2008-10-10 at 23:11 +0800, Ronghui Yu wrote:

> Hi, Jim,
> 
> Just let you know this information, it may be a bug, the index exceeds
> the boundary of the vector.



Is this 3.1 or 3.1.1? I suspect that this is something to do with the
reset() you are doing to be honest.

Jim



> 
> Breakpoint 8, tokLT (ts=0x8428088, k=2) at src/antlr3tokenstream.c:306
> 306             n       = 1;
> 2: i = <value optimized out>
> 1: *cts->tokens = {elements = 0x8428148, count = 5, factoryMade = 0,
> elementsSize = 8, free = 0xb7301850 <antlr3VectorFree>,
>   del = 0xb73018e0 <antlr3VectorDel>, get = 0xb7301990
> <antlr3VectorGet>, remove = 0xb73019b0 <antrl3VectorRemove>,
>   clear = 0xb73017e0 <antlr3VectorClear>, add = 0xb7301b10
> <antlr3VectorAdd>, set = 0xb7301b70 <antlr3VectorSet>,
>   size = 0xb7301be0 <antlr3VectorSize>}
> (gdb) c
> Continuing.
> 
> Breakpoint 9, tokLT (ts=0x8428088, k=2) at src/antlr3tokenstream.c:329
> 329             return
> (pANTLR3_COMMON_TOKEN)cts->tokens->elements[i].element;
> 2: i = 5
> 1: *cts->tokens = {elements = 0x8428148, count = 5, factoryMade = 0,
> elementsSize = 8, free = 0xb7301850 <antlr3VectorFree>,
>   del = 0xb73018e0 <antlr3VectorDel>, get = 0xb7301990
> <antlr3VectorGet>, remove = 0xb73019b0 <antrl3VectorRemove>,
>   clear = 0xb73017e0 <antlr3VectorClear>, add = 0xb7301b10
> <antlr3VectorAdd>, set = 0xb7301b70 <antlr3VectorSet>,
>   size = 0xb7301be0 <antlr3VectorSize>}
> (gdb)
> 
> 
> 
> 
> -- 
> 
> 
> Regards
> 
> Ronghui Yu
> 
> ================================
> 
> EMAIL:[EMAIL PROTECTED]
> 
> 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address

Reply via email to