#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
_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to