public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/67292] New: valgrind error from cc1plus: search_line_sse2(unsigned char const*, unsigned char const*) (lex.c:380)
@ 2015-08-20 13:48 redi at gcc dot gnu.org
  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
  0 siblings, 2 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2015-08-20 13:48 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/67292] valgrind error from cc1plus: search_line_sse2(unsigned char const*, unsigned char const*) (lex.c:380)
  2015-08-20 13:48 [Bug c++/67292] New: valgrind error from cc1plus: search_line_sse2(unsigned char const*, unsigned char const*) (lex.c:380) redi at gcc dot gnu.org
@ 2015-08-20 13:50 ` redi at gcc dot gnu.org
  2015-08-20 15:56 ` [Bug preprocessor/67292] " pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2015-08-20 13:50 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67292

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Oops I forgot the command:

./cc1plus -std=c++11 -o /dev/null - -quiet <<< 'class k{int k{4};};'


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug preprocessor/67292] valgrind error from cc1plus: search_line_sse2(unsigned char const*, unsigned char const*) (lex.c:380)
  2015-08-20 13:48 [Bug c++/67292] New: valgrind error from cc1plus: search_line_sse2(unsigned char const*, unsigned char const*) (lex.c:380) redi at gcc dot gnu.org
  2015-08-20 13:50 ` [Bug c++/67292] " redi at gcc dot gnu.org
@ 2015-08-20 15:56 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2015-08-20 15:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67292

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 45386.

*** This bug has been marked as a duplicate of bug 45386 ***


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-08-20 15:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-20 13:48 [Bug c++/67292] New: valgrind error from cc1plus: search_line_sse2(unsigned char const*, unsigned char const*) (lex.c:380) redi at gcc dot gnu.org
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

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).