tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 57653] APR/native crash during HTTP upgrade
Date Wed, 11 Mar 2015 14:35:12 GMT

Mark Thomas <> changed:

           What    |Removed                     |Added
            Product|Tomcat 9                    |Tomcat Native
           Hardware|PC                          |Macintosh
          Component|Connectors                  |Library
            Version|unspecified                 |1.1.32
   Target Milestone|-----                       |---

--- Comment #5 from Mark Thomas <> ---
I think I have got to the bottom of this.

Looking at the docs for apr_pollset_poll [1], it states "Multiple signalled
conditions for the same descriptor may be reported in one or more returned
apr_pollfd_t structures, depending on the implementation.".

The crash is occurring when the socket is registered for read and write.

The tc-native code assumes that there is only ever one returned structure per

The unit test + modified code I am using just happens - if the timing is right
- to register a socket for read and write which almost instantly becomes
available for both. It looks like OSX rerurns mutiple apr_pollfd_t structures
for mutliple events on the same descriptor and that triggers the crash.

I've thrown together a quick patch to test this theory and the unit test has
been running in a loop now for 20+ minutes without crashing so I am fairly
confident this is the issue.


You are receiving this mail because:
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message