* [Bug c++/43838] Incorrect output from abi::__cxa_demangle
2010-04-21 18:14 [Bug c++/43838] New: Incorrect output from abi::__cxa_demangle slawomir at ezono dot com
@ 2010-04-21 18:16 ` slawomir at ezono dot com
2010-05-24 21:47 ` [Bug libstdc++/43838] " paolo dot carlini at oracle dot com
` (14 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: slawomir at ezono dot com @ 2010-04-21 18:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from slawomir at ezono dot com 2010-04-21 18:15 -------
Created an attachment (id=20456)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20456&action=view)
Preprocessed source of example program
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43838
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug libstdc++/43838] Incorrect output from abi::__cxa_demangle
2010-04-21 18:14 [Bug c++/43838] New: Incorrect output from abi::__cxa_demangle slawomir at ezono dot com
2010-04-21 18:16 ` [Bug c++/43838] " slawomir at ezono dot com
@ 2010-05-24 21:47 ` paolo dot carlini at oracle dot com
2010-06-08 17:55 ` slawomir at ezono dot com
` (13 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-05-24 21:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from paolo dot carlini at oracle dot com 2010-05-24 21:47 -------
Can you please provide a shorter, self-contained (no includes), testcase?
Thanks in advance. CC-ing Ian...
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |iant at google dot com
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43838
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug libstdc++/43838] Incorrect output from abi::__cxa_demangle
2010-04-21 18:14 [Bug c++/43838] New: Incorrect output from abi::__cxa_demangle slawomir at ezono dot com
2010-04-21 18:16 ` [Bug c++/43838] " slawomir at ezono dot com
2010-05-24 21:47 ` [Bug libstdc++/43838] " paolo dot carlini at oracle dot com
@ 2010-06-08 17:55 ` slawomir at ezono dot com
2010-06-08 17:57 ` paolo dot carlini at oracle dot com
` (12 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: slawomir at ezono dot com @ 2010-06-08 17:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from slawomir at ezono dot com 2010-06-08 17:55 -------
Created an attachment (id=20869)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20869&action=view)
simpler example
Preprocessed source of simpler program.
The only #include used was <typeinfo> which is needed in order to compile with
g++
--
slawomir at ezono dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #20456|0 |1
is obsolete| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43838
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug libstdc++/43838] Incorrect output from abi::__cxa_demangle
2010-04-21 18:14 [Bug c++/43838] New: Incorrect output from abi::__cxa_demangle slawomir at ezono dot com
` (2 preceding siblings ...)
2010-06-08 17:55 ` slawomir at ezono dot com
@ 2010-06-08 17:57 ` paolo dot carlini at oracle dot com
2010-06-08 18:03 ` paolo dot carlini at oracle dot com
` (11 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-06-08 17:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from paolo dot carlini at oracle dot com 2010-06-08 17:57 -------
Excellent, thanks a lot.
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2010-06-08 17:57:00
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43838
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug libstdc++/43838] Incorrect output from abi::__cxa_demangle
2010-04-21 18:14 [Bug c++/43838] New: Incorrect output from abi::__cxa_demangle slawomir at ezono dot com
` (3 preceding siblings ...)
2010-06-08 17:57 ` paolo dot carlini at oracle dot com
@ 2010-06-08 18:03 ` paolo dot carlini at oracle dot com
2010-06-08 18:06 ` paolo dot carlini at oracle dot com
` (10 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-06-08 18:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from paolo dot carlini at oracle dot com 2010-06-08 18:02 -------
I also double checked that indeed the last "null_type" appears truncated.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43838
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug libstdc++/43838] Incorrect output from abi::__cxa_demangle
2010-04-21 18:14 [Bug c++/43838] New: Incorrect output from abi::__cxa_demangle slawomir at ezono dot com
` (4 preceding siblings ...)
2010-06-08 18:03 ` paolo dot carlini at oracle dot com
@ 2010-06-08 18:06 ` paolo dot carlini at oracle dot com
2010-06-09 8:55 ` [Bug libstdc++/43838] [4.4/4.5/4.6 Regression] " paolo dot carlini at oracle dot com
` (9 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-06-08 18:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from paolo dot carlini at oracle dot com 2010-06-08 18:05 -------
Ian, any idea what may be happening here?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43838
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug libstdc++/43838] [4.4/4.5/4.6 Regression] Incorrect output from abi::__cxa_demangle
2010-04-21 18:14 [Bug c++/43838] New: Incorrect output from abi::__cxa_demangle slawomir at ezono dot com
` (5 preceding siblings ...)
2010-06-08 18:06 ` paolo dot carlini at oracle dot com
@ 2010-06-09 8:55 ` paolo dot carlini at oracle dot com
2010-06-09 9:37 ` [Bug other/43838] " paolo dot carlini at oracle dot com
` (8 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-06-09 8:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from paolo dot carlini at oracle dot com 2010-06-09 08:54 -------
Non pre-processed testcase. Apparently some buffer is overflowed.
#include <cxxabi.h>
namespace abcdefgxyzzzaaaaabbbbbb
{
class Aaa { };
namespace klmn
{
class Baaaaaaaaaaaaaaa { };
}
}
namespace boost
{
namespace tuples
{
class null_type;
template<typename T1 = null_type, typename T2 = null_type,
typename T3 = null_type, typename T4 = null_type,
typename T5 = null_type, typename T6 = null_type,
typename T7 = null_type, typename T8 = null_type,
typename T9 = null_type, typename T10 = null_type>
struct tuple { };
}
}
int main()
{
int status = 0;
const char* mangled_name
= typeid(boost::tuples::tuple<abcdefgxyzzzaaaaabbbbbb::Aaa,
abcdefgxyzzzaaaaabbbbbb::klmn::Baaaaaaaaaaaaaaa>).name();
__builtin_printf("Mangled name:\n%s\n\n", mangled_name);
const char* dem_name = abi::__cxa_demangle(mangled_name, 0, 0, &status);
if (0 == status)
__builtin_printf("Demangled name:\n\n%s\n\n", dem_name);
return 0;
}
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Incorrect output from |[4.4/4.5/4.6 Regression]
|abi::__cxa_demangle |Incorrect output from
| |abi::__cxa_demangle
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43838
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug other/43838] [4.4/4.5/4.6 Regression] Incorrect output from abi::__cxa_demangle
2010-04-21 18:14 [Bug c++/43838] New: Incorrect output from abi::__cxa_demangle slawomir at ezono dot com
` (6 preceding siblings ...)
2010-06-09 8:55 ` [Bug libstdc++/43838] [4.4/4.5/4.6 Regression] " paolo dot carlini at oracle dot com
@ 2010-06-09 9:37 ` paolo dot carlini at oracle dot com
2010-06-09 16:57 ` hjl dot tools at gmail dot com
` (7 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-06-09 9:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from paolo dot carlini at oracle dot com 2010-06-09 09:37 -------
Recategorizing as other (like 42230)... and maybe HJ is interested in playing a
bit with this one too.
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hjl dot tools at gmail dot
| |com
Component|libstdc++ |other
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43838
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug other/43838] [4.4/4.5/4.6 Regression] Incorrect output from abi::__cxa_demangle
2010-04-21 18:14 [Bug c++/43838] New: Incorrect output from abi::__cxa_demangle slawomir at ezono dot com
` (7 preceding siblings ...)
2010-06-09 9:37 ` [Bug other/43838] " paolo dot carlini at oracle dot com
@ 2010-06-09 16:57 ` hjl dot tools at gmail dot com
2010-06-09 17:06 ` paolo dot carlini at oracle dot com
` (6 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-06-09 16:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from hjl dot tools at gmail dot com 2010-06-09 16:56 -------
It is caused by revision 142799:
http://gcc.gnu.org/ml/gcc-cvs/2008-12/msg00498.html
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at redhat dot com
Target Milestone|--- |4.4.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43838
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug other/43838] [4.4/4.5/4.6 Regression] Incorrect output from abi::__cxa_demangle
2010-04-21 18:14 [Bug c++/43838] New: Incorrect output from abi::__cxa_demangle slawomir at ezono dot com
` (8 preceding siblings ...)
2010-06-09 16:57 ` hjl dot tools at gmail dot com
@ 2010-06-09 17:06 ` paolo dot carlini at oracle dot com
2010-06-09 17:24 ` jakub at gcc dot gnu dot org
` (5 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-06-09 17:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from paolo dot carlini at oracle dot com 2010-06-09 17:05 -------
Thanks HJ.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43838
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug other/43838] [4.4/4.5/4.6 Regression] Incorrect output from abi::__cxa_demangle
2010-04-21 18:14 [Bug c++/43838] New: Incorrect output from abi::__cxa_demangle slawomir at ezono dot com
` (9 preceding siblings ...)
2010-06-09 17:06 ` paolo dot carlini at oracle dot com
@ 2010-06-09 17:24 ` jakub at gcc dot gnu dot org
2010-06-09 18:09 ` jakub at gcc dot gnu dot org
` (4 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-06-09 17:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from jakub at gcc dot gnu dot org 2010-06-09 17:24 -------
Can be reproduced also with
c++filt
_ZN5boost6tuples5tupleIN23abcdefgxyzzzaaaaabbbbbb3AaaENS2_4klmn16BaaaaaaaaaaaaaaaENS0_9null_typeES6_S6_S6_S6_S6_S6_S6_EE
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43838
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug other/43838] [4.4/4.5/4.6 Regression] Incorrect output from abi::__cxa_demangle
2010-04-21 18:14 [Bug c++/43838] New: Incorrect output from abi::__cxa_demangle slawomir at ezono dot com
` (10 preceding siblings ...)
2010-06-09 17:24 ` jakub at gcc dot gnu dot org
@ 2010-06-09 18:09 ` jakub at gcc dot gnu dot org
2010-06-10 15:16 ` jakub at gcc dot gnu dot org
` (3 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-06-09 18:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from jakub at gcc dot gnu dot org 2010-06-09 18:09 -------
I see the bug.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2010-06-08 17:57:00 |2010-06-09 18:09:12
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43838
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug other/43838] [4.4/4.5/4.6 Regression] Incorrect output from abi::__cxa_demangle
2010-04-21 18:14 [Bug c++/43838] New: Incorrect output from abi::__cxa_demangle slawomir at ezono dot com
` (11 preceding siblings ...)
2010-06-09 18:09 ` jakub at gcc dot gnu dot org
@ 2010-06-10 15:16 ` jakub at gcc dot gnu dot org
2010-06-10 15:24 ` jakub at gcc dot gnu dot org
` (2 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-06-10 15:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #13 from jakub at gcc dot gnu dot org 2010-06-10 15:16 -------
Subject: Bug 43838
Author: jakub
Date: Thu Jun 10 15:15:18 2010
New Revision: 160554
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160554
Log:
PR other/43838
* cp-demangle.c (struct d_print_info): Add flush_count field.
(d_print_init): Initialize it to 0.
(d_print_flush): Increment it.
(d_print_comp): If needed flush before appending ", ". Only
decrement dpi->len if no flushes happened during the recursive
call.
* testsuite/demangle-expected: Add a test for this.
Modified:
trunk/libiberty/ChangeLog
trunk/libiberty/cp-demangle.c
trunk/libiberty/testsuite/demangle-expected
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43838
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug other/43838] [4.4/4.5/4.6 Regression] Incorrect output from abi::__cxa_demangle
2010-04-21 18:14 [Bug c++/43838] New: Incorrect output from abi::__cxa_demangle slawomir at ezono dot com
` (12 preceding siblings ...)
2010-06-10 15:16 ` jakub at gcc dot gnu dot org
@ 2010-06-10 15:24 ` jakub at gcc dot gnu dot org
2010-06-10 15:33 ` jakub at gcc dot gnu dot org
2010-06-14 8:43 ` jakub at gcc dot gnu dot org
15 siblings, 0 replies; 17+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-06-10 15:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #14 from jakub at gcc dot gnu dot org 2010-06-10 15:24 -------
Subject: Bug 43838
Author: jakub
Date: Thu Jun 10 15:24:11 2010
New Revision: 160555
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160555
Log:
PR other/43838
* cp-demangle.c (struct d_print_info): Add flush_count field.
(d_print_init): Initialize it to 0.
(d_print_flush): Increment it.
(d_print_comp): If needed flush before appending ", ". Only
decrement dpi->len if no flushes happened during the recursive
call.
* testsuite/demangle-expected: Add a test for this.
Modified:
branches/gcc-4_5-branch/libiberty/ChangeLog
branches/gcc-4_5-branch/libiberty/cp-demangle.c
branches/gcc-4_5-branch/libiberty/testsuite/demangle-expected
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43838
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug other/43838] [4.4/4.5/4.6 Regression] Incorrect output from abi::__cxa_demangle
2010-04-21 18:14 [Bug c++/43838] New: Incorrect output from abi::__cxa_demangle slawomir at ezono dot com
` (13 preceding siblings ...)
2010-06-10 15:24 ` jakub at gcc dot gnu dot org
@ 2010-06-10 15:33 ` jakub at gcc dot gnu dot org
2010-06-14 8:43 ` jakub at gcc dot gnu dot org
15 siblings, 0 replies; 17+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-06-10 15:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #15 from jakub at gcc dot gnu dot org 2010-06-10 15:32 -------
Subject: Bug 43838
Author: jakub
Date: Thu Jun 10 15:31:56 2010
New Revision: 160556
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160556
Log:
PR other/43838
* cp-demangle.c (struct d_print_info): Add flush_count field.
(d_print_init): Initialize it to 0.
(d_print_flush): Increment it.
(d_print_comp): If needed flush before appending ", ". Only
decrement dpi->len if no flushes happened during the recursive
call.
* testsuite/demangle-expected: Add a test for this.
2009-06-16 Nick Clifton <nickc@redhat.com>
PR 10197
* testsuite/test-demangle.c: Rename getline to get_line to avoid
conflicts with system function of the same name.
Modified:
branches/gcc-4_4-branch/libiberty/ChangeLog
branches/gcc-4_4-branch/libiberty/cp-demangle.c
branches/gcc-4_4-branch/libiberty/testsuite/demangle-expected
branches/gcc-4_4-branch/libiberty/testsuite/test-demangle.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43838
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug other/43838] [4.4/4.5/4.6 Regression] Incorrect output from abi::__cxa_demangle
2010-04-21 18:14 [Bug c++/43838] New: Incorrect output from abi::__cxa_demangle slawomir at ezono dot com
` (14 preceding siblings ...)
2010-06-10 15:33 ` jakub at gcc dot gnu dot org
@ 2010-06-14 8:43 ` jakub at gcc dot gnu dot org
15 siblings, 0 replies; 17+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-06-14 8:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #16 from jakub at gcc dot gnu dot org 2010-06-14 08:43 -------
Fixed.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43838
^ permalink raw reply [flat|nested] 17+ messages in thread