[Bug 63875] Tomcat 8.5.46, APR/libtcnative crashes

2019-11-21 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=63875

Remy Maucherat  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution|--- |INVALID

--- Comment #19 from Remy Maucherat  ---
Since this was using embedded with a crash only on shutdown, and given comment
17, I would say the issue was some sort of misuse of the AprLifecycleListener
or the handling of the native library. The debug given didn't show an issue
with the SSL context close (all it does is prevent a crash caused by a double
free).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 63875] Tomcat 8.5.46, APR/libtcnative crashes

2019-11-13 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=63875

Christopher Schultz  changed:

   What|Removed |Added

 Resolution|FIXED   |---
 Status|RESOLVED|REOPENED

--- Comment #18 from Christopher Schultz  ---
Was this caused by custom native code of custom Java code?

I would argue that, unless you went into the C stack/heap with a hatchet,
(ab)using the tcnative code shouldn't cause a JVM crash. Exceptions, dropped
connections, etc., sure. But the tcnative code should be protecting itself
against improper usage.

Can you please share your custom code surrounding your use of
AprLifecycleListener? Maybe there really is a bug, here.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 63875] Tomcat 8.5.46, APR/libtcnative crashes

2019-11-13 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=63875

sachin.pip...@globallogic.com changed:

   What|Removed |Added

 Status|NEEDINFO|RESOLVED
 Resolution|--- |FIXED

--- Comment #17 from sachin.pip...@globallogic.com ---
Marking resolved this issue, as the issue was with the custom code while
creating the AprLifeccycleListner the reference was getting overridden.

Thanks to all who supported during the time.

Thanks
Sachin

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 63875] Tomcat 8.5.46, APR/libtcnative crashes

2019-11-07 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=63875

Mark Thomas  changed:

   What|Removed |Added

 Status|NEW |NEEDINFO

--- Comment #16 from Mark Thomas  ---
I have tried, and failed, to recreate this. Please provide the simplest
possible test case that re-creates the issue.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 63875] Tomcat 8.5.46, APR/libtcnative crashes

2019-11-04 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=63875

Remy Maucherat  changed:

   What|Removed |Added

Version|1.2.21  |unspecified
Product|Tomcat Native   |Tomcat 9
  Component|Library |Connectors
   Target Milestone|--- |-

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 63875] Tomcat 8.5.46, APR/libtcnative crashes

2019-11-01 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=63875

--- Comment #15 from Remy Maucherat  ---
We got and read your latest comment with the additional testing.
However, pinging developers for updates is not acceptable behavior. Please
don't do this again.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 63875] Tomcat 8.5.46, APR/libtcnative crashes

2019-10-31 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=63875

