public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/66096] New: Unexpected __gnu_cxx::__concurrence_lock_error with _GLIBCXX_DEBUG
@ 2015-05-10 20:50 mirzayanovmr at gmail dot com
  2015-05-10 21:43 ` [Bug c++/66096] " mirzayanovmr at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: mirzayanovmr at gmail dot com @ 2015-05-10 20:50 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 66096
           Summary: Unexpected __gnu_cxx::__concurrence_lock_error with
                    _GLIBCXX_DEBUG
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mirzayanovmr at gmail dot com
  Target Milestone: ---

The following code unexpectedly fails with error:

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
terminate called after throwing an instance of
'__gnu_cxx::__concurrence_lock_error'
  what():  __gnu_cxx::__concurrence_lock_error


Used g++ version is 4.9.2 mingw-tdm:
A:\queue>g++ --version
g++.EXE (tdm-1) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

The code is attached. You can compile it with g++ -O2 -static -o grnd grnd.cpp


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

* [Bug c++/66096] Unexpected __gnu_cxx::__concurrence_lock_error with _GLIBCXX_DEBUG
  2015-05-10 20:50 [Bug c++/66096] New: Unexpected __gnu_cxx::__concurrence_lock_error with _GLIBCXX_DEBUG mirzayanovmr at gmail dot com
@ 2015-05-10 21:43 ` mirzayanovmr at gmail dot com
  2015-05-11  9:21 ` egor_suvorov at mail dot ru
  2015-05-12 13:27 ` redi at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: mirzayanovmr at gmail dot com @ 2015-05-10 21:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from MikeMirzayanov <mirzayanovmr at gmail dot com> ---
The code is:

#define _GLIBCXX_DEBUG

#include <set>
#include <map>

using namespace std;

map<int, pair<bool, pair<int,int> > > q;

int main(int argc, char* argv[])
{
    set<int> can;
    can.insert(1);
}


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

* [Bug c++/66096] Unexpected __gnu_cxx::__concurrence_lock_error with _GLIBCXX_DEBUG
  2015-05-10 20:50 [Bug c++/66096] New: Unexpected __gnu_cxx::__concurrence_lock_error with _GLIBCXX_DEBUG mirzayanovmr at gmail dot com
  2015-05-10 21:43 ` [Bug c++/66096] " mirzayanovmr at gmail dot com
@ 2015-05-11  9:21 ` egor_suvorov at mail dot ru
  2015-05-12 13:27 ` redi at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: egor_suvorov at mail dot ru @ 2015-05-11  9:21 UTC (permalink / raw)
  To: gcc-bugs

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

Egor Suvorov <egor_suvorov at mail dot ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |egor_suvorov at mail dot ru

--- Comment #2 from Egor Suvorov <egor_suvorov at mail dot ru> ---
This bug was also reported to TDM-GCC's bugtracker at
http://sourceforge.net/p/tdm-gcc/bugs/264/

Smaller example:

#define _GLIBCXX_DEBUG
#include <set>

std::set<int> a;

int main() {
    std::set<int> b;
}


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

* [Bug c++/66096] Unexpected __gnu_cxx::__concurrence_lock_error with _GLIBCXX_DEBUG
  2015-05-10 20:50 [Bug c++/66096] New: Unexpected __gnu_cxx::__concurrence_lock_error with _GLIBCXX_DEBUG mirzayanovmr at gmail dot com
  2015-05-10 21:43 ` [Bug c++/66096] " mirzayanovmr at gmail dot com
  2015-05-11  9:21 ` egor_suvorov at mail dot ru
@ 2015-05-12 13:27 ` redi at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2015-05-12 13:27 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|32 bit                      |x86_64-w64-mingw32
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2015-05-12
               Host|Windows 7 x64               |x86_64-w64-mingw32
     Ever confirmed|0                           |1
              Build|g++.EXE (tdm-1) 4.9.2       |
                   |Copyright (C) 2014 Free     |
                   |Software Foundation, Inc.   |

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This report is not very useful without a stack trace showing where the
exception is thrown. I suspect it's a mingw-w64 problem as it doesn't happen on
other targets, so there may be nothing to fix in the upstream libstdc++ code.

As requested at https://gcc.gnu.org/bugs/ please provide the output of 'gcc -v'
not just the version number.


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

end of thread, other threads:[~2015-05-12 13:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-10 20:50 [Bug c++/66096] New: Unexpected __gnu_cxx::__concurrence_lock_error with _GLIBCXX_DEBUG mirzayanovmr at gmail dot com
2015-05-10 21:43 ` [Bug c++/66096] " mirzayanovmr at gmail dot com
2015-05-11  9:21 ` egor_suvorov at mail dot ru
2015-05-12 13:27 ` redi at gcc dot gnu.org

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