public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/55028] New: _GLIBCXX_DEBUG is broken when using v7 namespace
@ 2012-10-22 21:00 oleg at smolsky dot net
  2012-10-22 21:05 ` [Bug c++/55028] " paolo.carlini at oracle dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: oleg at smolsky dot net @ 2012-10-22 21:00 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55028
           Summary: _GLIBCXX_DEBUG is broken when using v7 namespace
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: oleg@smolsky.net


I've just hit an issue when using _GLIBCXX_DEBUG together with gcc 4.7.2 built
using --enable-symvers=gnu-versioned-namespace flag. The issue is specific to
unordered_mulimap and can be reproduced using the following:

struct MyType
{
};

#if 1
using MyMap = std::multimap<std::string, MyType *>;    // works
#else
using MyMap = std::unordered_multimap<std::string, MyType *>;  // fails to link
#endif

MyMap m;
m.insert({"blah"}, new MyType});

The latter variant fails to link with the following message:

misc/libmisc.a(statmgr.o): In function
`__gnu_debug::_Safe_unordered_container_base::~_Safe_unordered_container_base()':
statmgr.cc:(.text._ZN11__gnu_debug30_Safe_unordered_container_baseD2Ev[_ZN11__gnu_debug30_Safe_unordered_container_baseD5Ev]+0x15):
undefined reference to
`__gnu_debug::_Safe_unordered_container_base::_M_detach_all()'

The compiler was configured as follows:

Configured with: ../gcc-4.7.2/configure --prefix=/opt/gcc-4.7-v7
--enable-languages=c,c++,lto --with-mpfr=/opt/gcc-4.6-rbt
--with-cloog=/opt/gcc-4.6-rbt --with-mpc=/opt/gcc-4.6-rbt
--with-gmp=/opt/gcc-4.6-rbt --with-system-zlib --disable-multilib --enable-lto
--with-build-config=bootstrap-lto --with-fpmath=sse --enable-build-with-cxx
--enable-gold=yes --enable-cloog-backend=isl --disable-cloog-version-check
--enable-symvers=gnu-versioned-namespace CFLAGS=-O3 CXXFLAGS=-O3
Thread model: posix
gcc version 4.7.2 (GCC)


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

* [Bug c++/55028] _GLIBCXX_DEBUG is broken when using v7 namespace
  2012-10-22 21:00 [Bug c++/55028] New: _GLIBCXX_DEBUG is broken when using v7 namespace oleg at smolsky dot net
@ 2012-10-22 21:05 ` paolo.carlini at oracle dot com
  2012-10-22 21:12 ` paolo.carlini at oracle dot com
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-10-22 21:05 UTC (permalink / raw)
  To: gcc-bugs


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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bkoz at redhat dot com

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-10-22 21:04:54 UTC ---
Benjamin, can you have a look?


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

* [Bug c++/55028] _GLIBCXX_DEBUG is broken when using v7 namespace
  2012-10-22 21:00 [Bug c++/55028] New: _GLIBCXX_DEBUG is broken when using v7 namespace oleg at smolsky dot net
  2012-10-22 21:05 ` [Bug c++/55028] " paolo.carlini at oracle dot com
@ 2012-10-22 21:12 ` paolo.carlini at oracle dot com
  2012-10-24 18:37 ` [Bug libstdc++/55028] " oleg at smolsky dot net
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-10-22 21:12 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-10-22 21:12:07 UTC ---
Looks like some debug mode symbols need exporting, nothing particularly
complex.


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

* [Bug libstdc++/55028] _GLIBCXX_DEBUG is broken when using v7 namespace
  2012-10-22 21:00 [Bug c++/55028] New: _GLIBCXX_DEBUG is broken when using v7 namespace oleg at smolsky dot net
  2012-10-22 21:05 ` [Bug c++/55028] " paolo.carlini at oracle dot com
  2012-10-22 21:12 ` paolo.carlini at oracle dot com
@ 2012-10-24 18:37 ` oleg at smolsky dot net
  2012-10-30 15:10 ` oleg at smolsky dot net
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: oleg at smolsky dot net @ 2012-10-24 18:37 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #3 from oleg at smolsky dot net 2012-10-24 18:36:44 UTC ---
Can this be debugged by hacking installed libstdc++ headers? If so, could you
point to what needs exporting/testing please?


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

