Opened 10 years ago

Last modified 10 years ago

#7750 new Bugs

iostreams & thread cancellation issue

Reported by: Oleg.Dolgov@… 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)

indirect_streambuf.hpp.patch (896 bytes ) - added by Oleg <Oleg.Dolgov@…> 10 years ago.

Download all attachments as: .zip

Change History (2)

by Oleg <Oleg.Dolgov@…>, 10 years ago

comment:1 by Oleg <Oleg.Dolgov@…>, 10 years ago

Details:

h t t p://udrepper.livejournal.com/21541.html h t t p://gcc.gnu.org/bugzilla/show_bug.cgi?id=28145

Note: See TracTickets for help on using tickets.