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

--- Comment #1 from Török Edwin <edwintorok at gmail dot com> 2011-08-21 
15:52:33 UTC ---
And here is a stacktrace from a local GCC build so you have line numbers:
$ valgrind --trace-children=yes
/home/edwin/gcc-4.6-4.6.1/src/host-x86_64-linux-gnu/gcc/xgcc
-B/home/edwin/gcc-4.6-4.6.1/src/host-x86_64-linux-gnu/gcc /tmp/x.cpp -E
>/dev/null
==2671== Memcheck, a memory error detector
==2671== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==2671== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info
==2671== Command: /home/edwin/gcc-4.6-4.6.1/src/host-x86_64-linux-gnu/gcc/xgcc
-B/home/edwin/gcc-4.6-4.6.1/src/host-x86_64-linux-gnu/gcc /tmp/x.cpp -E
==2671== 
==2675== Memcheck, a memory error detector
==2675== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==2675== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info
==2675== Command:
/home/edwin/gcc-4.6-4.6.1/src/host-x86_64-linux-gnu/gcc/cc1plus -E -quiet
-iprefix
/home/edwin/gcc-4.6-4.6.1/src/host-x86_64-linux-gnu/gcc/../lib/gcc/x86_64-linux-gnu/4.6.1/
-isystem /home/edwin/gcc-4.6-4.6.1/src/host-x86_64-linux-gnu/gcc/include
-isystem /home/edwin/gcc-4.6-4.6.1/src/host-x86_64-linux-gnu/gcc/include-fixed
-D_GNU_SOURCE /tmp/x.cpp -mtune=generic -march=x86-64
==2675== 
==2675== Invalid read of size 8
==2675==    at 0x11D71C9: search_line_sse2 (lex.c:394)
==2675==    by 0x11D7361: _cpp_clean_line (lex.c:666)
==2675==    by 0x11D7D37: _cpp_get_fresh_line (lex.c:1887)
==2675==    by 0x11D94B1: _cpp_lex_direct (lex.c:1952)
==2675==    by 0x11DA2F6: _cpp_lex_token (lex.c:1826)
==2675==    by 0x11DC9F7: cpp_get_token (macro.c:1240)
==2675==    by 0x11DCC8F: cpp_get_token_with_location (macro.c:1352)
==2675==    by 0x6C87A4: preprocess_file (c-ppoutput.c:175)
==2675==    by 0x6C6D2B: c_common_init (c-opts.c:1057)
==2675==    by 0x5C7668: cxx_init (lex.c:254)
==2675==    by 0xA3204C: toplev_main (toplev.c:1742)
==2675==    by 0x3C7141EEAC: (below main) (libc-start.c:228)
==2675==  Address 0x4cec1f0 is 7,232 bytes inside a block of size 7,238 alloc'd
==2675==    at 0x4A07882: realloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==2675==    by 0x120070C: xrealloc (xmalloc.c:179)
==2675==    by 0x11CC03B: _cpp_convert_input (charset.c:1734)
==2675==    by 0x11D4962: read_file (files.c:648)
==2675==    by 0x11D535A: _cpp_stack_file (files.c:723)
==2675==    by 0x11D6C35: cpp_read_main_file (init.c:570)
==2675==    by 0x6C64EA: c_common_post_options (c-opts.c:1016)
==2675==    by 0xA31B30: toplev_main (toplev.c:1283)
==2675==    by 0x3C7141EEAC: (below main) (libc-start.c:228)
==2675== 
==2675== Invalid read of size 8
==2675==    at 0x11D71B3: search_line_sse2 (lex.c:382)
==2675==    by 0x11D7361: _cpp_clean_line (lex.c:666)
==2675==    by 0x11D7D37: _cpp_get_fresh_line (lex.c:1887)
==2675==    by 0x11D94B1: _cpp_lex_direct (lex.c:1952)
==2675==    by 0x11DA2F6: _cpp_lex_token (lex.c:1826)
==2675==    by 0x11DC9F7: cpp_get_token (macro.c:1240)
==2675==    by 0x11DCC8F: cpp_get_token_with_location (macro.c:1352)
==2675==    by 0x6C87A4: preprocess_file (c-ppoutput.c:175)
==2675==    by 0x6C6D2B: c_common_init (c-opts.c:1057)
==2675==    by 0x5C7668: cxx_init (lex.c:254)
==2675==    by 0xA3204C: toplev_main (toplev.c:1742)
==2675==    by 0x3C7141EEAC: (below main) (libc-start.c:228)
==2675==  Address 0x4cec1f0 is 7,232 bytes inside a block of size 7,238 alloc'd
==2675==    at 0x4A07882: realloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==2675==    by 0x120070C: xrealloc (xmalloc.c:179)
==2675==    by 0x11CC03B: _cpp_convert_input (charset.c:1734)
==2675==    by 0x11D4962: read_file (files.c:648)
==2675==    by 0x11D535A: _cpp_stack_file (files.c:723)
==2675==    by 0x11D6C35: cpp_read_main_file (init.c:570)
==2675==    by 0x6C64EA: c_common_post_options (c-opts.c:1016)
==2675==    by 0xA31B30: toplev_main (toplev.c:1283)
==2675==    by 0x3C7141EEAC: (below main) (libc-start.c:228)

Reply via email to