* [Bug libstdc++/55028] _GLIBCXX_DEBUG is broken when using v7 namespace
  2012-10-22 21:00 [Bug c++/55028] New: _GLIBCXX_DEBUG is broken when using v7 namespace oleg at smolsky dot net
                   ` (2 preceding siblings ...)
  2012-10-24 18:37 ` [Bug libstdc++/55028] " oleg at smolsky dot net
@ 2012-10-30 15:10 ` oleg at smolsky dot net
  2012-11-05 19:19 ` bkoz at gcc dot gnu.org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: oleg at smolsky dot net @ 2012-10-30 15:10 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #4 from oleg at smolsky dot net 2012-10-30 15:09:49 UTC ---
Created attachment 28578
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28578
exports

Here is a patch that addresses the issue. IE my tests and apps link now.


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

* [Bug libstdc++/55028] _GLIBCXX_DEBUG is broken when using v7 namespace
  2012-10-22 21:00 [Bug c++/55028] New: _GLIBCXX_DEBUG is broken when using v7 namespace oleg at smolsky dot net
                   ` (3 preceding siblings ...)
  2012-10-30 15:10 ` oleg at smolsky dot net
@ 2012-11-05 19:19 ` bkoz at gcc dot gnu.org
  2012-11-05 21:01 ` bkoz at gcc dot gnu.org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bkoz at gcc dot gnu.org @ 2012-11-05 19:19 UTC (permalink / raw)
  To: gcc-bugs


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

Benjamin Kosnik <bkoz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2012-11-05
                 CC|                            |bkoz at gcc dot gnu.org
         AssignedTo|unassigned at gcc dot       |bkoz at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1

--- Comment #5 from Benjamin Kosnik <bkoz at gcc dot gnu.org> 2012-11-05 19:19:26 UTC ---

vtable exported needed too, FYI. fixed on trunk, porting to 4.7.x.


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

* [Bug libstdc++/55028] _GLIBCXX_DEBUG is broken when using v7 namespace
  2012-10-22 21:00 [Bug c++/55028] New: _GLIBCXX_DEBUG is broken when using v7 namespace oleg at smolsky dot net
                   ` (4 preceding siblings ...)
  2012-11-05 19:19 ` bkoz at gcc dot gnu.org
@ 2012-11-05 21:01 ` bkoz at gcc dot gnu.org
  2012-11-05 21:52 ` bkoz at gcc dot gnu.org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bkoz at gcc dot gnu.org @ 2012-11-05 21:01 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #6 from Benjamin Kosnik <bkoz at gcc dot gnu.org> 2012-11-05 21:01:15 UTC ---
Author: bkoz
Date: Mon Nov  5 21:01:08 2012
New Revision: 193185

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193185
Log:
2012-11-05  Benjamin Kosnik  <bkoz@redhat.com>
            Oleg Smolsky  <oleg@smolsky.net>

    PR libstdc++/55028
    *  config/abi/pre/gnu-versioned-namespace.ver: Add symbols.
    * testsuite/23_containers/unordered_multimap/insert/55028-debug.cc: New.

Added:
   
trunk/libstdc++-v3/testsuite/23_containers/unordered_multimap/insert/55028-debug.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/config/abi/pre/gnu-versioned-namespace.ver


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

* [Bug libstdc++/55028] _GLIBCXX_DEBUG is broken when using v7 namespace
  2012-10-22 21:00 [Bug c++/55028] New: _GLIBCXX_DEBUG is broken when using v7 namespace oleg at smolsky dot net
                   ` (5 preceding siblings ...)
  2012-11-05 21:01 ` bkoz at gcc dot gnu.org
@ 2012-11-05 21:52 ` bkoz at gcc dot gnu.org
  2012-11-05 21:53 ` bkoz at gcc dot gnu.org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: bkoz at gcc dot gnu.org @ 2012-11-05 21:52 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #7 from Benjamin Kosnik <bkoz at gcc dot gnu.org> 2012-11-05 21:52:32 UTC ---
Author: bkoz
Date: Mon Nov  5 21:52:28 2012
New Revision: 193190

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193190
Log:
2012-11-05  Benjamin Kosnik  <bkoz@redhat.com>
            Oleg Smolsky  <oleg@smolsky.net>

    PR libstdc++/55028
    *  config/abi/pre/gnu-versioned-namespace.ver: Add symbols.
    * testsuite/23_containers/unordered_multimap/insert/55028-debug.cc: New.


