[Bug c++/49852] [4.7 Regression] cp-demangle.c segfault

2011-08-02 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49852

--- Comment #8 from Richard Guenther rguenth at gcc dot gnu.org 2011-08-02 
14:32:03 UTC ---
Fixed?


[Bug c++/49852] [4.7 Regression] cp-demangle.c segfault

2011-08-02 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49852

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

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED

--- Comment #9 from H.J. Lu hjl.tools at gmail dot com 2011-08-02 15:43:06 
UTC ---
Fixed by

http://gcc.gnu.org/ml/gcc-cvs/2011-07/msg01064.html


[Bug c++/49852] [4.7 Regression] cp-demangle.c segfault

2011-08-01 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49852

Richard Guenther rguenth at gcc dot gnu.org changed:

   What|Removed |Added

   Target Milestone|--- |4.7.0


[Bug c++/49852] [4.7 Regression] cp-demangle.c segfault

2011-07-26 Thread jan.kratochvil at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49852

--- Comment #1 from Jan Kratochvil jan.kratochvil at redhat dot com 
2011-07-26 14:40:32 UTC ---
78de04b4b6af769e72b723db729459736a67bc33 is the first bad commit
commit 78de04b4b6af769e72b723db729459736a67bc33
Author: DJ Delorie d...@delorie.com
Date:   Wed Jun 22 19:13:31 2011 +

merge from gcc

=

+2011-06-20  Jason Merrill  ja...@redhat.com
+
+   PR c++/37089
+   * cp-demangle.c (d_print_comp): Handle reference smashing.
+   * testsuite/demangle-expected: Test it.


[Bug c++/49852] [4.7 Regression] cp-demangle.c segfault

2011-07-26 Thread ian at airs dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49852

Ian Lance Taylor ian at airs dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 CC||ian at airs dot com
 Resolution||FIXED

--- Comment #2 from Ian Lance Taylor ian at airs dot com 2011-07-26 15:24:28 
UTC ---
Already fixed.

I think there is a compiler problem in that this symbol was generated in the
first place.


[Bug c++/49852] [4.7 Regression] cp-demangle.c segfault

2011-07-26 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49852

