You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (JIRA)" <ji...@apache.org> on 2016/05/04 18:06:12 UTC

[jira] [Updated] (TS-4417) clang-analyzer warning: pthread_mutex_destroy(): warning: This lock is still locked

     [ https://issues.apache.org/jira/browse/TS-4417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leif Hedstrom updated TS-4417:
------------------------------
    Fix Version/s: sometime

> clang-analyzer warning: pthread_mutex_destroy(): warning: This lock is still locked
> -----------------------------------------------------------------------------------
>
>                 Key: TS-4417
>                 URL: https://issues.apache.org/jira/browse/TS-4417
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Core
>            Reporter: Leif Hedstrom
>             Fix For: sometime
>
>
> In a number of places, we get warnings for this. I'm baking all of them together into a single Jira here, but we can break this up if needed.
> {code}
>   CXX      UnixEventProcessor.o
> In file included from UnixEThread.cc:29:
> In file included from ./P_EventSystem.h:36:
> In file included from ./I_EventSystem.h:30:
> In file included from ./I_IOBuffer.h:44:
> In file included from ../../lib/ts/Allocator.h:47:
> In file included from ../../lib/ts/ink_resource.h:27:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
> {code}
> {code}
>   CXX      SSLInternal.o
> In file included from SSLSessionCache.cc:22:
> In file included from ./P_SSLConfig.h:34:
> In file included from ../../mgmt/ProxyConfig.h:36:
> In file included from ../../mgmt/ProcessManager.h:39:
> In file included from ../../mgmt/utils/MgmtUtils.h:38:
> In file included from ../../lib/ts/Diags.h:39:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
> {code}
> {code}
>   CXX      SSLClientUtils.o
> In file included from SSLNextProtocolAccept.cc:24:
> In file included from ./P_SSLNextProtocolAccept.h:27:
> In file included from ./P_Net.h:91:
> In file included from ../../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../../lib/ts/Allocator.h:47:
> In file included from ../../lib/ts/ink_resource.h:27:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
> {code}
> {code}
>   CXX      UnixNetPages.o
> In file included from SSLNetVConnection.cc:24:
> In file included from ../../lib/ts/EventNotify.h:34:
> In file included from ../../lib/ts/ink_thread.h:95:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
> {code}
> {code}
>   CXX      UnixNetProcessor.o
> In file included from UnixNetPages.cc:25:
> In file included from ./P_Net.h:91:
> In file included from ../../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../../lib/ts/Allocator.h:47:
> In file included from ../../lib/ts/ink_resource.h:27:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
> {code}
> {code}
>   CXX      UnixNetVConnection.o
> In file included from UnixNet.cc:24:
> In file included from ./P_Net.h:91:
> In file included from ../../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../../lib/ts/Allocator.h:47:
> In file included from ../../lib/ts/ink_resource.h:27:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
> {code}
> {code}
> In file included from UnixNetAccept.cc:24:
> In file included from ./P_Net.h:91:
> In file included from ../../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../../lib/ts/Allocator.h:47:
> In file included from ../../lib/ts/ink_resource.h:27:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
> {code}
> {code}
>   CXX      NetVCTest.o
> In file included from UnixNetProcessor.cc:24:
> In file included from ./P_Net.h:91:
> In file included from ../../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../../lib/ts/Allocator.h:47:
> In file included from ../../lib/ts/ink_resource.h:27:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
>          ^~~~~~~~~~~~~~~~~~~~~~~~
> ../../lib/ts/ink_mutex.h:99:7: warning: This was not the most recently acquired lock. Possible lock order reversal
>   if (pthread_mutex_unlock(m) != 0) {
>       ^~~~~~~~~~~~~~~~~~~~~~~
> 2 warnings generated.
> In file included from UnixUDPNet.cc:32:
> In file included from ./P_Net.h:91:
> In file included from ../../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../../lib/ts/Allocator.h:47:
> In file included from ../../lib/ts/ink_resource.h:27:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
>          ^~~~~~~~~~~~~~~~~~~~~~~~
> ../../lib/ts/ink_mutex.h:99:7: warning: This was not the most recently acquired lock. Possible lock order reversal
>   if (pthread_mutex_unlock(m) != 0) {
>       ^~~~~~~~~~~~~~~~~~~~~~~
> 2 warnings generated.
> In file included from UnixNetVConnection.cc:24:
> In file included from ./P_Net.h:91:
> In file included from ../../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../../lib/ts/Allocator.h:47:
> In file included from ../../lib/ts/ink_resource.h:27:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock has already been destroyed
>   return pthread_mutex_destroy(m);
>          ^~~~~~~~~~~~~~~~~~~~~~~~
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
>          ^~~~~~~~~~~~~~~~~~~~~~~~
> ../../lib/ts/ink_mutex.h:99:7: warning: This lock has already been destroyed
>   if (pthread_mutex_unlock(m) != 0) {
>       ^~~~~~~~~~~~~~~~~~~~~~~
> ../../lib/ts/ink_mutex.h:99:7: warning: This lock has already been unlocked
>   if (pthread_mutex_unlock(m) != 0) {
>       ^~~~~~~~~~~~~~~~~~~~~~~
> 4 warnings generated.
> {code}
> {code}
>   CXX      AIO.o
> In file included from AIO.cc:28:
> In file included from ./P_AIO.h:34:
> In file included from ../../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../../lib/ts/Allocator.h:47:
> In file included from ../../lib/ts/ink_resource.h:27:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
> {code}
>   CXX      SplitDNS.o
> In file included from DNS.cc:24:
> In file included from ./P_DNS.h:34:
> In file included from ./I_DNS.h:34:
> In file included from ../../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../../lib/ts/Allocator.h:47:
> In file included from ../../lib/ts/ink_resource.h:27:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock has already been destroyed
>   return pthread_mutex_destroy(m);
>          ^~~~~~~~~~~~~~~~~~~~~~~~
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
>          ^~~~~~~~~~~~~~~~~~~~~~~~
> ../../lib/ts/ink_mutex.h:99:7: warning: This lock has already been destroyed
>   if (pthread_mutex_unlock(m) != 0) {
>       ^~~~~~~~~~~~~~~~~~~~~~~
> In file included from DNS.cc:24:
> In file included from ./P_DNS.h:34:
> In file included from ./I_DNS.h:34:
> In file included from ../../iocore/eventsystem/I_EventSystem.h:31:
> In file included from ../../iocore/eventsystem/I_Action.h:30:
> In file included from ../../iocore/eventsystem/I_Continuation.h:41:
> In file included from ../../iocore/eventsystem/I_Lock.h:28:
> In file included from ../../lib/ts/Diags.h:43:
> ../../lib/ts/ink_inet.h:748:5: warning: Arguments must not be overlapping buffers
>     memcpy(dst, src, n);
>     ^~~~~~~~~~~~~~~~~~~
> 4 warnings generated.
> {code}
> {code}
>   CXX      MultiCache.o
> In file included from HostDB.cc:26:
> In file included from ./P_HostDB.h:37:
> In file included from ../../iocore/dns/P_SplitDNS.h:34:
> In file included from ../../iocore/dns/P_DNS.h:34:
> In file included from ../../iocore/dns/I_DNS.h:34:
> In file included from ../../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../../lib/ts/Allocator.h:47:
> In file included from ../../lib/ts/ink_resource.h:27:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock has already been destroyed
>   return pthread_mutex_destroy(m);
>          ^~~~~~~~~~~~~~~~~~~~~~~~
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
>          ^~~~~~~~~~~~~~~~~~~~~~~~
> ../../lib/ts/ink_mutex.h:99:7: warning: This lock has already been destroyed
>   if (pthread_mutex_unlock(m) != 0) {
>       ^~~~~~~~~~~~~~~~~~~~~~~
> ../../lib/ts/ink_mutex.h:99:7: warning: This lock has already been unlocked
>   if (pthread_mutex_unlock(m) != 0) {
>       ^~~~~~~~~~~~~~~~~~~~~~~
> ../../lib/ts/ink_mutex.h:99:7: warning: This was not the most recently acquired lock. Possible lock order reversal
>   if (pthread_mutex_unlock(m) != 0) {
>       ^~~~~~~~~~~~~~~~~~~~~~~
> ../../lib/ts/ink_mutex.h:108:10: warning: This lock has already been destroyed
>   return pthread_mutex_trylock(m) == 0;
>          ^~~~~~~~~~~~~~~~~~~~~~~~
> ../../lib/ts/ink_mutex.h:108:10: warning: This lock has already been acquired
>   return pthread_mutex_trylock(m) == 0;
>          ^~~~~~~~~~~~~~~~~~~~~~~~
> 7 warnings generated.
> {code}
>   CXX      OneWayMultiTunnel.o
> In file included from OneWayTunnel.cc:35:
> In file included from ../../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../../lib/ts/Allocator.h:47:
> In file included from ../../lib/ts/ink_resource.h:27:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
>          ^~~~~~~~~~~~~~~~~~~~~~~~
> ../../lib/ts/ink_mutex.h:99:7: warning: This lock has already been unlocked
>   if (pthread_mutex_unlock(m) != 0) {
>       ^~~~~~~~~~~~~~~~~~~~~~~
> 2 warnings generated.
> {code}
> {code}
>   CXX      CacheLink.o
> In file included from CacheDir.cc:24:
> In file included from ./P_Cache.h:28:
> In file included from ../../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../../lib/ts/Allocator.h:47:
> In file included from ../../lib/ts/ink_resource.h:27:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
>          ^~~~~~~~~~~~~~~~~~~~~~~~
> ../../lib/ts/ink_mutex.h:99:7: warning: This was not the most recently acquired lock. Possible lock order reversal
>   if (pthread_mutex_unlock(m) != 0) {
>       ^~~~~~~~~~~~~~~~~~~~~~~
> 2 warnings generated.
> {code}
> {code}
>   CXX      CachePagesInternal.o
> In file included from CacheLink.cc:24:
> In file included from ./P_Cache.h:28:
> In file included from ../../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../../lib/ts/Allocator.h:47:
> In file included from ../../lib/ts/ink_resource.h:27:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
> {code}
> {code}
>   CXX      CacheRead.o
> In file included from CachePagesInternal.cc:24:
> In file included from ./P_Cache.h:28:
> In file included from ../../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../../lib/ts/Allocator.h:47:
> In file included from ../../lib/ts/ink_resource.h:27:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
> {code}
> {code}
>   CXX      CacheWrite.o
> In file included from Cache.cc:24:
> In file included from ./P_Cache.h:28:
> In file included from ../../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../../lib/ts/Allocator.h:47:
> In file included from ../../lib/ts/ink_resource.h:27:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock has already been destroyed
>   return pthread_mutex_destroy(m);
> {code}
> {code}
>   CXX      Inline.o
> In file included from CacheVol.cc:24:
> In file included from ./P_Cache.h:28:
> In file included from ../../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../../lib/ts/Allocator.h:47:
> In file included from ../../lib/ts/ink_resource.h:27:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
> {code}
> {code}
>   CXX      Store.o
> In file included from CacheRead.cc:24:
> In file included from ./P_Cache.h:28:
> In file included from ../../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../../lib/ts/Allocator.h:47:
> In file included from ../../lib/ts/ink_resource.h:27:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
> {code}
> {code}
>   CXX      CacheTest.o
> In file included from RamCacheCLFUS.cc:27:
> In file included from ./P_Cache.h:28:
> In file included from ../../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../../lib/ts/Allocator.h:47:
> In file included from ../../lib/ts/ink_resource.h:27:
> ../../lib/ts/ink_mutex.h:99:7: warning: This lock has already been unlocked
>   if (pthread_mutex_unlock(m) != 0) {
>       ^~~~~~~~~~~~~~~~~~~~~~~
> 1 warning generated.
> In file included from CacheWrite.cc:24:
> In file included from ./P_Cache.h:28:
> In file included from ../../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../../lib/ts/Allocator.h:47:
> In file included from ../../lib/ts/ink_resource.h:27:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
>          ^~~~~~~~~~~~~~~~~~~~~~~~
> 1 warning generated.
> {code}
> {code}
>   CXX      ClusterHandler.o
> In file included from ClusterAPI.cc:30:
> In file included from ./P_Cluster.h:28:
> In file included from ../../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../../lib/ts/Allocator.h:47:
> In file included from ../../lib/ts/ink_resource.h:27:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
>          ^~~~~~~~~~~~~~~~~~~~~~~~
> ../../lib/ts/ink_mutex.h:99:7: warning: This lock has already been unlocked
>   if (pthread_mutex_unlock(m) != 0) {
>       ^~~~~~~~~~~~~~~~~~~~~~~
> ../../lib/ts/ink_mutex.h:99:7: warning: This was not the most recently acquired lock. Possible lock order reversal
>   if (pthread_mutex_unlock(m) != 0) {
>       ^~~~~~~~~~~~~~~~~~~~~~~
> 3 warnings generated.
> {code}
> {code}
>   CXX      ClusterHandlerBase.o
> In file included from ClusterConfig.cc:29:
> In file included from ./P_Cluster.h:28:
> In file included from ../../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../../lib/ts/Allocator.h:47:
> In file included from ../../lib/ts/ink_resource.h:27:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock has already been destroyed
>   return pthread_mutex_destroy(m);
>          ^~~~~~~~~~~~~~~~~~~~~~~~
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
>          ^~~~~~~~~~~~~~~~~~~~~~~~
> ../../lib/ts/ink_mutex.h:99:7: warning: This lock has already been destroyed
>   if (pthread_mutex_unlock(m) != 0) {
>       ^~~~~~~~~~~~~~~~~~~~~~~
> 3 warnings generated.
> {code}
> {code}
>   CXX      ClusterProcessor.o
> In file included from ClusterHandlerBase.cc:29:
> In file included from ./P_Cluster.h:28:
> In file included from ../../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../../lib/ts/Allocator.h:47:
> In file included from ../../lib/ts/ink_resource.h:27:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock has already been destroyed
>   return pthread_mutex_destroy(m);
>          ^~~~~~~~~~~~~~~~~~~~~~~~
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
>          ^~~~~~~~~~~~~~~~~~~~~~~~
> ../../lib/ts/ink_mutex.h:99:7: warning: This lock has already been destroyed
>   if (pthread_mutex_unlock(m) != 0) {
>       ^~~~~~~~~~~~~~~~~~~~~~~
> 3 warnings generated.
> {code}
> {code}
>   CXX      ClusterVConnection.o
> In file included from ClusterHandler.cc:30:
> In file included from ./P_Cluster.h:28:
> In file included from ../../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../../lib/ts/Allocator.h:47:
> In file included from ../../lib/ts/ink_resource.h:27:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
> {code}
> {code}
>   CXX      Inline.o
> In file included from ClusterProcessor.cc:29:
> In file included from ./P_Cluster.h:28:
> In file included from ../../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../../lib/ts/Allocator.h:47:
> In file included from ../../lib/ts/ink_resource.h:27:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
>          ^~~~~~~~~~~~~~~~~~~~~~~~
> 1 warning generated.
> In file included from ClusterCache.cc:29:
> In file included from ./P_Cluster.h:28:
> In file included from ../../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../../lib/ts/Allocator.h:47:
> In file included from ../../lib/ts/ink_resource.h:27:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
>          ^~~~~~~~~~~~~~~~~~~~~~~~
> ../../lib/ts/ink_mutex.h:99:7: warning: This lock has already been unlocked
>   if (pthread_mutex_unlock(m) != 0) {
>       ^~~~~~~~~~~~~~~~~~~~~~~
> 2 warnings generated.
> {code}
> {code}
>   CXX      HttpDebugNames.o
> In file included from Http1ClientSession.cc:36:
> In file included from ./Http1ClientSession.h:36:
> In file included from ../../iocore/net/P_Net.h:91:
> In file included from ../../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../../lib/ts/Allocator.h:47:
> In file included from ../../lib/ts/ink_resource.h:27:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock has already been destroyed
>   return pthread_mutex_destroy(m);
>          ^~~~~~~~~~~~~~~~~~~~~~~~
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
>          ^~~~~~~~~~~~~~~~~~~~~~~~
> ../../lib/ts/ink_mutex.h:99:7: warning: This lock has already been destroyed
>   if (pthread_mutex_unlock(m) != 0) {
>       ^~~~~~~~~~~~~~~~~~~~~~~
> ../../lib/ts/ink_mutex.h:99:7: warning: This lock has already been unlocked
>   if (pthread_mutex_unlock(m) != 0) {
>       ^~~~~~~~~~~~~~~~~~~~~~~
> 4 warnings generated.
> {code}
> {code}
>   CXX      HttpServerSession.o
> In file included from HttpProxyServerMain.cc:25:
> In file included from ../../iocore/net/P_Net.h:91:
> In file included from ../../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../../lib/ts/Allocator.h:47:
> In file included from ../../lib/ts/ink_resource.h:27:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
> {code}
> {code}
>   CXX      HttpSessionManager.o
> In file included from HttpPages.cc:33:
> In file included from ./HttpPages.h:38:
> In file included from ../../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../../lib/ts/Allocator.h:47:
> In file included from ../../lib/ts/ink_resource.h:27:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
>          ^~~~~~~~~~~~~~~~~~~~~~~~
> ../../lib/ts/ink_mutex.h:99:7: warning: This was not the most recently acquired lock. Possible lock order reversal
>   if (pthread_mutex_unlock(m) != 0) {
>       ^~~~~~~~~~~~~~~~~~~~~~~
> 2 warnings generated.
> {code}
> {code}
>   CXX      HttpTransactCache.o
> In file included from HttpSessionManager.cc:33:
> In file included from ./HttpSessionManager.h:36:
> In file included from ../../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../../lib/ts/Allocator.h:47:
> In file included from ../../lib/ts/ink_resource.h:27:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
> {code}
> {code}
>   CXX      HttpUpdateSM.o
> In file included from HttpUpdateSM.cc:35:
> In file included from ./HttpUpdateSM.h:38:
> In file included from ../../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../../lib/ts/Allocator.h:47:
> In file included from ../../lib/ts/ink_resource.h:27:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
> {code}
> {code}
> In file included from HttpSM.cc:25:
> In file included from ./../ProxyClientTransaction.h:27:
> In file included from ../../proxy/ProxyClientSession.h:29:
> In file included from ../../iocore/net/P_Net.h:91:
> In file included from ../../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../../lib/ts/Allocator.h:47:
> In file included from ../../lib/ts/ink_resource.h:27:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
> {code}
> {code}
>   CXX      RegressionHPACK.o
> In file included from Http2ClientSession.cc:24:
> In file included from ./Http2ClientSession.h:27:
> In file included from ./HTTP2.h:29:
> In file included from ./HPACK.h:28:
> In file included from ../../lib/ts/Vec.h:33:
> In file included from ../../lib/ts/Diags.h:39:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
> {code}
> {code}
>   CXXLD    test_Huffmancode
> In file included from Http2Stream.cc:24:
> In file included from ./HTTP2.h:29:
> In file included from ./HPACK.h:28:
> In file included from ../../lib/ts/Vec.h:33:
> In file included from ../../lib/ts/Diags.h:39:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock has already been destroyed
>   return pthread_mutex_destroy(m);
>          ^~~~~~~~~~~~~~~~~~~~~~~~
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
>          ^~~~~~~~~~~~~~~~~~~~~~~~
> ../../lib/ts/ink_mutex.h:99:7: warning: This lock has already been destroyed
>   if (pthread_mutex_unlock(m) != 0) {
>       ^~~~~~~~~~~~~~~~~~~~~~~
> ../../lib/ts/ink_mutex.h:99:7: warning: This lock has already been unlocked
>   if (pthread_mutex_unlock(m) != 0) {
>       ^~~~~~~~~~~~~~~~~~~~~~~
> ../../lib/ts/ink_mutex.h:99:7: warning: This was not the most recently acquired lock. Possible lock order reversal
>   if (pthread_mutex_unlock(m) != 0) {
>       ^~~~~~~~~~~~~~~~~~~~~~~
> 5 warnings generated.
> {code}
> {code}
> In file included from Http2ConnectionState.cc:24:
> In file included from ../../iocore/net/P_Net.h:91:
> In file included from ../../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../../lib/ts/Allocator.h:47:
> In file included from ../../lib/ts/ink_resource.h:27:
> ../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
> {code}
> {code}
>   CXX      Plugin.o
> In file included from InkIOCoreAPI.cc:31:
> In file included from ./api/ts/InkAPIPrivateIOCore.h:32:
> In file included from ../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../lib/ts/Allocator.h:47:
> In file included from ../lib/ts/ink_resource.h:27:
> ../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
> {code}
> {code}
>   CXX      ProxyClientTransaction.o
> In file included from ProxyClientSession.cc:24:
> In file included from ./http/HttpConfig.h:48:
> In file included from ../mgmt/ProxyConfig.h:36:
> In file included from ../mgmt/ProcessManager.h:39:
> In file included from ../mgmt/utils/MgmtUtils.h:38:
> In file included from ../lib/ts/Diags.h:39:
> ../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
> {code}
> {code}
>   CXX      ReverseProxy.o
> In file included from InkAPI.cc:31:
> In file included from ./InkAPIInternal.h:27:
> In file included from ../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../lib/ts/Allocator.h:47:
> In file included from ../lib/ts/ink_resource.h:27:
> ../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
> {code}
> {code}
>   CXX      RegressionSM.o
> In file included from PluginVC.cc:74:
> In file included from ./PluginVC.h:40:
> In file included from ../iocore/net/P_Net.h:91:
> In file included from ../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../lib/ts/Allocator.h:47:
> In file included from ../lib/ts/ink_resource.h:27:
> ../lib/ts/ink_mutex.h:84:10: warning: This lock has already been destroyed
>   return pthread_mutex_destroy(m);
>          ^~~~~~~~~~~~~~~~~~~~~~~~
> ../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
>          ^~~~~~~~~~~~~~~~~~~~~~~~
> ../lib/ts/ink_mutex.h:99:7: warning: This lock has already been unlocked
>   if (pthread_mutex_unlock(m) != 0) {
>       ^~~~~~~~~~~~~~~~~~~~~~~
> ../lib/ts/ink_mutex.h:99:7: warning: This was not the most recently acquired lock. Possible lock order reversal
>   if (pthread_mutex_unlock(m) != 0) {
>       ^~~~~~~~~~~~~~~~~~~~~~~
> 4 warnings generated.
> {code}
> {code}
>   CXX      logstats.o
> In file included from Transform.cc:62:
> In file included from ../mgmt/ProxyConfig.h:36:
> In file included from ../mgmt/ProcessManager.h:39:
> In file included from ../mgmt/utils/MgmtUtils.h:38:
> In file included from ../lib/ts/Diags.h:39:
> ../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
>          ^~~~~~~~~~~~~~~~~~~~~~~~
> ../lib/ts/ink_mutex.h:99:7: warning: This was not the most recently acquired lock. Possible lock order reversal
>   if (pthread_mutex_unlock(m) != 0) {
>       ^~~~~~~~~~~~~~~~~~~~~~~
> 2 warnings generated.
> {code}
> {code}
>   CXX      sac.o
> In file included from RegressionSM.cc:24:
> In file included from ../iocore/eventsystem/P_EventSystem.h:36:
> In file included from ../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../lib/ts/Allocator.h:47:
> In file included from ../lib/ts/ink_resource.h:27:
> ../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
> {code}
> {code}
>   CXX      tsmemcache_la-tsmemcache.lo
> In file included from tsmemcache.cc:24:
> In file included from ./tsmemcache.h:27:
> In file included from ../../../iocore/eventsystem/I_EventSystem.h:30:
> In file included from ../../../iocore/eventsystem/I_IOBuffer.h:44:
> In file included from ../../../lib/ts/Allocator.h:47:
> In file included from ../../../lib/ts/ink_resource.h:27:
> ../../../lib/ts/ink_mutex.h:84:10: warning: This lock is still locked
>   return pthread_mutex_destroy(m);
>          ^~~~~~~~~~~~~~~~~~~~~~~~
> ../../../lib/ts/ink_mutex.h:99:7: warning: This lock has already been unlocked
>   if (pthread_mutex_unlock(m) != 0) {
>       ^~~~~~~~~~~~~~~~~~~~~~~
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)