--- Comment #14 from sachin.pip...@globallogic.com ---
(In reply to sachin.pipal1 from comment #13)
> (In reply to Remy Maucherat from comment #12)
> > Ok, so this is clearly embedded (don't see why it would make a difference
> > yet) and it crashes on shutdown.
> > 
> > Can you also test NIO (the default connector) with Tomcat 9 ?
> > Also can you give details about your use (we need to be able to reproduce
> > the crash) ?
> 
> 
> Same error encountered with  tomcat 9 +NIO.
> 
> We are using embedded tomcat and deploying multiple restful services over
> HTTP2 protcol.Tomcat crashes randomly within 10 -12 minutes while
> stopping the one of the multiple deployed rest web application and
> getting Libtcnative crashes error in log.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 63875] Tomcat 8.5.46, APR/libtcnative crashes

2019-10-31 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=63875

sachin.pip...@globallogic.com changed:

   What|Removed |Added

 Status|NEEDINFO|NEW

--- Comment #13 from sachin.pip...@globallogic.com ---
(In reply to Remy Maucherat from comment #12)
> Ok, so this is clearly embedded (don't see why it would make a difference
> yet) and it crashes on shutdown.
> 
> Can you also test NIO (the default connector) with Tomcat 9 ?
> Also can you give details about your use (we need to be able to reproduce
> the crash) ?


Same error encountered with  tomcat 9 +NIO.

We are using embedded tomcat and deploying multiple restful services over HTTP2
protcol.Tomcat crashes randomly within 10 -12 minutes while stopping/starting
the one of the multiple deployed rest web application and getting Libtcnative
crashes error in log.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 63875] Tomcat 8.5.46, APR/libtcnative crashes

2019-10-29 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=63875

Remy Maucherat  changed:

   What|Removed |Added

 Status|NEW |NEEDINFO

--- Comment #12 from Remy Maucherat  ---
Ok, so this is clearly embedded (don't see why it would make a difference yet)
and it crashes on shutdown.

Can you also test NIO (the default connector) with Tomcat 9 ?
Also can you give details about your use (we need to be able to reproduce the
crash) ?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 63875] Tomcat 8.5.46, APR/libtcnative crashes

2019-10-25 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=63875

--- Comment #11 from sachin.pip...@globallogic.com ---
(In reply to sachin.pipal1 from comment #6)
> (In reply to Remy Maucherat from comment #5)
> > It would be useful to test Tomcat 9 with NIO.
> > The stack indicates a crash on stop only, are the context reloads related to
> > it ?
> 
> Tested with tomcat 9.0.27 with NIO2
> Loaded APR based Apache Tomcat Native library [1.2.23] using APR version
> [1.7.0].
> OpenSSL successfully initialized [OpenSSL 1.1.1c  28 May 2019]
> Please find the attached
> logs.(hs_err_pid27914,SERVER2.server.runlog,SERVER2.System.0)
> Context reload are of during deployment of the webapp.
> 
> 
> 
> 
> 2019-10-25 14:35:16.602, WARNING,
> org.apache.tomcat.util.net.SSLHostConfigorg.apache.tomcat.util.net.
> SSLHostConfig setProtocols
>  - The protocol [TLSv1.1] was added to the list of protocols on the
> SSLHostConfig named [_default_]. Check if a +/- prefix is missing.
> 2019-10-25 14:35:16.602, WARNING,
> org.apache.tomcat.util.net.SSLHostConfigorg.apache.tomcat.util.net.
> SSLHostConfig setProtocols
>  - The protocol [TLSv1] was added to the list of protocols on the
> SSLHostConfig named [_default_]. Check if a +/- prefix is missing.
> 2019-10-25 14:35:16.609, INFO,
> org.apache.catalina.core.AprLifecycleListenerorg.apache.catalina.core.
> AprLifecycleListener lifecycleEvent
>  - Loaded APR based Apache Tomcat Native library [1.2.23] using APR version
> [1.7.0].
> 2019-10-25 14:35:16.609, INFO,
> org.apache.catalina.core.AprLifecycleListenerorg.apache.catalina.core.
> AprLifecycleListener lifecycleEvent
>  - APR capabilities: IPv6 [true], sendfile [true], accept filters [false],
> random [true].
> 2019-10-25 14:35:16.609, INFO,
> org.apache.catalina.core.AprLifecycleListenerorg.apache.catalina.core.
> AprLifecycleListener lifecycleEvent
>  - APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
> 2019-10-25 14:35:16.613, INFO,
> org.apache.catalina.core.AprLifecycleListenerorg.apache.catalina.core.
> AprLifecycleListener initializeSSL
>  - OpenSSL successfully initialized [OpenSSL 1.1.1c  28 May 2019]
> 2019-10-25 14:35:16.620, INFO,
> org.apache.coyote.http11.Http11Nio2Protocolorg.apache.coyote.http11.
> AbstractHttp11Protocol configureUpgradeProtocol
>  - The ["https-openssl-nio2-6090"] connector has been configured to support
> negotiation to [h2] via ALPN

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 63875] Tomcat 8.5.46, APR/libtcnative crashes

2019-10-25 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=63875

--- Comment #10 from sachin.pip...@globallogic.com ---
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.202-b08 mixed mode linux-amd64
compressed oops)
# Problematic frame:
# C  [libtcnative-1.so+0x2c61be]  apr_pool_cleanup_kill+0x3a
#



Stack: [0x7f91865ec000,0x7f91866ed000],  sp=0x7f91866eb110,  free
space=1020k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libtcnative-1.so+0x2c61be]  apr_pool_cleanup_kill+0x3a
C  [libtcnative-1.so+0x2c632c]  apr_pool_cleanup_run+0x2b
j  org.apache.tomcat.jni.SSLContext.free(J)I+0
j  org.apache.tomcat.util.net.openssl.OpenSSLContext.destroy()V+25
j 
org.apache.tomcat.util.net.AbstractEndpoint.releaseSSLContext(Lorg/apache/tomcat/util/net/SSLHostConfig;)V+50
j  org.apache.tomcat.util.net.AbstractEndpoint.destroySsl()V+43
j  org.apache.tomcat.util.net.Nio2Endpoint.unbind()V+16
j  org.apache.tomcat.util.net.AbstractEndpoint.destroy()V+11
j  org.apache.coyote.AbstractProtocol.destroy()V+48
j  org.apache.catalina.connector.Connector.destroyInternal()V+11
j  org.apache.catalina.util.LifecycleBase.destroy()V+239
j  cmg.protocols.http.EmbeddedTomcat.stopService(Ljava/lang/String;)V+97
j  cmg.protocols.http.TomcatController.removeConnector(Ljava/lang/String;)Z+4
j  cmg.stdapp.restservices.frontend.RestWebServicesFE.deactivate()V+31
j 
cmg.services.ConfigurableNodeImpl.stop(Lcom/ericsson/cm/common/configurationmanagement/javabeans/online/ConfigId;ZZZ)Z+146
j 
cmg.communicationmanager.controller.NodeConfigurationHandler.handleManagerRequest(Lcom/ericsson/cm/common/messagingframework/javabeans/Message;)V+1032
j 
cmg.communicationmanager.controller.ManagerRequestHandler$RequestHandlerThread.run()V+299
J 4767 C1
java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V
(225 bytes) @ 0x7f9205dedeb4 [0x7f9205dece80+0x1034]

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 63875] Tomcat 8.5.46, APR/libtcnative crashes