--- Comment #3 from H.J. Lu hjl.tools at gmail dot com 2011-07-26 15:36:56 
UTC ---
(In reply to comment #1)
 78de04b4b6af769e72b723db729459736a67bc33 is the first bad commit
 commit 78de04b4b6af769e72b723db729459736a67bc33
 Author: DJ Delorie d...@delorie.com
 Date:   Wed Jun 22 19:13:31 2011 +
 
 merge from gcc
 
 =
 
 +2011-06-20  Jason Merrill  ja...@redhat.com
 +
 +   PR c++/37089
 +   * cp-demangle.c (d_print_comp): Handle reference smashing.
 +   * testsuite/demangle-expected: Test it.

It isn't fixed as of Tue Jul 26 08:36:39 PDT 2011. I still
got

[hjl@gnu-6 binutils]$ ./cxxfilt _ZSt10_ConstructI10CellBorderIS0_EEvPT_DpOT0_
Segmentation fault (core dumped)
[hjl@gnu-6 binutils]$


[Bug c++/49852] [4.7 Regression] cp-demangle.c segfault

2011-07-26 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49852

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

   What|Removed |Added

 Status|RESOLVED|REOPENED
   Last reconfirmed||2011.07.26 15:38:53
 Resolution|FIXED   |
 Ever Confirmed|0   |1

--- Comment #4 from H.J. Lu hjl.tools at gmail dot com 2011-07-26 15:38:53 
UTC ---
(gdb) r _ZSt10_ConstructI10CellBorderIS0_EEvPT_DpOT0_
Starting program:
/export/build/gnu/binutils/build-x86_64-linux/binutils/cxxfilt
_ZSt10_ConstructI10CellBorderIS0_EEvPT_DpOT0_

Program received signal SIGSEGV, Segmentation fault.
0x004c61fd in d_print_comp (dpi=0x7fffd100, options=267, 
dc=0x7fffd508)
at /export/gnu/import/git/binutils/libiberty/cp-demangle.c:3899
3899if (sub-type == DEMANGLE_COMPONENT_REFERENCE
(gdb) bt
#0  0x004c61fd in d_print_comp (dpi=0x7fffd100, options=267, 
dc=0x7fffd508)
at /export/gnu/import/git/binutils/libiberty/cp-demangle.c:3899
#1  0x004c5586 in d_print_subexpr (dpi=0x7fffd100, options=267, 
dc=0x7fffd508)
at /export/gnu/import/git/binutils/libiberty/cp-demangle.c:3554
#2  0x004c74ed in d_print_comp (dpi=0x7fffd100, options=267, 
dc=0x7fffd520)
at /export/gnu/import/git/binutils/libiberty/cp-demangle.c:4393
#3  0x004c690a in d_print_comp (dpi=0x7fffd100, options=267, 
dc=0x7fffd538)
at /export/gnu/import/git/binutils/libiberty/cp-demangle.c:4106
#4  0x004c69a3 in d_print_comp (dpi=0x7fffd100, options=267, 
dc=0x7fffd4d8)
at /export/gnu/import/git/binutils/libiberty/cp-demangle.c:4118
#5  0x004c7f8a in d_print_function_type (dpi=0x7fffd100, 
options=267, dc=0x7fffd550, mods=0x7fffcf80)
at /export/gnu/import/git/binutils/libiberty/cp-demangle.c:4728
#6  0x004c6552 in d_print_comp (dpi=0x7fffd100, options=267, 
dc=0x7fffd550)
at /export/gnu/import/git/binutils/libiberty/cp-demangle.c:3991
#7  0x004c5a30 in d_print_comp (dpi=0x7fffd100, options=267, 
dc=0x7fffd568)
---Type return to continue, or q return to quit---
at /export/gnu/import/git/binutils/libiberty/cp-demangle.c:3683
#8  0x004c5258 in cplus_demangle_print_callback (options=267, 
dc=0x7fffd568, callback=0x4c4f3b d_growable_string_callback_adapter, 
opaque=0x7fffdd50)
at /export/gnu/import/git/binutils/libiberty/cp-demangle.c:3402
#9  0x004c86e0 in d_demangle_callback (
mangled=0x7fffe324 _ZSt10_ConstructI10CellBorderIS0_EEvPT_DpOT0_, 
options=267, callback=0x4c4f3b d_growable_string_callback_adapter, 
opaque=0x7fffdd50)
at /export/gnu/import/git/binutils/libiberty/cp-demangle.c:4961
#10 0x004c8735 in d_demangle (
mangled=0x7fffe324 _ZSt10_ConstructI10CellBorderIS0_EEvPT_DpOT0_, 
options=267, palc=0x7fffdda8)
at /export/gnu/import/git/binutils/libiberty/cp-demangle.c:4982
#11 0x004c879f in cplus_demangle_v3 (
mangled=0x7fffe324 _ZSt10_ConstructI10CellBorderIS0_EEvPT_DpOT0_, 
options=267)
at /export/gnu/import/git/binutils/libiberty/cp-demangle.c:5139
#12 0x004b85f1 in cplus_demangle (
mangled=0x7fffe324 _ZSt10_ConstructI10CellBorderIS0_EEvPT_DpOT0_, 
options=11) at /export/gnu/import/git/binutils/libiberty/cplus-dem.c:858
#13 0x004023b4 in demangle_it (
mangled_name=0x7fffe324
_ZSt10_ConstructI10CellBorderIS0_EEvPT_DpOT0_)---Type return to continue,
or q return to quit---
 at /export/gnu/import/git/binutils/binutils/cxxfilt.c:63
#14 0x0040275d in main (argc=2, argv=0x7fffdfa8)
at /export/gnu/import/git/binutils/binutils/cxxfilt.c:227
(gdb) p sub
$1 = (const struct demangle_component *) 0x0
(gdb)


[Bug c++/49852] [4.7 Regression] cp-demangle.c segfault

2011-07-26 Thread jan.kratochvil at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49852

--- Comment #5 from Jan Kratochvil jan.kratochvil at redhat dot com 
2011-07-26 15:40:23 UTC ---
Patch committed: Fix demangler crash
http://gcc.gnu.org/ml/gcc-patches/2011-07/msg02263.html
From: Ian Lance Taylor iant at google dot com

