You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2008/11/21 12:54:05 UTC

DO NOT REPLY [Bug 46255] New: ThreadDeath must be rethrown if caught

https://issues.apache.org/bugzilla/show_bug.cgi?id=46255

           Summary: ThreadDeath must be rethrown if caught
           Product: Tomcat 6
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: sebb@apache.org


The following classes catch Throwable, but fail to rethrow ThreadDeath.

org.apache.catalina.ant.jmx.JMXAccessorQueryTask
org.apache.catalina.ant.AbstractCatalinaTask
org.apache.catalina.ant.ValidatorTask
org.apache.catalina.authenticator.FormAuthenticator
org.apache.catalina.connector.Connector
org.apache.catalina.connector.CoyoteAdapter
org.apache.catalina.connector.MapperListener
org.apache.catalina.connector.Request
There are lots of others ... just search for "catch (Throwable"

or search for "catch (Error" - this only shows one problem, in
org.apache.tomcat.util.net.AprEndpoint#allocatePoller()

ThreadDeath should never be ignored.

org.apache.catalina.core.ApplicationContextFacade#doPrivileged() rethrows all
throwables as RuntimeException; it should not wrap ThreadDeath in this way.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 46255] ThreadDeath must be rethrown if caught

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46255


Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX




--- Comment #1 from Mark Thomas <ma...@apache.org>  2008-12-05 10:13:51 PST ---
Reading the javadoc for ThreadDeath, it is thrown as a result of calling
Thread.stop(). There is only one instance of that call in Tomcat (in
ThreadPool) and it is never used. Therefore, I do not see the need to fix this.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org