You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@celix.apache.org by GitBox <gi...@apache.org> on 2022/04/04 07:22:44 UTC

[GitHub] [celix] PengZheng commented on issue #406: RSA use-after-free, reported by CI

PengZheng commented on issue #406:
URL: https://github.com/apache/celix/issues/406#issuecomment-1087206065

   Add another CI report:
   ```
     24: ==55639==ERROR: AddressSanitizer: heap-use-after-free on address 0x6040000d9ca0 at pc 0x000113524ada bp 0x70000f297970 sp 0x70000f297968
     24: READ of size 8 at 0x6040000d9ca0 thread T452
     24:     #0 0x113524ad9 in topologyManager_closeImports topology_manager.c:167
     24:     #1 0x11352d3c8 in bundleActivator_stop activator.c:242
     24:     #2 0x100384b98 in celix_framework_stopBundleEntry framework.c:2382
     24:     #3 0x10038d86a in framework_shutdown framework.c:1374
     24:     #4 0x7fff204d38fb in _pthread_start+0xdf (libsystem_pthread.dylib:x86_64+0x68fb)
     24:     #5 0x7fff204cf442 in thread_start+0xe (libsystem_pthread.dylib:x86_64+0x2442)
     24: 
     24: 0x6040000d9ca0 is located 16 bytes inside of 40-byte region [0x6040000d9c90,0x6040000d9cb8)
     24: freed by thread T442 here:
     24:     #0 0x1005704c9 in wrap_free+0xa9 (libclang_rt.asan_osx_dynamic.dylib:x86_64+0x444c9)
     24:     #1 0x1131bd96e in endpointDescription_destroy endpoint_description.c:75
     24:     #2 0x113181280 in endpointDiscoveryPoller_poll endpoint_discovery_poller.c:267
     24:     #3 0x1131807d4 in endpointDiscoveryPoller_performPeriodicPoll endpoint_discovery_poller.c:312
     24:     #4 0x7fff204d38fb in _pthread_start+0xdf (libsystem_pthread.dylib:x86_64+0x68fb)
     24:     #5 0x7fff204cf442 in thread_start+0xe (libsystem_pthread.dylib:x86_64+0x2442)
     24: 
     24: previously allocated by thread T0 here:
     24:     #0 0x100570755 in wrap_calloc+0xa5 (libclang_rt.asan_osx_dynamic.dylib:x86_64+0x44755)
     24:     #1 0x1131bd3b8 in endpointDescription_create endpoint_description.c:48
     24:     #2 0x11317de25 in endpointDescriptorReader_parseDocument endpoint_descriptor_reader.c:202
     24:     #3 0x113181872 in endpointDiscoveryPoller_getEndpoints endpoint_discovery_poller.c:383
     24:     #4 0x113181151 in endpointDiscoveryPoller_poll endpoint_discovery_poller.c:257
     24:     #5 0x113180520 in endpointDiscoveryPoller_addDiscoveryEndpoint endpoint_discovery_poller.c:201
     24:     #6 0x11317feec in endpointDiscoveryPoller_create endpoint_discovery_poller.c:102
     24:     #7 0x11317a4e2 in discovery_start discovery_impl.c:68
     24:     #8 0x11317c886 in bundleActivator_start discovery_activator.c:125
     24:     #9 0x1003874dc in celix_framework_startBundleEntry framework.c:2571
     24:     #10 0x1003cfbf8 in celix_framework_startBundleOnANonCelixEventThread framework_bundle_lifecycle_handler.c:113
     24:     #11 0x10038640b in celix_framework_startBundleInternal framework.c:2455
     24:     #12 0x10037bdde in celix_framework_startBundle framework.c:2465
     24:     #13 0x1003892a1 in framework_autoStartConfiguredBundlesForList framework.c:588
     24:     #14 0x100379d23 in framework_autoStartConfiguredBundles framework.c:543
     24:     #15 0x100379070 in framework_start framework.c:517
     24:     #16 0x1003c3e02 in celix_frameworkFactory_createFramework celix_framework_factory.c:34
     24:     #17 0x100093038 in setupFm(bool) rsa_client_server_tests.cc:73
     24:     #18 0x100094181 in RsaDfiClientServerWithCurlShareTests::RsaDfiClientServerWithCurlShareTests() rsa_client_server_tests.cc:319
     24:     #19 0x1000943e8 in RsaDfiClientServerWithCurlShareTests_TestRemoteComplex_Test::RsaDfiClientServerWithCurlShareTests_TestRemoteComplex_Test() rsa_client_server_tests.cc:363
     24:     #20 0x1000943c4 in RsaDfiClientServerWithCurlShareTests_TestRemoteComplex_Test::RsaDfiClientServerWithCurlShareTests_TestRemoteComplex_Test() rsa_client_server_tests.cc:363
     24:     #21 0x10009437b in testing::internal::TestFactoryImpl<RsaDfiClientServerWithCurlShareTests_TestRemoteComplex_Test>::CreateTest() gtest-internal.h:472
     24:     #22 0x10015c797 in testing::Test* testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test*>(testing::internal::TestFactoryBase*, testing::Test* (testing::internal::TestFactoryBase::*)(), char const*) gtest.cc:2607
     24:     #23 0x1000ca591 in testing::Test* testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test*>(testing::internal::TestFactoryBase*, testing::Test* (testing::internal::TestFactoryBase::*)(), char const*) gtest.cc:2643
     24:     #24 0x1000c9e5f in testing::TestInfo::Run() gtest.cc:2851
     24:     #25 0x1000cccce in testing::TestSuite::Run() gtest.cc:3015
     24:     #26 0x1000f1082 in testing::internal::UnitTestImpl::RunAllTests() gtest.cc:5855
     24:     #27 0x100169287 in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) gtest.cc:2607
     24:     #28 0x1000f0001 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) gtest.cc:2643
     24:     #29 0x1000efab4 in testing::UnitTest::Run() gtest.cc:5438
     24: 
     24: Thread T452 created by T0 here:
     24:     #0 0x10056a4ec in wrap_pthread_create+0x5c (libclang_rt.asan_osx_dynamic.dylib:x86_64+0x3e4ec)
     24:     #1 0x1004f1f97 in celixThread_create celix_threads.c:38
     24:     #2 0x10037899e in frameworkActivator_stop framework.c:1688
     24:     #3 0x100384b98 in celix_framework_stopBundleEntry framework.c:2382
     24:     #4 0x1003d009e in celix_framework_stopBundleOnANonCelixEventThread framework_bundle_lifecycle_handler.c:128
     24:     #5 0x100385d11 in celix_framework_stopBundleInternal framework.c:2317
     24:     #6 0x100379f2e in celix_framework_stopBundle framework.c:2331
     24:     #7 0x100379ee8 in framework_stop framework.c:599
     24:     #8 0x1003c3f4f in celix_frameworkFactory_destroyFramework celix_framework_factory.c:45
     24:     #9 0x100098edb in teardownFm() rsa_client_server_tests.cc:81
     24:     #10 0x100098f53 in RsaDfiClientServerWithCurlShareTests::~RsaDfiClientServerWithCurlShareTests() rsa_client_server_tests.cc:322
     24:     #11 0x100098ef4 in RsaDfiClientServerWithCurlShareTests_TestRemoteComplex_Test::~RsaDfiClientServerWithCurlShareTests_TestRemoteComplex_Test() rsa_client_server_tests.cc:355
     24:     #12 0x100090f94 in RsaDfiClientServerWithCurlShareTests_TestRemoteComplex_Test::~RsaDfiClientServerWithCurlShareTests_TestRemoteComplex_Test() rsa_client_server_tests.cc:355
     24:     #13 0x100090fb8 in RsaDfiClientServerWithCurlShareTests_TestRemoteComplex_Test::~RsaDfiClientServerWithCurlShareTests_TestRemoteComplex_Test() rsa_client_server_tests.cc:355
     24:     #14 0x1000caae8 in testing::Test::DeleteSelf_() gtest.h:501
     24:     #15 0x10015bc7c in void testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) gtest.cc:2607
     24:     #16 0x1000c75af in void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) gtest.cc:2643
     24:     #17 0x1000c9fe3 in testing::TestInfo::Run() gtest.cc:2867
     24:     #18 0x1000cccce in testing::TestSuite::Run() gtest.cc:3015
     24:     #19 0x1000f1082 in testing::internal::UnitTestImpl::RunAllTests() gtest.cc:5855
     24:     #20 0x100169287 in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) gtest.cc:2607
     24:     #21 0x1000f0001 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) gtest.cc:2643
     24:     #22 0x1000efab4 in testing::UnitTest::Run() gtest.cc:5438
     24:     #23 0x1000731a0 in RUN_ALL_TESTS() gtest.h:2490
     24:     #24 0x100073112 in main main.cc:24
     24:     #25 0x7fff204eef3c in start+0x0 (libdyld.dylib:x86_64+0x15f3c)
     24: 
     24: Thread T442 created by T0 here:
     24:     #0 0x10056a4ec in wrap_pthread_create+0x5c (libclang_rt.asan_osx_dynamic.dylib:x86_64+0x3e4ec)
     24:     #1 0x1004f1f97 in celixThread_create celix_threads.c:38
     24:     #2 0x113180093 in endpointDiscoveryPoller_create endpoint_discovery_poller.c:115
     24:     #3 0x11317a4e2 in discovery_start discovery_impl.c:68
     24:     #4 0x11317c886 in bundleActivator_start discovery_activator.c:125
     24:     #5 0x1003874dc in celix_framework_startBundleEntry framework.c:2571
     24:     #6 0x1003cfbf8 in celix_framework_startBundleOnANonCelixEventThread framework_bundle_lifecycle_handler.c:113
     24:     #7 0x10038640b in celix_framework_startBundleInternal framework.c:2455
     24:     #8 0x10037bdde in celix_framework_startBundle framework.c:2465
     24:     #9 0x1003892a1 in framework_autoStartConfiguredBundlesForList framework.c:588
     24:     #10 0x100379d23 in framework_autoStartConfiguredBundles framework.c:543
     24:     #11 0x100379070 in framework_start framework.c:517
     24:     #12 0x1003c3e02 in celix_frameworkFactory_createFramework celix_framework_factory.c:34
     24:     #13 0x100093038 in setupFm(bool) rsa_client_server_tests.cc:73
     24:     #14 0x100094181 in RsaDfiClientServerWithCurlShareTests::RsaDfiClientServerWithCurlShareTests() rsa_client_server_tests.cc:319
     24:     #15 0x1000943e8 in RsaDfiClientServerWithCurlShareTests_TestRemoteComplex_Test::RsaDfiClientServerWithCurlShareTests_TestRemoteComplex_Test() rsa_client_server_tests.cc:363
     24:     #16 0x1000943c4 in RsaDfiClientServerWithCurlShareTests_TestRemoteComplex_Test::RsaDfiClientServerWithCurlShareTests_TestRemoteComplex_Test() rsa_client_server_tests.cc:363
     24:     #17 0x10009437b in testing::internal::TestFactoryImpl<RsaDfiClientServerWithCurlShareTests_TestRemoteComplex_Test>::CreateTest() gtest-internal.h:472
     24:     #18 0x10015c797 in testing::Test* testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test*>(testing::internal::TestFactoryBase*, testing::Test* (testing::internal::TestFactoryBase::*)(), char const*) gtest.cc:2607
     24:     #19 0x1000ca591 in testing::Test* testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test*>(testing::internal::TestFactoryBase*, testing::Test* (testing::internal::TestFactoryBase::*)(), char const*) gtest.cc:2643
     24:     #20 0x1000c9e5f in testing::TestInfo::Run() gtest.cc:2851
     24:     #21 0x1000cccce in testing::TestSuite::Run() gtest.cc:3015
     24:     #22 0x1000f1082 in testing::internal::UnitTestImpl::RunAllTests() gtest.cc:5855
     24:     #23 0x100169287 in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) gtest.cc:2607
     24:     #24 0x1000f0001 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) gtest.cc:2643
     24:     #25 0x1000efab4 in testing::UnitTest::Run() gtest.cc:5438
     24:     #26 0x1000731a0 in RUN_ALL_TESTS() gtest.h:2490
     24:     #27 0x100073112 in main main.cc:24
     24:     #28 0x7fff204eef3c in start+0x0 (libdyld.dylib:x86_64+0x15f3c)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@celix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org