[Bug other/28145] C++ (throw() and catch(...) {/* fall through */ } ) and pthread cancellation are incompatible (at least with NPTL)

2012-06-21 Thread nightstrike at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28145 nightstrike nightstrike at gmail dot com changed: What|Removed |Added CC||nightstrike at

[Bug other/28145] C++ (throw() and catch(...) {/* fall through */ } ) and pthread cancellation are incompatible (at least with NPTL)

2010-07-16 Thread jason at gcc dot gnu dot org
--- Comment #19 from jason at gcc dot gnu dot org 2010-07-16 19:21 --- Created an attachment (id=21227) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21227action=view) final __forced_unwind patch and fixes applied in 2007, for historical reference --

[Bug other/28145] C++ (throw() and catch(...) {/* fall through */ } ) and pthread cancellation are incompatible (at least with NPTL)

2007-04-15 Thread hhinnant at apple dot com
--- Comment #16 from hhinnant at apple dot com 2007-04-15 16:13 --- (In reply to comment #15) This makes clean up / rethrow during cancellation awkward. Code would have to check for two (or more) different kinds of cancellation: Am I executing in an OS thread, or in a thread pool?

[Bug other/28145] C++ (throw() and catch(...) {/* fall through */ } ) and pthread cancellation are incompatible (at least with NPTL)

2007-04-15 Thread jason at redhat dot com
--- Comment #17 from jason at redhat dot com 2007-04-15 19:01 --- Subject: Re: C++ (throw() and catch(...) {/* fall through */ } ) and pthread cancellation are incompatible (at least with NPTL) hhinnant at apple dot com wrote: This makes clean up / rethrow during cancellation

[Bug other/28145] C++ (throw() and catch(...) {/* fall through */ } ) and pthread cancellation are incompatible (at least with NPTL)

2007-04-13 Thread jason at redhat dot com
--- Comment #15 from jason at redhat dot com 2007-04-13 20:13 --- Subject: Re: C++ (throw() and catch(...) {/* fall through */ } ) and pthread cancellation are incompatible (at least with NPTL) Howard's example seems to me like an argument for not necessarily using thread

[Bug other/28145] C++ (throw() and catch(...) {/* fall through */ } ) and pthread cancellation are incompatible (at least with NPTL)

2006-11-01 Thread hhinnant at apple dot com
--- Comment #14 from hhinnant at apple dot com 2006-11-01 23:33 --- So swallowing a cancel-exception (in C++) is sometimes the right thing to do. Imagine a thread pool executing a queue of tasks. These tasks can well have handles so that clients can wait/join with results in the

[Bug other/28145] C++ (throw() and catch(...) {/* fall through */ } ) and pthread cancellation are incompatible (at least with NPTL)

2006-08-01 Thread jason at redhat dot com
--- Comment #11 from jason at redhat dot com 2006-08-01 07:10 --- Subject: Re: C++ (throw() and catch(...) {/* fall through */ } ) and pthread cancellation are incompatible (at least with NPTL) drow at gcc dot gnu dot org wrote: Just making sure I understand - catch (...) { foo();

[Bug other/28145] C++ (throw() and catch(...) {/* fall through */ } ) and pthread cancellation are incompatible (at least with NPTL)

2006-08-01 Thread drow at gcc dot gnu dot org
--- Comment #12 from drow at gcc dot gnu dot org 2006-08-01 13:02 --- Subject: Re: C++ (throw() and catch(...) {/* fall through */ } ) and pthread cancellation are incompatible (at least with NPTL) On Tue, Aug 01, 2006 at 07:10:53AM -, jason at redhat dot com wrote: [What does

[Bug other/28145] C++ (throw() and catch(...) {/* fall through */ } ) and pthread cancellation are incompatible (at least with NPTL)

2006-08-01 Thread jason at gcc dot gnu dot org
--- Comment #13 from jason at gcc dot gnu dot org 2006-08-01 21:08 --- Created an attachment (id=11988) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11988action=view) NPTL patch for sticky cancellation Revised, tested patch with testcase. So, there are 3 patches here, which are

