This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug preprocessor/47311] [C++0x] ICE in tsubst @cp/pt.c:10502


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47311

--- Comment #12 from Pawel Sikora <pluto at agmk dot net> 2011-01-16 01:36:29 UTC ---
(In reply to comment #11)
> (In reply to comment #9)
> > without SSE2 vectorized lexer:
> > 
> > ==2012== Invalid read of size 8
> > ==2012==    at 0xB43064: search_line_acc_char (lex.c:263)
> 
> That is probably not causing the crash.

0x0000000000b43064 in search_line_acc_char (s=<value optimized out>, end=<value
optimized out>) at ../../libcpp/lex.c:263
263           val = *++p;
(gdb) p p
$1 = (const word_type *) 0x531cd00

(gdb) up
#1  0x0000000000b434ff in _cpp_clean_line (pfile=0x521d260) at
../../libcpp/lex.c:669
669               s = search_line_fast (s, buffer->rlimit);

(gdb) p buffer->rlimit
$2 = (const unsigned char *) 0x531cd02 "\n"

(gdb) down
#0  0x0000000000b43064 in search_line_acc_char (s=<value optimized out>,
end=<value optimized out>) at ../../libcpp/lex.c:263
263           val = *++p;

(gdb) disassemble $rip,+16
Dump of assembler code from 0xb43064 to 0xb43074:
=> 0x0000000000b43064 <search_line_acc_char+100>:       mov    (%rsi),%rax

this is 6-bytes past-the-end access.

> For your preprocessed source from comment #3 I get:
> $ g++ hdlVhdlArchitecture.ii -std=c++0x
> In file included from ./h/hdlVhdlArchitecture.hpp:6:0,
>                  from hdlVhdlArchitecture.cpp:1:
> ./h/hdlHolderMapVectorAdapter.hpp:122:118: internal compiler error: tree check:
> accessed elt 2 of tree_vec with 1 elts in tsubst, at cp/pt.c:10500
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <http://gcc.gnu.org/bugs.html> for instructions.
> 
> (r168843, x86_64-linux, yes,rtl,df checking)

hmm, i must increase the checking level in my build...


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]