Modified:
    branches/gcc-4_7-branch/libstdc++-v3/ChangeLog
   
branches/gcc-4_7-branch/libstdc++-v3/config/abi/pre/gnu-versioned-namespace.ver


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

* [Bug libstdc++/55028] _GLIBCXX_DEBUG is broken when using v7 namespace
  2012-10-22 21:00 [Bug c++/55028] New: _GLIBCXX_DEBUG is broken when using v7 namespace oleg at smolsky dot net
                   ` (6 preceding siblings ...)
  2012-11-05 21:52 ` bkoz at gcc dot gnu.org
@ 2012-11-05 21:53 ` bkoz at gcc dot gnu.org
  2012-11-05 21:54 ` bkoz at gcc dot gnu.org
  2012-11-06  0:20 ` paolo.carlini at oracle dot com
  9 siblings, 0 replies; 11+ messages in thread
From: bkoz at gcc dot gnu.org @ 2012-11-05 21:53 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #8 from Benjamin Kosnik <bkoz at gcc dot gnu.org> 2012-11-05 21:53:40 UTC ---
Author: bkoz
Date: Mon Nov  5 21:53:31 2012
New Revision: 193191

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193191
Log:
2012-11-05  Benjamin Kosnik  <bkoz@redhat.com>
            Oleg Smolsky  <oleg@smolsky.net>

    PR libstdc++/55028
    *  config/abi/pre/gnu-versioned-namespace.ver: Add symbols.
    * testsuite/23_containers/unordered_multimap/insert/55028-debug.cc: New.


Added:
   
branches/gcc-4_7-branch/libstdc++-v3/testsuite/23_containers/unordered_multimap/insert/55028-debug.cc


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

* [Bug libstdc++/55028] _GLIBCXX_DEBUG is broken when using v7 namespace
  2012-10-22 21:00 [Bug c++/55028] New: _GLIBCXX_DEBUG is broken when using v7 namespace oleg at smolsky dot net
                   ` (7 preceding siblings ...)
  2012-11-05 21:53 ` bkoz at gcc dot gnu.org
@ 2012-11-05 21:54 ` bkoz at gcc dot gnu.org
  2012-11-06  0:20 ` paolo.carlini at oracle dot com
  9 siblings, 0 replies; 11+ messages in thread
From: bkoz at gcc dot gnu.org @ 2012-11-05 21:54 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #9 from Benjamin Kosnik <bkoz at gcc dot gnu.org> 2012-11-05 21:54:29 UTC ---

Fixed in trunk and 4.7


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

* [Bug libstdc++/55028] _GLIBCXX_DEBUG is broken when using v7 namespace
  2012-10-22 21:00 [Bug c++/55028] New: _GLIBCXX_DEBUG is broken when using v7 namespace oleg at smolsky dot net
                   ` (8 preceding siblings ...)
  2012-11-05 21:54 ` bkoz at gcc dot gnu.org
@ 2012-11-06  0:20 ` paolo.carlini at oracle dot com
  9 siblings, 0 replies; 11+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-11-06  0:20 UTC (permalink / raw)
  To: gcc-bugs


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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.7.3

--- Comment #10 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-11-06 00:20:26 UTC ---
Fixed.


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

end of thread, other threads:[~2012-11-06  0:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-22 21:00 [Bug c++/55028] New: _GLIBCXX_DEBUG is broken when using v7 namespace oleg at smolsky dot net
2012-10-22 21:05 ` [Bug c++/55028] " paolo.carlini at oracle dot com
2012-10-22 21:12 ` paolo.carlini at oracle dot com
2012-10-24 18:37 ` [Bug libstdc++/55028] " oleg at smolsky dot net
2012-10-30 15:10 ` oleg at smolsky dot net
2012-11-05 19:19 ` bkoz at gcc dot gnu.org
2012-11-05 21:01 ` bkoz at gcc dot gnu.org
2012-11-05 21:52 ` bkoz at gcc dot gnu.org
2012-11-05 21:53 ` bkoz at gcc dot gnu.org
2012-11-05 21:54 ` bkoz at gcc dot gnu.org
2012-11-06  0:20 ` paolo.carlini at oracle 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).