Menu

#461 Nested calls of std::async crash

v1.0 (example)
unread
nobody
None
5
2015-04-26
2015-03-02
No

Environment:
Windows 7
gcc version 4.8.2 (i686-posix-dwarf-rev3, Built by MinGW-W64 project)
GNU ld (GNU Binutils) 2.24

Command line call:
g++ -std=c++11 futures.cpp

The program crashes in some cases, but not always. I observe two different kinds of crashes: It either terminates with "This application has requested the runtime to terminate it in an unusual way." Or, it terminates after throwing an instance of 'std::future_error', what(): Promise already satisfied.

See also: http://stackoverflow.com/questions/28604461

1 Attachments

Discussion

  • sebastianknopp

    sebastianknopp - 2015-03-02

    I use MinGW-gw64 provided as part of the Qt project (5.3.2).

     
  • sebastianknopp

    sebastianknopp - 2015-04-26

    Cannot reproduce the problem with a more recent version (gcc 4.9.1, MinGW-W64)

     

Log in to post a comment.