DJ's script will merge it.


[Bug c++/49852] [4.7 Regression] cp-demangle.c segfault

2011-07-26 Thread j at bitron dot ch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49852

--- Comment #6 from Jürg Billeter j at bitron dot ch 2011-07-26 15:43:11 UTC 
---
It works here now, both, just calling cxxfilt and the full ld command from
libreoffice. Thanks for the quick fix. For some reason, 'make' didn't rebuild
libbfd after updating cp-mangle.c. After 'make clean' it looks all fine,
though.


[Bug c++/49852] [4.7 Regression] cp-demangle.c segfault

2011-07-26 Thread hjl.tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49852

--- Comment #7 from H.J. Lu hjl.tools at gmail dot com 2011-07-26 16:27:39 
UTC ---
On Linux/ia32, revision 176793 gave:

FAIL at line 4023: unknown demangling style
_ZSt10_ConstructI10CellBorderIS0_EEvPT_DpOT0_
FAIL at line 4027: unknown demangling style yz.qrs
FAIL at line 4031: unknown demangling style oper.+
FAIL at line 4035: unknown demangling style yz.qrs
FAIL at line 4039: unknown demangling style yz.qrs.tuv
FAIL at line 4042: unknown demangling style yz.qrs.tuv
FAIL at line 4045: unknown demangling style yz.qrs.tuv
FAIL at line 4049: unknown demangling style yz.qrs.tuv
FAIL at line 4053: unknown demangling style x_E
FAIL at line 4056: unknown demangling style x.m1
FAIL at line 4059: unknown demangling style x.m3
FAIL at line 4062: unknown demangling style x.y.m2
FAIL at line 4066: unknown demangling style x.y.z.r
FAIL at line 4070: unknown demangling style x.y.j
FAIL at line 4074: unknown demangling style x.m3
FAIL at line 4078: unknown demangling style p'Elab_Body
FAIL at line 4082: unknown demangling style p'Elab_Spec
FAIL at line 4086: unknown demangling style p.taskobj
FAIL at line 4090: unknown demangling style p.taskobj.f1
FAIL at line 4093: unknown demangling style prot.lock.get
FAIL at line 4096: unknown demangling style prot.lock.get
FAIL at line 4099: unknown demangling style prot.lock.get.sub
FAIL at line 4102: unknown demangling style prot.lock.set
FAIL at line 4106: unknown demangling style prot.lock.set
FAIL at line 4109: unknown demangling style prot.lock.update
FAIL at line 4113: unknown demangling style prot.lock.update
FAIL at line 4116: unknown demangling style
gnat.sockets.sockets_library_controller.Finalize
FAIL at line 4120: unknown demangling style
system.partition_interface.racw_stub_type.Adjust
FAIL at line 4123: unknown demangling style
gnat.wide_wide_string_split.slice_set'Read
FAIL at line 4126: unknown demangling style
ada.real_time.timing_events.events.list'Write
FAIL at line 4129: unknown demangling style
system.finalization_root.root_controlled'Input
FAIL at line 4133: unknown demangling style
ada.finalization.limited_controlled'Output
FAIL at line 4136: unknown demangling style ada.synchronous_task_control'Size
FAIL at line 4139: unknown demangling style
ada.real_time.timing_events.events'Alignment
FAIL at line 4144: unknown demangling style system.finalization_root.:=
FAIL at line 4149: unknown demangling style DFA
FAIL at line 4152: unknown demangling style
Psi::VariantDetail::SelectVisitorResultVariantTest::TestVisit::test_method()::{lambda(char
const*)#2}, VariantTest::TestVisit::test_method()::{lambda(char)#3},
VariantTest::TestVisit::test_method()::{lambda(Psi::None)#1}::type
Psi::Variantchar, char
const*::visitVariantTest::TestVisit::test_method()::{lambda(char const*)#2},
VariantTest::TestVisit::test_method()::{lambda(char)#3},
VariantTest::TestVisit::test_method()::{lambda(Psi::None)#1}((VariantTest::TestVisit::test_method()::{lambda(Psi::None)#1})...)

Revision 176790 is OK.