[Bug other/28145] C++ (throw() and catch(...) {/* fall through */ } ) and pthread cancellation are incompatible (at least with NPTL)

2006-07-31 Thread jason at gcc dot gnu dot org
--- Comment #6 from jason at gcc dot gnu dot org 2006-07-31 09:38 --- Created an attachment (id=11978) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11978action=view) libstdc++ patch to allow catching forced unwind separately Trying to move this issue forward: here's a libsupc++

[Bug other/28145] C++ (throw() and catch(...) {/* fall through */ } ) and pthread cancellation are incompatible (at least with NPTL)

2006-07-31 Thread jason at gcc dot gnu dot org
--- Comment #7 from jason at gcc dot gnu dot org 2006-07-31 09:40 --- Created an attachment (id=11979) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11979action=view) NPTL patch to allow discarding cancellation exception And here's a completely untested patch to NPTL to implement

[Bug other/28145] C++ (throw() and catch(...) {/* fall through */ } ) and pthread cancellation are incompatible (at least with NPTL)

2006-07-31 Thread jason at gcc dot gnu dot org
--- Comment #8 from jason at gcc dot gnu dot org 2006-08-01 02:13 --- Created an attachment (id=11985) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11985action=view) libstdc++ patch to prevent ... from catching forced unwird Finally, this patch stops ... from catching forced

[Bug other/28145] C++ (throw() and catch(...) {/* fall through */ } ) and pthread cancellation are incompatible (at least with NPTL)

2006-07-31 Thread jason at gcc dot gnu dot org
--- Comment #9 from jason at gcc dot gnu dot org 2006-08-01 02:33 --- Created an attachment (id=11986) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11986action=view) revision to forced-lib.patch that also adds __foreign_exception -- jason at gcc dot gnu dot org changed:

[Bug other/28145] C++ (throw() and catch(...) {/* fall through */ } ) and pthread cancellation are incompatible (at least with NPTL)

2006-07-31 Thread drow at gcc dot gnu dot org
--- Comment #10 from drow at gcc dot gnu dot org 2006-08-01 02:47 --- Subject: Re: C++ (throw() and catch(...) {/* fall through */ } ) and pthread cancellation are incompatible (at least with NPTL) On Tue, Aug 01, 2006 at 02:13:08AM -, jason at gcc dot gnu dot org wrote:

[Bug other/28145] C++ (throw() and catch(...) {/* fall through */ } ) and pthread cancellation are incompatible (at least with NPTL)

2006-07-07 Thread pcarlini at suse dot de
--- Comment #5 from pcarlini at suse dot de 2006-07-07 17:17 --- (In reply to comment #4) However, we know that it should be possible to write cancel-safe C++ libraries (including, in particular, libstdc++); otherwise, it's hard to use C++ in a multi-threaded application. And, we

[Bug other/28145] C++ (throw() and catch(...) {/* fall through */ } ) and pthread cancellation are incompatible (at least with NPTL)

2006-06-23 Thread drow at gcc dot gnu dot org
--- Comment #3 from drow at gcc dot gnu dot org 2006-06-24 02:52 --- No, that was not the consensus, and I reported this bug specifically because the coding practices used in libstdc++ cause problems with cancellation... progress was being made, the last time I read c++-pthreads, but

[Bug other/28145] C++ (throw() and catch(...) {/* fall through */ } ) and pthread cancellation are incompatible (at least with NPTL)

2006-06-23 Thread mark at codesourcery dot com
--- Comment #4 from mark at codesourcery dot com 2006-06-24 04:10 --- Subject: Re: C++ (throw() and catch(...) {/* fall through */ } ) and pthread cancellation are incompatible (at least with NPTL) drow at gcc dot gnu dot org wrote: --- Comment #3 from drow at gcc dot gnu dot