[Bug pch/78508] valgrind error in gt_pch_note_object when compiling C++

2017-07-27 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78508

Martin Liška  changed:

   What|Removed |Added

 Resolution|FIXED   |DUPLICATE

--- Comment #5 from Martin Liška  ---
Dup as it's resolved by the same commit as mentioned PR.

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

[Bug pch/78508] valgrind error in gt_pch_note_object when compiling C++

2017-07-26 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78508

David Binderman  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #4 from David Binderman  ---
Problem seems to have gone away.

[Bug pch/78508] valgrind error in gt_pch_note_object when compiling C++

2017-01-13 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78508

--- Comment #3 from David Binderman  ---
Still broken, a couple of months later, in gcc dated 2017 Jan 13.

[Bug pch/78508] valgrind error in gt_pch_note_object when compiling C++

2016-11-24 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78508

--- Comment #2 from Martin Liška  ---
Minimal test-case:

enum { _ISdigit = 8 ? 3 << 8 : 8, _ISpunct };
struct A {
  static const short a = _ISpunct;
};

Reporting:

==85314== Invalid read of size 1
==85314==at 0x4C2B944: strlen (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==85314==by 0xB20BB6: gt_pch_note_object(void*, void*, void (*)(void*,
void*, void (*)(void*, void*), void*)) (ggc-common.c:285)
==85314==by 0xA3DADA: gt_pch_nx (vec.h:1128)
==85314==by 0xA3DADA: gt_pch_nx_vec_dw_attr_node_va_gc_(void*)
(gt-dwarf2out.h:908)
==85314==by 0xA3DB5E: gt_pch_nx_die_struct(void*) (gt-dwarf2out.h:680)
==85314==by 0xA3DB7A: gt_pch_nx_die_struct(void*) (gt-dwarf2out.h:682)
==85314==by 0xA3DB7A: gt_pch_nx_die_struct(void*) (gt-dwarf2out.h:682)
==85314==by 0xA31642: pch_nx (hash-traits.h:242)
==85314==by 0xA31642: gt_pch_nx (hash-table.h:1064)
==85314==by 0xA31642: gt_pch_nx_hash_table_decl_die_hasher_(void*)
(gt-dwarf2out.h:1021)
==85314==by 0xB213BD: gt_pch_save(_IO_FILE*) (ggc-common.c:437)
==85314==by 0x924955: c_common_write_pch() (c-pch.c:183)
==85314==by 0x770CC7: c_parse_final_cleanups() (decl2.c:4462)
==85314==by 0xDD100E: compile_file() (toplev.c:463)
==85314==by 0x65FCBB: do_compile (toplev.c:1983)
==85314==by 0x65FCBB: toplev::main(int, char**) (toplev.c:2117)
==85314==  Address 0x6362122 is not stack'd, malloc'd or (recently) free'd

[Bug pch/78508] valgrind error in gt_pch_note_object when compiling C++

2016-11-24 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78508

Martin Liška  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2016-11-24
 Ever confirmed|0   |1

--- Comment #1 from Martin Liška  ---
Confirmed, I'll try to reduce that, but I guess it would take ages. Let's see.