PengZheng opened a new issue #406:
URL: https://github.com/apache/celix/issues/406


   Added for record: 
https://github.com/apache/celix/runs/5701760764?check_suite_focus=true
   
   ```
   Warning: -03-26T06:49:24] [warning] [celix_rsa_discovery] ENDPOINT_POLLER: 
unable to read endpoints from 
http://localhost:50992/org.apache.celix.discovery.configured, reason: Couldn't 
connect to server
     24: =================================================================
     24: ==22127==ERROR: AddressSanitizer: heap-use-after-free on address 
0x60300009a5d0 at pc 0x7fe423539dbb bp 0x7fe3faa0e4d0 sp 0x7fe3faa0dc48
     24: READ of size 2 at 0x60300009a5d0 thread T184
     24:     #0 0x7fe423539dba  (/lib/x86_64-linux-gnu/libasan.so.5+0x9cdba)
     24:     #1 0x7fe42353afa6 in vfprintf 
(/lib/x86_64-linux-gnu/libasan.so.5+0x9dfa6)
     24:     #2 0x7fe4232c7c73 in celix_logUtils_vLogToStdoutDetails 
/home/runner/work/celix/celix/libs/utils/src/celix_log_utils.c:157
     24:     #3 0x7fe4232c7861 in celix_logUtils_vLogToStdout 
/home/runner/work/celix/celix/libs/utils/src/celix_log_utils.c:128
     24:     #4 0x7fe416e1f7e0 in celix_logHelper_vlogDetails 
/home/runner/work/celix/celix/bundles/logging/log_helper/src/celix_log_helper.c:156
     24:     #5 0x7fe416e1f679 in celix_logHelper_vlog 
/home/runner/work/celix/celix/bundles/logging/log_helper/src/celix_log_helper.c:141
     24:     #6 0x7fe416e1f406 in celix_logHelper_log 
/home/runner/work/celix/celix/bundles/logging/log_helper/src/celix_log_helper.c:129
     24:     #7 0x7fe416e168a6 in topologyManager_closeImports 
/home/runner/work/celix/celix/bundles/remote_services/topology_manager/src/topology_manager.c:167
     24:     #8 0x7fe416e1e10d in bundleActivator_stop 
/home/runner/work/celix/celix/bundles/remote_services/topology_manager/src/activator.c:242
     24:     #9 0x7fe4233a80d4 in celix_framework_stopBundleEntry 
/home/runner/work/celix/celix/libs/framework/src/framework.c:2382
     24:     #10 0x7fe4233a0390 in framework_shutdown 
/home/runner/work/celix/celix/libs/framework/src/framework.c:1374
     24:     #11 0x7fe422f2f608 in start_thread 
(/lib/x86_64-linux-gnu/libpthread.so.0+0x9608)
     24:     #12 0x7fe422e56292 in __clone 
(/lib/x86_64-linux-gnu/libc.so.6+0x122292)
     24: 
     24: 0x60300009a5d0 is located 0 bytes inside of 31-byte region 
[0x60300009a5d0,0x60300009a5ef)
     24: freed by thread T173 here:
     24:     #0 0x7fe4235aa7cf in __interceptor_free 
(/lib/x86_64-linux-gnu/libasan.so.5+0x10d7cf)
     24:     #1 0x7fe416f1f942 in endpointDescription_destroy 
/home/runner/work/celix/celix/bundles/remote_services/rsa_common/src/endpoint_description.c:74
     24:     #2 0x7fe416ef1fc9 in endpointDiscoveryPoller_poll 
/home/runner/work/celix/celix/bundles/remote_services/discovery_common/src/endpoint_discovery_poller.c:267
     24:     #3 0x7fe416ef22f7 in endpointDiscoveryPoller_performPeriodicPoll 
/home/runner/work/celix/celix/bundles/remote_services/discovery_common/src/endpoint_discovery_poller.c:312
     24:     #4 0x7fe422f2f608 in start_thread 
(/lib/x86_64-linux-gnu/libpthread.so.0+0x9608)
     24: 
     24: previously allocated by thread T0 here:
     24:     #0 0x7fe4235aabc8 in malloc 
(/lib/x86_64-linux-gnu/libasan.so.5+0x10dbc8)
     24:     #1 0x7fe423513233  (/lib/x86_64-linux-gnu/libasan.so.5+0x76233)
     24:     #2 0x7fe416f1f69f in endpointDescription_create 
/home/runner/work/celix/celix/bundles/remote_services/rsa_common/src/endpoint_description.c:53
     24:     #3 0x7fe416eef960 in endpointDescriptorReader_parseDocument 
/home/runner/work/celix/celix/bundles/remote_services/discovery_common/src/endpoint_descriptor_reader.c:202
     24:     #4 0x7fe416ef2912 in endpointDiscoveryPoller_getEndpoints 
/home/runner/work/celix/celix/bundles/remote_services/discovery_common/src/endpoint_discovery_poller.c:383
     24:     #5 0x7fe416ef1ea0 in endpointDiscoveryPoller_poll 
/home/runner/work/celix/celix/bundles/remote_services/discovery_common/src/endpoint_discovery_poller.c:257
     24:     #6 0x7fe416ef1abd in endpointDiscoveryPoller_addDiscoveryEndpoint 
/home/runner/work/celix/celix/bundles/remote_services/discovery_common/src/endpoint_discovery_poller.c:201
     24:     #7 0x7fe416ef133b in endpointDiscoveryPoller_create 
/home/runner/work/celix/celix/bundles/remote_services/discovery_common/src/endpoint_discovery_poller.c:102
     24:     #8 0x7fe416eecae0 in discovery_start 
/home/runner/work/celix/celix/bundles/remote_services/discovery_configured/src/discovery_impl.c:68
     24:     #9 0x7fe416eee66d in bundleActivator_start 
/home/runner/work/celix/celix/bundles/remote_services/discovery_common/src/discovery_activator.c:125
     24:     #10 0x7fe4233a97c1 in celix_framework_startBundleEntry 
/home/runner/work/celix/celix/libs/framework/src/framework.c:2571
     24:     #11 0x7fe4233dea86 in 
celix_framework_startBundleOnANonCelixEventThread 
/home/runner/work/celix/celix/libs/framework/src/framework_bundle_lifecycle_handler.c:113
     24:     #12 0x7fe4233a8b07 in celix_framework_startBundleInternal 
/home/runner/work/celix/celix/libs/framework/src/framework.c:2455
     24:     #13 0x7fe4233a8b65 in celix_framework_startBundle 
/home/runner/work/celix/celix/libs/framework/src/framework.c:2465
     24:     #14 0x7fe42339b121 in framework_autoStartConfiguredBundlesForList 
/home/runner/work/celix/celix/libs/framework/src/framework.c:588
     24:     #15 0x7fe42339ab70 in framework_autoStartConfiguredBundles 
/home/runner/work/celix/celix/libs/framework/src/framework.c:543
     24:     #16 0x7fe42339a52a in framework_start 
/home/runner/work/celix/celix/libs/framework/src/framework.c:517
     24:     #17 0x7fe4233d4d31 in celix_frameworkFactory_createFramework 
/home/runner/work/celix/celix/libs/framework/src/celix_framework_factory.c:34
     24:     #18 0x55abe01baa87 in setupFm 
/home/runner/work/celix/celix/bundles/remote_services/remote_service_admin_dfi/gtest/src/rsa_client_server_tests.cc:73
     24:     #19 0x55abe01c432b in 
RsaDfiClientServerTests::RsaDfiClientServerTests() 
/home/runner/work/celix/celix/bundles/remote_services/remote_service_admin_dfi/gtest/src/rsa_client_server_tests.cc:308
     24:     #20 0x55abe01c6f71 in 
RsaDfiClientServerTests_TestRemoteString_Test::RsaDfiClientServerTests_TestRemoteString_Test()
 
/home/runner/work/celix/celix/bundles/remote_services/remote_service_admin_dfi/gtest/src/rsa_client_server_tests.cc:371
     24:     #21 0x55abe01c6fcb in 
testing::internal::TestFactoryImpl<RsaDfiClientServerTests_TestRemoteString_Test>::CreateTest()
 
/home/runner/work/celix/celix/build/_deps/googletest-src/googletest/include/gtest/internal/gtest-internal.h:472
     24:     #22 0x55abe0254673 in testing::Test* 
testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::TestFactoryBase,
 testing::Test*>(testing::internal::TestFactoryBase*, testing::Test* 
(testing::internal::TestFactoryBase::*)(), char const*) 
/home/runner/work/celix/celix/build/_deps/googletest-src/googletest/src/gtest.cc:2607
     24:     #23 0x55abe0242988 in testing::Test* 
testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase,
 testing::Test*>(testing::internal::TestFactoryBase*, testing::Test* 
(testing::internal::TestFactoryBase::*)(), char const*) 
/home/runner/work/celix/celix/build/_deps/googletest-src/googletest/src/gtest.cc:2643
     24:     #24 0x55abe01de056 in testing::TestInfo::Run() 
/home/runner/work/celix/celix/build/_deps/googletest-src/googletest/src/gtest.cc:2851
     24:     #25 0x55abe01df261 in testing::TestSuite::Run() 
/home/runner/work/celix/celix/build/_deps/googletest-src/googletest/src/gtest.cc:3015
     24:     #26 0x55abe0204e07 in 
testing::internal::UnitTestImpl::RunAllTests() 
/home/runner/work/celix/celix/build/_deps/googletest-src/googletest/src/gtest.cc:5855
     24:     #27 0x55abe02579fb in bool 
testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,
 bool>(testing::internal::UnitTestImpl*, bool 
(testing::internal::UnitTestImpl::*)(), char const*) 
/home/runner/work/celix/celix/build/_deps/googletest-src/googletest/src/gtest.cc:2607
     24:     #28 0x55abe0244d7f in bool 
testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,
 bool>(testing::internal::UnitTestImpl*, bool 
(testing::internal::UnitTestImpl::*)(), char const*) 
/home/runner/work/celix/celix/build/_deps/googletest-src/googletest/src/gtest.cc:2643
     24:     #29 0x55abe0201805 in testing::UnitTest::Run() 
/home/runner/work/celix/celix/build/_deps/googletest-src/googletest/src/gtest.cc:5438
     24: 
     24: Thread T184 created by T0 here:
     24:     #0 0x7fe4234d7805 in pthread_create 
(/lib/x86_64-linux-gnu/libasan.so.5+0x3a805)
     24:     #1 0x7fe4232b9066 in celixThread_create 
/home/runner/work/celix/celix/libs/utils/src/celix_threads.c:38
     24:     #2 0x7fe4233a385b in frameworkActivator_stop 
/home/runner/work/celix/celix/libs/framework/src/framework.c:1688
     24:     #3 0x7fe4233a80d4 in celix_framework_stopBundleEntry 
/home/runner/work/celix/celix/libs/framework/src/framework.c:2382
     24:     #4 0x7fe4233debcd in 
celix_framework_stopBundleOnANonCelixEventThread 
/home/runner/work/celix/celix/libs/framework/src/framework_bundle_lifecycle_handler.c:128
     24:     #5 0x7fe4233a7b99 in celix_framework_stopBundleInternal 
/home/runner/work/celix/celix/libs/framework/src/framework.c:2317
     24:     #6 0x7fe4233a7c74 in celix_framework_stopBundle 
/home/runner/work/celix/celix/libs/framework/src/framework.c:2331
     24:     #7 0x7fe42339b36f in framework_stop 
/home/runner/work/celix/celix/libs/framework/src/framework.c:599
     24:     #8 0x7fe4233d4e38 in celix_frameworkFactory_destroyFramework 
/home/runner/work/celix/celix/libs/framework/src/celix_framework_factory.c:45
     24:     #9 0x55abe01bb4cd in teardownFm 
/home/runner/work/celix/celix/bundles/remote_services/remote_service_admin_dfi/gtest/src/rsa_client_server_tests.cc:81
     24:     #10 0x55abe01c4399 in 
RsaDfiClientServerTests::~RsaDfiClientServerTests() 
/home/runner/work/celix/celix/bundles/remote_services/remote_service_admin_dfi/gtest/src/rsa_client_server_tests.cc:311
     24:     #11 0x55abe01c6478 in 
RsaDfiClientServerTests_TestRemoteString_Test::~RsaDfiClientServerTests_TestRemoteString_Test()
 
/home/runner/work/celix/celix/bundles/remote_services/remote_service_admin_dfi/gtest/src/rsa_client_server_tests.cc:371
     24:     #12 0x55abe01c6497 in 
RsaDfiClientServerTests_TestRemoteString_Test::~RsaDfiClientServerTests_TestRemoteString_Test()
 
/home/runner/work/celix/celix/bundles/remote_services/remote_service_admin_dfi/gtest/src/rsa_client_server_tests.cc:371
     24:     #13 0x55abe022dc82 in testing::Test::DeleteSelf_() 
/home/runner/work/celix/celix/build/_deps/googletest-src/googletest/include/gtest/gtest.h:501
     24:     #14 0x55abe025438b in void 
testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test, 
void>(testing::Test*, void (testing::Test::*)(), char const*) 
/home/runner/work/celix/celix/build/_deps/googletest-src/googletest/src/gtest.cc:2607
     24:     #15 0x55abe024225e in void 
testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, 
void>(testing::Test*, void (testing::Test::*)(), char const*) 
/home/runner/work/celix/celix/build/_deps/googletest-src/googletest/src/gtest.cc:2643
     24:     #16 0x55abe01de130 in testing::TestInfo::Run() 
/home/runner/work/celix/celix/build/_deps/googletest-src/googletest/src/gtest.cc:2867
     24:     #17 0x55abe01df261 in testing::TestSuite::Run() 
/home/runner/work/celix/celix/build/_deps/googletest-src/googletest/src/gtest.cc:3015
     24:     #18 0x55abe0204e07 in 
testing::internal::UnitTestImpl::RunAllTests() 
/home/runner/work/celix/celix/build/_deps/googletest-src/googletest/src/gtest.cc:5855
     24:     #19 0x55abe02579fb in bool 
testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,
 bool>(testing::internal::UnitTestImpl*, bool 
(testing::internal::UnitTestImpl::*)(), char const*) 
/home/runner/work/celix/celix/build/_deps/googletest-src/googletest/src/gtest.cc:2607
     24:     #20 0x55abe0244d7f in bool 
testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,
 bool>(testing::internal::UnitTestImpl*, bool 
(testing::internal::UnitTestImpl::*)(), char const*) 
/home/runner/work/celix/celix/build/_deps/googletest-src/googletest/src/gtest.cc:2643
     24:     #21 0x55abe0201805 in testing::UnitTest::Run() 
/home/runner/work/celix/celix/build/_deps/googletest-src/googletest/src/gtest.cc:5438
     24:     #22 0x55abe01a05a2 in RUN_ALL_TESTS() 
/home/runner/work/celix/celix/build/_deps/googletest-src/googletest/include/gtest/gtest.h:2490
     24:     #23 0x55abe01a0471 in main 
/home/runner/work/celix/celix/bundles/remote_services/remote_service_admin_dfi/gtest/src/main.cc:24
     24:     #24 0x7fe422d5b0b2 in __libc_start_main 
(/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
     24: 
     24: Thread T173 created by T0 here:
     24:     #0 0x7fe4234d7805 in pthread_create 
(/lib/x86_64-linux-gnu/libasan.so.5+0x3a805)
     24:     #1 0x7fe4232b9066 in celixThread_create 
/home/runner/work/celix/celix/libs/utils/src/celix_threads.c:38
     24:     #2 0x7fe416ef1455 in endpointDiscoveryPoller_create 
/home/runner/work/celix/celix/bundles/remote_services/discovery_common/src/endpoint_discovery_poller.c:115
     24:     #3 0x7fe416eecae0 in discovery_start 
/home/runner/work/celix/celix/bundles/remote_services/discovery_configured/src/discovery_impl.c:68
     24:     #4 0x7fe416eee66d in bundleActivator_start 
/home/runner/work/celix/celix/bundles/remote_services/discovery_common/src/discovery_activator.c:125
     24:     #5 0x7fe4233a97c1 in celix_framework_startBundleEntry 
/home/runner/work/celix/celix/libs/framework/src/framework.c:2571
     24:     #6 0x7fe4233dea86 in 
celix_framework_startBundleOnANonCelixEventThread 
/home/runner/work/celix/celix/libs/framework/src/framework_bundle_lifecycle_handler.c:113
     24:     #7 0x7fe4233a8b07 in celix_framework_startBundleInternal 
/home/runner/work/celix/celix/libs/framework/src/framework.c:2455
     24:     #8 0x7fe4233a8b65 in celix_framework_startBundle 
/home/runner/work/celix/celix/libs/framework/src/framework.c:2465
     24:     #9 0x7fe42339b121 in framework_autoStartConfiguredBundlesForList 
/home/runner/work/celix/celix/libs/framework/src/framework.c:588
     24:     #10 0x7fe42339ab70 in framework_autoStartConfiguredBundles 
/home/runner/work/celix/celix/libs/framework/src/framework.c:543
     24:     #11 0x7fe42339a52a in framework_start 
/home/runner/work/celix/celix/libs/framework/src/framework.c:517
     24:     #12 0x7fe4233d4d31 in celix_frameworkFactory_createFramework 
/home/runner/work/celix/celix/libs/framework/src/celix_framework_factory.c:34
     24:     #13 0x55abe01baa87 in setupFm 
/home/runner/work/celix/celix/bundles/remote_services/remote_service_admin_dfi/gtest/src/rsa_client_server_tests.cc:73
     24:     #14 0x55abe01c432b in 
RsaDfiClientServerTests::RsaDfiClientServerTests() 
/home/runner/work/celix/celix/bundles/remote_services/remote_service_admin_dfi/gtest/src/rsa_client_server_tests.cc:308
     24:     #15 0x55abe01c6f71 in 
RsaDfiClientServerTests_TestRemoteString_Test::RsaDfiClientServerTests_TestRemoteString_Test()
 
/home/runner/work/celix/celix/bundles/remote_services/remote_service_admin_dfi/gtest/src/rsa_client_server_tests.cc:371
     24:     #16 0x55abe01c6fcb in 
testing::internal::TestFactoryImpl<RsaDfiClientServerTests_TestRemoteString_Test>::CreateTest()
 
/home/runner/work/celix/celix/build/_deps/googletest-src/googletest/include/gtest/internal/gtest-internal.h:472
     24:     #17 0x55abe0254673 in testing::Test* 
testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::TestFactoryBase,
 testing::Test*>(testing::internal::TestFactoryBase*, testing::Test* 
(testing::internal::TestFactoryBase::*)(), char const*) 
/home/runner/work/celix/celix/build/_deps/googletest-src/googletest/src/gtest.cc:2607
     24:     #18 0x55abe0242988 in testing::Test* 
testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase,
 testing::Test*>(testing::internal::TestFactoryBase*, testing::Test* 
(testing::internal::TestFactoryBase::*)(), char const*) 
/home/runner/work/celix/celix/build/_deps/googletest-src/googletest/src/gtest.cc:2643
     24:     #19 0x55abe01de056 in testing::TestInfo::Run() 
/home/runner/work/celix/celix/build/_deps/googletest-src/googletest/src/gtest.cc:2851
     24:     #20 0x55abe01df261 in testing::TestSuite::Run() 
/home/runner/work/celix/celix/build/_deps/googletest-src/googletest/src/gtest.cc:3015
     24:     #21 0x55abe0204e07 in 
testing::internal::UnitTestImpl::RunAllTests() 
/home/runner/work/celix/celix/build/_deps/googletest-src/googletest/src/gtest.cc:5855
     24:     #22 0x55abe02579fb in bool 
testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,
 bool>(testing::internal::UnitTestImpl*, bool 
(testing::internal::UnitTestImpl::*)(), char const*) 
/home/runner/work/celix/celix/build/_deps/googletest-src/googletest/src/gtest.cc:2607
     24:     #23 0x55abe0244d7f in bool 
testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,
 bool>(testing::internal::UnitTestImpl*, bool 
(testing::internal::UnitTestImpl::*)(), char const*) 
/home/runner/work/celix/celix/build/_deps/googletest-src/googletest/src/gtest.cc:2643
     24:     #24 0x55abe0201805 in testing::UnitTest::Run() 
/home/runner/work/celix/celix/build/_deps/googletest-src/googletest/src/gtest.cc:5438
     24:     #25 0x55abe01a05a2 in RUN_ALL_TESTS() 
/home/runner/work/celix/celix/build/_deps/googletest-src/googletest/include/gtest/gtest.h:2490
     24:     #26 0x55abe01a0471 in main 
/home/runner/work/celix/celix/bundles/remote_services/remote_service_admin_dfi/gtest/src/main.cc:24
     24:     #27 0x7fe422d5b0b2 in __libc_start_main 
(/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
     24: 
     24: SUMMARY: AddressSanitizer: heap-use-after-free 
(/lib/x86_64-linux-gnu/libasan.so.5+0x9cdba) 
     24: Shadow bytes around the buggy address:
     24:   0x0c068000b460: fd fd fd fd fa fa fd fd fd fd fa fa fd fd fd fd
     24:   0x0c068000b470: fa fa fd fd fd fd fa fa fd fd fd fd fa fa fd fd
     24:   0x0c068000b480: fd fd fa fa fd fd fd fd fa fa fd fd fd fa fa fa
     24:   0x0c068000b490: fd fd fd fa fa fa fd fd fd fd fa fa fd fd fd fa
     24:   0x0c068000b4a0: fa fa fd fd fd fa fa fa fd fd fd fa fa fa fd fd
     24: =>0x0c068000b4b0: fd fd fa fa fd fd fd fd fa fa[fd]fd fd fd fa fa
     24:   0x0c068000b4c0: fd fd fd fd fa fa fd fd fd fd fa fa fd fd fd fd
     24:   0x0c068000b4d0: fa fa fd fd fd fd fa fa fd fd fd fd fa fa 00 00
     24:   0x0c068000b4e0: 07 fa fa fa 00 00 03 fa fa fa 00 00 00 fa fa fa
     24:   0x0c068000b4f0: 00 00 01 fa fa fa 00 00 00 00 fa fa 00 00 00 00
     24:   0x0c068000b500: fa fa 00 00 02 fa fa fa 00 00 00 00 fa fa 00 00
     24: Shadow byte legend (one shadow byte represents 8 application bytes):
     24:   Addressable:           00
     24:   Partially addressable: 01 02 03 04 05 06 07 
     24:   Heap left redzone:       fa
     24:   Freed heap region:       fd
     24:   Stack left redzone:      f1
     24:   Stack mid redzone:       f2
     24:   Stack right redzone:     f3
     24:   Stack after return:      f5
     24:   Stack use after scope:   f8
     24:   Global redzone:          f9
     24:   Global init order:       f6
     24:   Poisoned by user:        f7
     24:   Container overflow:      fc
     24:   Array cookie:            ac
     24:   Intra object redzone:    bb
     24:   ASan internal:           fe
     24:   Left alloca redzone:     ca
     24:   Right alloca redzone:    cb
     24:   Shadow gap:              cc
     24: ==22127==ABORTING
     24/47 Test #24: run_test_rsa_dfi 
.......................................***Failed    9.83 sec
     test 25
           Start 25: test_pubsub_utils
   ```


-- 
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-unsubscr...@celix.apache.org

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


Reply via email to