2019-10-25 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=63875

--- Comment #9 from sachin.pip...@globallogic.com ---
Created attachment 36860
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36860=edit
application log on tomcat9

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 63875] Tomcat 8.5.46, APR/libtcnative crashes

2019-10-25 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=63875

--- Comment #8 from sachin.pip...@globallogic.com ---
Created attachment 36859
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36859=edit
runlog on tomcat9

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 63875] Tomcat 8.5.46, APR/libtcnative crashes

2019-10-25 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=63875

--- Comment #7 from sachin.pip...@globallogic.com ---
Created attachment 36858
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36858=edit
JVM log on tomcat9

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 63875] Tomcat 8.5.46, APR/libtcnative crashes

2019-10-25 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=63875

sachin.pip...@globallogic.com changed:

   What|Removed |Added

 Status|NEEDINFO|NEW

--- Comment #6 from sachin.pip...@globallogic.com ---
(In reply to Remy Maucherat from comment #5)
> It would be useful to test Tomcat 9 with NIO.
> The stack indicates a crash on stop only, are the context reloads related to
> it ?

Tested with tomcat 9.0.27 with NIO2
Loaded APR based Apache Tomcat Native library [1.2.23] using APR version
[1.7.0].
OpenSSL successfully initialized [OpenSSL 1.1.1c  28 May 2019]
Please find the attached
logs.(hs_err_pid27914,SERVER2.server.runlog,SERVER2.System.0)
Context reload are of during deployment of the webapp.




2019-10-25 14:35:16.602, SEVERE, module.Communication.HTTP - sachin inside3
getSSLHostConfig _default_
2019-10-25 14:35:16.602, WARNING,
org.apache.tomcat.util.net.SSLHostConfigorg.apache.tomcat.util.net.SSLHostConfig
setProtocols
 - The protocol [TLSv1.1] was added to the list of protocols on the
SSLHostConfig named [_default_]. Check if a +/- prefix is missing.
2019-10-25 14:35:16.602, WARNING,
org.apache.tomcat.util.net.SSLHostConfigorg.apache.tomcat.util.net.SSLHostConfig
setProtocols
 - The protocol [TLSv1] was added to the list of protocols on the SSLHostConfig
named [_default_]. Check if a +/- prefix is missing.
2019-10-25 14:35:16.609, INFO,
org.apache.catalina.core.AprLifecycleListenerorg.apache.catalina.core.AprLifecycleListener
lifecycleEvent
 - Loaded APR based Apache Tomcat Native library [1.2.23] using APR version
[1.7.0].
2019-10-25 14:35:16.609, INFO,
org.apache.catalina.core.AprLifecycleListenerorg.apache.catalina.core.AprLifecycleListener
lifecycleEvent
 - APR capabilities: IPv6 [true], sendfile [true], accept filters [false],
random [true].
2019-10-25 14:35:16.609, INFO,
org.apache.catalina.core.AprLifecycleListenerorg.apache.catalina.core.AprLifecycleListener
lifecycleEvent
 - APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
2019-10-25 14:35:16.613, INFO,
org.apache.catalina.core.AprLifecycleListenerorg.apache.catalina.core.AprLifecycleListener
initializeSSL
 - OpenSSL successfully initialized [OpenSSL 1.1.1c  28 May 2019]
2019-10-25 14:35:16.620, INFO,
org.apache.coyote.http11.Http11Nio2Protocolorg.apache.coyote.http11.AbstractHttp11Protocol
configureUpgradeProtocol
 - The ["https-openssl-nio2-6090"] connector has been configured to support
negotiation to [h2] via ALPN

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 63875] Tomcat 8.5.46, APR/libtcnative crashes

