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

--- Comment #8 from Pawel Sikora <pluto at agmk dot net> 2011-01-16 00:38:34 
UTC ---
(In reply to comment #7)
> (In reply to comment #6)
> > 
> > looks like valgrind problem with sse42 opcode:
> > 
> 
> Disable SSE4 code to debug this.

i've removed the HAVE_SSE4 stuff from libcpp configures and now
valgrind reports following log for standard compilation:

==23474== Invalid read of size 8
==23474==    at 0xB43513: search_line_sse2 (lex.c:382)
==23474==    by 0xB4360E: _cpp_clean_line (lex.c:665)
==23474==    by 0xB44027: _cpp_get_fresh_line (lex.c:1884)
==23474==    by 0xB4580D: _cpp_lex_direct (lex.c:1949)
==23474==    by 0xB46686: _cpp_lex_token (lex.c:1823)
==23474==    by 0xB48CF7: cpp_get_token (macro.c:1240)
==23474==    by 0xB48F8F: cpp_get_token_with_location (macro.c:1352)
==23474==    by 0x4F9F82: c_lex_with_flags (c-lex.c:302)
==23474==    by 0x46382F: cp_lexer_get_preprocessor_token (parser.c:548)
==23474==    by 0x47C9AB: c_parse_file (parser.c:25095)
==23474==    by 0x4FDA74: c_common_parse_file (c-opts.c:1071)
==23474==    by 0x727973: toplev_main (toplev.c:579)
==23474==  Address 0x53128b8 is 0 bytes after a block of size 408 alloc'd
==23474==    at 0x4C25322: realloc (vg_replace_malloc.c:525)
==23474==    by 0xB6D49C: xrealloc (xmalloc.c:179)
==23474==    by 0xB37F5F: _cpp_convert_input (charset.c:1734)
==23474==    by 0xB402F2: read_file (files.c:648)
==23474==    by 0xB4150A: _cpp_stack_file (files.c:723)
==23474==    by 0xB38D60: do_include_common (directives.c:792)
==23474==    by 0xB3A260: _cpp_handle_directive (directives.c:491)
==23474==    by 0xB466A4: _cpp_lex_token (lex.c:1835)
==23474==    by 0xB48CF7: cpp_get_token (macro.c:1240)
==23474==    by 0xB48F8F: cpp_get_token_with_location (macro.c:1352)
==23474==    by 0x4F9F82: c_lex_with_flags (c-lex.c:302)
==23474==    by 0x46382F: cp_lexer_get_preprocessor_token (parser.c:548)
==23474== 
==23474== Invalid read of size 8
==23474==    at 0xB43529: search_line_sse2 (lex.c:394)
==23474==    by 0xB4360E: _cpp_clean_line (lex.c:665)
==23474==    by 0xB44027: _cpp_get_fresh_line (lex.c:1884)
==23474==    by 0xB4580D: _cpp_lex_direct (lex.c:1949)
==23474==    by 0xB46686: _cpp_lex_token (lex.c:1823)
==23474==    by 0xB48CF7: cpp_get_token (macro.c:1240)
==23474==    by 0xB48F8F: cpp_get_token_with_location (macro.c:1352)
==23474==    by 0x4F9F82: c_lex_with_flags (c-lex.c:302)
==23474==    by 0x46382F: cp_lexer_get_preprocessor_token (parser.c:548)
==23474==    by 0x47CA22: c_parse_file (parser.c:425)
==23474==    by 0x4FDA74: c_common_parse_file (c-opts.c:1071)
==23474==    by 0x727973: toplev_main (toplev.c:579)
==23474==  Address 0x531cd00 is 160 bytes inside a block of size 163 alloc'd
==23474==    at 0x4C25322: realloc (vg_replace_malloc.c:525)
==23474==    by 0xB6D49C: xrealloc (xmalloc.c:179)
==23474==    by 0xB37F5F: _cpp_convert_input (charset.c:1734)
==23474==    by 0xB402F2: read_file (files.c:648)
==23474==    by 0xB4150A: _cpp_stack_file (files.c:723)
==23474==    by 0xB38D60: do_include_common (directives.c:792)
==23474==    by 0xB3A260: _cpp_handle_directive (directives.c:491)
==23474==    by 0xB466A4: _cpp_lex_token (lex.c:1835)
==23474==    by 0xB48CF7: cpp_get_token (macro.c:1240)
==23474==    by 0xB48F8F: cpp_get_token_with_location (macro.c:1352)
==23474==    by 0x4F9F82: c_lex_with_flags (c-lex.c:302)
==23474==    by 0x46382F: cp_lexer_get_preprocessor_token (parser.c:548)
==23474==
==23474== Invalid read of size 8
==23474==    at 0xB43529: search_line_sse2 (lex.c:394)
==23474==    by 0xB4360E: _cpp_clean_line (lex.c:665)
==23474==    by 0xB43C02: _cpp_skip_block_comment (lex.c:922)
==23474==    by 0xB46319: _cpp_lex_direct (lex.c:2073)
==23474==    by 0xB46686: _cpp_lex_token (lex.c:1823)
==23474==    by 0xB384FA: check_eol (directives.c:222)
==23474==    by 0xB398A7: do_endif (directives.c:1998)
==23474==    by 0xB3A260: _cpp_handle_directive (directives.c:491)
==23474==    by 0xB466A4: _cpp_lex_token (lex.c:1835)
==23474==    by 0xB48CF7: cpp_get_token (macro.c:1240)
==23474==    by 0xB48F8F: cpp_get_token_with_location (macro.c:1352)
==23474==    by 0x4F9F82: c_lex_with_flags (c-lex.c:302)
==23474==  Address 0x555b6e8 is 12,536 bytes inside a block of size 12,543
alloc'd
==23474==    at 0x4C25322: realloc (vg_replace_malloc.c:525)
==23474==    by 0xB6D49C: xrealloc (xmalloc.c:179)
==23474==    by 0xB37F5F: _cpp_convert_input (charset.c:1734)
==23474==    by 0xB402F2: read_file (files.c:648)
==23474==    by 0xB4150A: _cpp_stack_file (files.c:723)
==23474==    by 0xB38D60: do_include_common (directives.c:792)
==23474==    by 0xB3A260: _cpp_handle_directive (directives.c:491)
==23474==    by 0xB466A4: _cpp_lex_token (lex.c:1835)
==23474==    by 0xB48CF7: cpp_get_token (macro.c:1240)
==23474==    by 0xB48F8F: cpp_get_token_with_location (macro.c:1352)
==23474==    by 0x4F9F82: c_lex_with_flags (c-lex.c:302)
==23474==    by 0x46382F: cp_lexer_get_preprocessor_token (parser.c:548)
==23474==
==23474== Invalid read of size 2
==23474==    at 0x436C63: tsubst (pt.c:10502)
==23474==    by 0x44262B: fixup_template_parm (pt.c:3879)
==23474==    by 0x4428F8: end_template_parm_list (pt.c:3918)
==23474==    by 0x477C37: cp_parser_template_parameter_list (parser.c:11188)
==23474==    by 0x477E09: cp_parser_type_parameter (parser.c:11445)
==23474==    by 0x477BFA: cp_parser_template_parameter_list (parser.c:11250)
==23474==    by 0x4794A2: cp_parser_template_declaration_after_export
(parser.c:19932)
==23474==    by 0x47C849: cp_parser_declaration (parser.c:9453)
==23474==    by 0x47B914: cp_parser_declaration_seq_opt (parser.c:9383)
==23474==    by 0x47BAB8: cp_parser_namespace_definition (parser.c:13930)
==23474==    by 0x47C7F7: cp_parser_declaration (parser.c:9485)
==23474==    by 0x47B914: cp_parser_declaration_seq_opt (parser.c:9383)
==23474==  Address 0x400000003 is not stack'd, malloc'd or (recently) free'd
==23474==
In file included from ./h/hdlVhdlArchitecture.hpp:6:0,
                 from hdlVhdlArchitecture.cpp:1:
./h/hdlHolderMapVectorAdapter.hpp:122:118: internal compiler error:
Segmentation fault

Reply via email to