Am 27.08.2017 um 18:57 schrieb Mark Thomas:
On 27/08/17 15:01, Rainer Jung wrote:

<snip/>

Unfortunately that would be a change to tcnative, so we would have to do
another tag. I would prefer to include this fix in the release.

Thanks for tracking these various issues down.

I'm happy to tag 1.2.14. I'll do that early next week.

Great. In the meantime I can run the tests with OpenSSL 1.1.0 and master.

Before I do, I do want to look into why the TestDefaultServletEncoding
unit tests didn't fail as I would have expected in this case. Another
job for next week.

At least in the logs I find:

...
25-Aug-2017 21:31:17.326 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testEncoding[1023: contextEnc[ibm850], fileEnc[cp1252], useBom[false], target[cp1252], useInclude[true], outputEnc[utf-8], callSetCharacterEnc[true], useWriter[false], expectedPass[true]]] 25-Aug-2017 21:31:17.361 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library [1.2.13] using APR version [1.6.2]. 25-Aug-2017 21:31:17.361 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. 25-Aug-2017 21:31:17.361 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true] 25-Aug-2017 21:31:16.144 SEVERE [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Failed to initialize the SSLEngine.
 org.apache.tomcat.jni.Error: 11: Resource temporarily unavailable
        at org.apache.tomcat.jni.SSL.initialize(Native Method)
        at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.core.AprLifecycleListener.initializeSSL(AprLifecycleListener.java:289) at org.apache.catalina.core.AprLifecycleListener.lifecycleEvent(AprLifecycleListener.java:136) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123) at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:424) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:135) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:173)
        at org.apache.catalina.startup.Tomcat.start(Tomcat.java:372)
at org.apache.catalina.startup.TomcatBaseTest$TomcatWithFastSessionIDs.start(TomcatBaseTest.java:828) at org.apache.catalina.servlets.TestDefaultServletEncoding.testEncoding(TestDefaultServletEncoding.java:191)
...
25-Aug-2017 21:31:17.364 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-apr-127.0.0.1-auto-1024"] 25-Aug-2017 21:31:17.368 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 25-Aug-2017 21:31:17.368 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/9.0.0.M27-dev 25-Aug-2017 21:31:17.450 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-apr-127.0.0.1-auto-1024-36488"] 25-Aug-2017 21:31:17.479 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-apr-127.0.0.1-auto-1024-36488"] 25-Aug-2017 21:31:17.530 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 25-Aug-2017 21:31:17.572 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-apr-127.0.0.1-auto-1024-36488"] 25-Aug-2017 21:31:17.626 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-apr-127.0.0.1-auto-1024-36488"]

So the expection happens in the SSL init part only and the tomcat instance is still usable for the test via the http port.

Only on some small virtual machines I had JVM crashes in addtion to the above exception. And the exception only shows once we have reached the maximum number of about 1024 keys.

Regards,

Rainer

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

Reply via email to