public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.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	[thread overview]
Message-ID: <bug-67292-4@http.gcc.gnu.org/bugzilla/> (raw)

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==


             reply	other threads:[~2015-08-20 13:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-20 13:48 redi at gcc dot gnu.org [this message]
2015-08-20 13:50 ` [Bug c++/67292] " redi at gcc dot gnu.org
2015-08-20 15:56 ` [Bug preprocessor/67292] " pinskia at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-67292-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).