[RTEMS Project] #3012: Global C++ IO streams are broken (cout, cin, cerr)

RTEMS trac trac at rtems.org
Wed May 10 05:59:36 UTC 2017


#3012: Global C++ IO streams are broken (cout, cin, cerr)
-----------------------------+--------------------------
 Reporter:  Sebastian Huber  |       Owner:  Chris Johns
     Type:  defect           |      Status:  assigned
 Priority:  normal           |   Milestone:  Indefinite
Component:  GCC              |     Version:  4.12
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+--------------------------

Comment (by Chris Johns):

 I have considered this and it is attractive. Is this something libstdc++
 supports out of the box or do we need to make changes?

 I would like to understand the issue a little more and how cygwin solves
 the problem. Joel has been testing some code on cygwin and it would be
 nice to get it to run on RTEMS and see how it breaks.

 I am concerned the current implementation's behavior is undefined if a
 thread calls {{{std::cout}}} and then is deleted leaving libstdc++ with a
 reference to invalid memory.

--
Ticket URL: <http://devel.rtems.org/ticket/3012#comment:3>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list