Opened 10 years ago
Last modified 10 years ago
#7750 new Bugs
iostreams & thread cancellation issue
Reported by: | Owned by: | Jonathan Turkanis | |
---|---|---|---|
Milestone: | To Be Determined | Component: | iostreams |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | iostreams pthreads exceptions | Cc: |
Description
In NPTL thread cancellation is implemented using exceptions. The iostreams functions contains a catch-all clause which does not rethrow the exception. This is possible to expect but should really never happen in any code. The rules C++ experts developed state that catch-all cases must rethrow. If not then strange things can happen since one doesn't always know exactly what exceptions are thrown.
Simple patch for sync functions attached.
Attachments (1)
Change History (2)
by , 10 years ago
Attachment: | indirect_streambuf.hpp.patch added |
---|
comment:1 by , 10 years ago
Note:
See TracTickets
for help on using tickets.
Details:
h t t p://udrepper.livejournal.com/21541.html h t t p://gcc.gnu.org/bugzilla/show_bug.cgi?id=28145