public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug pch/64908] New: [5 Regression] pch broken
@ 2015-02-02 19:20 trippels at gcc dot gnu.org
  2015-02-02 19:32 ` [Bug pch/64908] " trippels at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-02-02 19:20 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 64908
           Summary: [5 Regression] pch broken
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: pch
          Assignee: unassigned at gcc dot gnu.org
          Reporter: trippels at gcc dot gnu.org

With a checking=release PGO/LTO bootstrapped compiler I get:

arkus@x4 /tmp % touch foo.h
markus@x4 /tmp % g++ -c foo.h
foo.h:1:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Valgrind shows:

==7155== Syscall param write(buf) points to uninitialised byte(s)
==7155==    at 0x4F8A370: __write_nocancel (in /lib64/libc-2.20.90.so)
==7155==    by 0x4F2B3EE: _IO_file_write@@GLIBC_2.2.5 (in
/lib64/libc-2.20.90.so)
==7155==    by 0x4F2A9F2: new_do_write (in /lib64/libc-2.20.90.so)
==7155==    by 0x4F2C2F0: _IO_do_write@@GLIBC_2.2.5 (in /lib64/libc-2.20.90.so)
==7155==    by 0x4F2BA66: _IO_file_xsputn@@GLIBC_2.2.5 (in
/lib64/libc-2.20.90.so)
==7155==    by 0x4F2167A: fwrite (in /lib64/libc-2.20.90.so)
==7155==    by 0x88647C: ggc_pch_write_object(ggc_pch_data*, _IO_FILE*, void*,
void*, unsigned long, bool) (ggc-page.c:2451)
==7155==    by 0xA2C1E0: gt_pch_save(_IO_FILE*) (ggc-common.c:566)
==7155==    by 0x861FEC: c_common_write_pch() (c-pch.c:197)
==7155==    by 0x6E4E8C: cp_write_global_declarations() (decl2.c:4400)
==7155==    by 0xC96DD3: compile_file() (toplev.c:608)
==7155==    by 0x5F84EE: do_compile (toplev.c:2063)
==7155==    by 0x5F84EE: toplev::main(int, char**) (toplev.c:2161)
==7155==  Address 0x40492ad is not stack'd, malloc'd or (recently) free'd
==7155==  Uninitialised value was created by a heap allocation
==7155==    at 0x4028C70: malloc (vg_replace_malloc.c:296)
==7155==    by 0x135C257: xmalloc (xmalloc.c:147)
==7155==    by 0x132DC8A: _cpp_init_tokenrun (lex.c:2008)
==7155==    by 0x132C28A: cpp_create_reader(c_lang, ht*, line_maps*)
(init.c:238)
==7155==    by 0x85F85C: c_common_init_options(unsigned int,
cl_decoded_option*) (c-opts.c:234)
==7155==    by 0x5F7F9D: toplev::main(int, char**) (toplev.c:2136)
==7155==    by 0x5F9199: main (main.c:39


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

* [Bug pch/64908] [5 Regression] pch broken
  2015-02-02 19:20 [Bug pch/64908] New: [5 Regression] pch broken trippels at gcc dot gnu.org
@ 2015-02-02 19:32 ` trippels at gcc dot gnu.org
  2015-02-07 10:53 ` trippels at gcc dot gnu.org
  2015-02-07 14:06 ` hjl.tools at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-02-02 19:32 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
This is the actual crash:

==15192== Invalid read of size 1
==15192==    at 0xCBB825: ggc_get_size(void const*) (in
/usr/libexec/gcc/x86_64-pc-linux-gnu/5.0.0/cc1plus)
==15192==    by 0xBE7A71: gt_pch_note_object(void*, void*, void (*)(void*,
void*, void (*)(void*, void*), void*)) (in
/usr/libexec/gcc/x86_64-pc-linux-gnu/5.0.0/cc1plus)
==15192==    by 0xBE7D4B: gt_pch_nx_cpp_macro(void*) (in
/usr/libexec/gcc/x86_64-pc-linux-gnu/5.0.0/cc1plus)
==15192==    by 0xC1EDFF: gt_pch_nx_lang_tree_node(void*) (in
/usr/libexec/gcc/x86_64-pc-linux-gnu/5.0.0/cc1plus)
==15192==    by 0xB728E0: gt_pch_nx_string_pool_data(void*) (in
/usr/libexec/gcc/x86_64-pc-linux-gnu/5.0.0/cc1plus)
==15192==    by 0xBE7436: gt_pch_save(_IO_FILE*) (in
/usr/libexec/gcc/x86_64-pc-linux-gnu/5.0.0/cc1plus)
==15192==    by 0xC10BBB: c_common_write_pch() (in
/usr/libexec/gcc/x86_64-pc-linux-gnu/5.0.0/cc1plus)
==15192==    by 0x5C2817: ??? (in
/usr/libexec/gcc/x86_64-pc-linux-gnu/5.0.0/cc1plus)
==15192==    by 0xCB561F: compile_file() [clone .lto_priv.2265] (in
/usr/libexec/gcc/x86_64-pc-linux-gnu/5.0.0/cc1plus)
==15192==    by 0xC2D8FD: toplev::main(int, char**) (in
/usr/libexec/gcc/x86_64-pc-linux-gnu/5.0.0/cc1plus)
==15192==    by 0xC2C8BC: main (in
/usr/libexec/gcc/x86_64-pc-linux-gnu/5.0.0/cc1plus)
==15192==  Address 0x2e is not stack'd, malloc'd or (recently) free'd


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

* [Bug pch/64908] [5 Regression] pch broken
  2015-02-02 19:20 [Bug pch/64908] New: [5 Regression] pch broken trippels at gcc dot gnu.org
  2015-02-02 19:32 ` [Bug pch/64908] " trippels at gcc dot gnu.org
@ 2015-02-07 10:53 ` trippels at gcc dot gnu.org
  2015-02-07 14:06 ` hjl.tools at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-02-07 10:53 UTC (permalink / raw)
  To: gcc-bugs

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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-02-07
   Target Milestone|---                         |5.0
     Ever confirmed|0                           |1


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

* [Bug pch/64908] [5 Regression] pch broken
  2015-02-02 19:20 [Bug pch/64908] New: [5 Regression] pch broken trippels at gcc dot gnu.org
  2015-02-02 19:32 ` [Bug pch/64908] " trippels at gcc dot gnu.org
  2015-02-07 10:53 ` trippels at gcc dot gnu.org
@ 2015-02-07 14:06 ` hjl.tools at gmail dot com
  2 siblings, 0 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2015-02-07 14:06 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

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

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
Dup.

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


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

end of thread, other threads:[~2015-02-07 14:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-02 19:20 [Bug pch/64908] New: [5 Regression] pch broken trippels at gcc dot gnu.org
2015-02-02 19:32 ` [Bug pch/64908] " trippels at gcc dot gnu.org
2015-02-07 10:53 ` trippels at gcc dot gnu.org
2015-02-07 14:06 ` hjl.tools at gmail dot com

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