2019-10-23 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=63875

Remy Maucherat  changed:

   What|Removed |Added

 Status|NEW |NEEDINFO

--- Comment #5 from Remy Maucherat  ---
It would be useful to test Tomcat 9 with NIO.
The stack indicates a crash on stop only, are the context reloads related to it
?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 63875] Tomcat 8.5.46, APR/libtcnative crashes

2019-10-23 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=63875

--- Comment #4 from Michael Osipov  ---
(In reply to Mark Thomas from comment #3)
> Both those crashes are during shutdown of the NIO2 connector when it is
> using OpenSSL for TLS.
> 
> It would be worth trying an upgrade to 8.5.47 and Tomcat Native 1.2.23
> although I don't see anything in the changelog that obviously matches this
> issue.

I wonder whether the APR connector would crash here too.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 63875] Tomcat 8.5.46, APR/libtcnative crashes

2019-10-23 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=63875

Mark Thomas  changed:

   What|Removed |Added

Version|unspecified |1.2.21

--- Comment #3 from Mark Thomas  ---
Both those crashes are during shutdown of the NIO2 connector when it is using
OpenSSL for TLS.

It would be worth trying an upgrade to 8.5.47 and Tomcat Native 1.2.23 although
I don't see anything in the changelog that obviously matches this issue.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 63875] Tomcat 8.5.46, APR/libtcnative crashes

2019-10-23 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=63875

sachin.pip...@globallogic.com changed:

   What|Removed |Added

Version|1.1.23  |unspecified

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 63875] Tomcat 8.5.46, APR/libtcnative crashes

2019-10-23 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=63875

sachin.pip...@globallogic.com changed:

   What|Removed |Added

   Assignee|b...@apr.apache.org |dev@tomcat.apache.org
Product|APR |Tomcat Native
  Component|APR |Library
Version|HEAD|1.1.23

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org