From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 116886 invoked by alias); 20 Aug 2015 13:48:44 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 116779 invoked by uid 48); 20 Aug 2015 13:48:40 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/67292] New: valgrind error from cc1plus: search_line_sse2(unsigned char const*, unsigned char const*) (lex.c:380) Date: Thu, 20 Aug 2015 13:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.9.4 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget cf_gccbuild Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-08/txt/msg01429.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67292 Bug ID: 67292 Summary: valgrind error from cc1plus: search_line_sse2(unsigned char const*, unsigned char const*) (lex.c:380) Product: gcc Version: 4.9.4 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- Host: i686-pc-linux-gnu Target: i686-pc-linux-gnu Build: i686-pc-linux-gnu ==25450== Memcheck, a memory error detector ==25450== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al. ==25450== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info ==25450== Command: ./cc1plus -std=c++11 -o foo.s - ==25450== ==25450== Invalid read of size 16 ==25450== at 0x8A022A4: search_line_sse2(unsigned char const*, unsigned char const*) (lex.c:380) ==25450== by 0x8A02A1B: _cpp_clean_line (lex.c:843) ==25450== by 0x8A02DCC: _cpp_get_fresh_line.part.6 (lex.c:2209) ==25450== by 0x8A04DEC: _cpp_get_fresh_line (lex.c:2197) ==25450== by 0x8A04DEC: _cpp_lex_direct (lex.c:2274) ==25450== by 0x8A05B6D: _cpp_lex_token (lex.c:2148) ==25450== by 0x8A09FF0: cpp_get_token_1(cpp_reader*, unsigned int*) (macro.c:2359) ==25450== by 0x82771FA: c_lex_with_flags(tree_node**, unsigned int*, unsigned char*, int) (c-lex.c:302) ==25450== by 0x81AD351: cp_lexer_get_preprocessor_token(cp_lexer*, cp_token*) (parser.c:761) ==25450== by 0x81D9703: cp_parser_initial_pragma (parser.c:31423) ==25450== by 0x81D9703: cp_lexer_new_main (parser.c:631) ==25450== by 0x81D9703: cp_parser_new (parser.c:3407) ==25450== by 0x81D9703: c_parse_file() (parser.c:31694) ==25450== by 0x827BF69: c_common_parse_file() (c-opts.c:1067) ==25450== by 0x855B36A: compile_file() (toplev.c:548) ==25450== by 0x855CFF5: do_compile (toplev.c:1926) ==25450== by 0x855CFF5: toplev_main(int, char**) (toplev.c:2002) ==25450== Address 0x418b2a0 is 8 bytes before a block of size 36 alloc'd ==25450== at 0x400720D: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==25450== by 0x8A2FA47: xmalloc (xmalloc.c:147) ==25450== by 0x89FF7D3: read_file_guts (files.c:695) ==25450== by 0x89FF7D3: read_file(cpp_reader*, _cpp_file*) (files.c:751) ==25450== by 0x8A00563: should_stack_file (files.c:796) ==25450== by 0x8A00563: _cpp_stack_file (files.c:874) ==25450== by 0x8A0208C: cpp_read_main_file(cpp_reader*, char const*) (init.c:617) ==25450== by 0x827B7AF: c_common_post_options(char const**) (c-opts.c:993) ==25450== by 0x855C891: process_options (toplev.c:1246) ==25450== by 0x855C891: do_compile (toplev.c:1895) ==25450== by 0x855C891: toplev_main(int, char**) (toplev.c:2002) ==25450== by 0x89E04EA: main (main.c:36) ==25450==