PengZheng opened a new pull request, #477: URL: https://github.com/apache/celix/pull/477
It's my attempt to use a shared upstream civetweb, which should make Celix more maintainable. However, I've encounter several crashes on MacOS, which seemed to be of the same nature. I'll have a close look at these crashes when I have time. ``` 2023-02-03T14:55:37.8922150Z 38: AddressSanitizer:DEADLYSIGNAL 2023-02-03T14:55:37.8976630Z 38: ================================================================= 2023-02-03T14:55:37.8977780Z 38: *** 1675436137.871047000 123145345298432 produce_socket:18793: queued socket 7 2023-02-03T14:55:37.9016910Z 38: *** 1675436137.871079000 123145345183744 consume_socket:18749: grabbed socket 7, going busy 2023-02-03T14:55:37.9054010Z 38: ==37984==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x000000000000 bp 0x700002a878d0 sp 0x700002a87538 T6) 2023-02-03T14:55:37.9068820Z 38: ==37984==Hint: pc points to the zero page. 2023-02-03T14:55:37.9123630Z 38: ==37984==The signal is caused by a READ memory access. 2023-02-03T14:55:37.9126110Z 38: ==37984==Hint: address points to the zero page. 2023-02-03T14:55:37.9136400Z 38: *** 1675436137.871329000 123145345183744 worker_thread_run:18907: Incomming connection from 127.0.0.1 2023-02-03T14:55:37.9144710Z 38: *** 1675436137.871350000 123145345183744 process_new_connection:18489: Start processing connection from 127.0.0.1 2023-02-03T14:55:37.9145590Z 38: *** 1675436137.871355000 123145345183744 process_new_connection:18495: calling get_request (1 times for this connection) 2023-02-03T14:55:39.2165860Z 38: #0 0x0 (<unknown module>) 2023-02-03T14:55:39.2166590Z 38: #1 0x10bdc9e2c in mg_connect_websocket_client_impl civetweb.c:18138 2023-02-03T14:55:39.2167450Z 38: #2 0x10bdc9be9 in mg_connect_websocket_client civetweb.c:18338 2023-02-03T14:55:39.2167960Z 38: #3 0x10bda0457 in psa_websocket_connectToAllRequestedConnections pubsub_websocket_topic_receiver.c:699 2023-02-03T14:55:39.2168410Z 38: #4 0x10bd9efe8 in psa_websocket_recvThread pubsub_websocket_topic_receiver.c:571 2023-02-03T14:55:39.2168760Z 38: #5 0x7ff80ec284e0 in _pthread_start+0x7c (libsystem_pthread.dylib:x86_64+0x64e0) 2023-02-03T14:55:39.2169110Z 38: #6 0x7ff80ec23f6a in thread_start+0xe (libsystem_pthread.dylib:x86_64+0x1f6a) 2023-02-03T14:55:39.2169410Z 38: 2023-02-03T14:55:39.2169870Z 38: ==37984==Register values: 2023-02-03T14:55:39.2170280Z 38: rax = 0x0000000000000000 rbx = 0x0000700002a875a0 rcx = 0x000062900001ede0 rdx = 0x00001e0000550e70 2023-02-03T14:55:39.2170630Z 38: rdi = 0x0000000000000000 rsi = 0x0000700002a873a0 rbp = 0x0000700002a878d0 rsp = 0x0000700002a87538 2023-02-03T14:55:39.2170950Z 38: r8 = 0x0000700002a868a0 r9 = 0x0000700002a87d8c r10 = 0x000000010be36bcc r11 = 0xfffffffffffffff0 2023-02-03T14:55:39.2171260Z 38: r12 = 0x000060400000b9bc r13 = 0x000060400000b990 r14 = 0x0000000000000000 r15 = 0x00001c0800001735 2023-02-03T14:55:39.2172070Z 38: AddressSanitizer can not provide additional info. 2023-02-03T14:55:39.2183000Z 38: SUMMARY: AddressSanitizer: SEGV (<unknown module>) 2023-02-03T14:55:39.2183280Z 38: Thread T6 created by T1 here: 2023-02-03T14:55:39.2405610Z 38: #0 0x109f3aa3c in wrap_pthread_create+0x5c (libclang_rt.asan_osx_dynamic.dylib:x86_64+0x43a3c) 2023-02-03T14:55:39.2406450Z 38: #1 0x109b98801 in celixThread_create celix_threads.c:38 2023-02-03T14:55:39.2407430Z 38: #2 0x10bd9df23 in pubsub_websocketTopicReceiver_create pubsub_websocket_topic_receiver.c:240 2023-02-03T14:55:39.2408480Z 38: #3 0x10bd9a6ee in pubsub_websocketAdmin_setupTopicReceiver pubsub_websocket_admin.c:302 2023-02-03T14:55:39.2409460Z 38: #4 0x10bbcf146 in pstm_setupTopicReceiverCallback pubsub_topology_manager.c:1018 2023-02-03T14:55:39.2410230Z 38: #5 0x109ad4c61 in celix_serviceTracker_useHighestRankingService service_tracker.c:761 2023-02-03T14:55:39.2410950Z 38: #6 0x109aad88d in celix_bundleContext_useServiceWithOptions_2_UseServiceTracker bundle_context.c:1185 2023-02-03T14:55:39.2411600Z 38: #7 0x109ac0005 in fw_handleEventRequest framework.c:1531 2023-02-03T14:55:39.2412160Z 38: #8 0x109abf595 in fw_handleEvents framework.c:1579 2023-02-03T14:55:39.2412950Z 38: #9 0x109ab41a7 in fw_eventDispatcher framework.c:1605 2023-02-03T14:55:39.2413850Z 38: #10 0x7ff80ec284e0 in _pthread_start+0x7c (libsystem_pthread.dylib:x86_64+0x64e0) 2023-02-03T14:55:39.2414840Z 38: #11 0x7ff80ec23f6a in thread_start+0xe (libsystem_pthread.dylib:x86_64+0x1f6a) 2023-02-03T14:55:39.2415390Z 38: 2023-02-03T14:55:39.2416510Z 38: Thread T1 created by T0 here: 2023-02-03T14:55:39.3104090Z 38: #0 0x109f3aa3c in wrap_pthread_create+0x5c (libclang_rt.asan_osx_dynamic.dylib:x86_64+0x43a3c) 2023-02-03T14:55:39.3104480Z 38: #1 0x109b98801 in celixThread_create celix_threads.c:38 2023-02-03T14:55:39.3104970Z 38: #2 0x109ab3a3b in fw_init framework.c:417 2023-02-03T14:55:39.3105990Z 38: #3 0x109ab4c38 in framework_start framework.c:496 2023-02-03T14:55:39.3106740Z 38: #4 0x109ad8b6b in celix_frameworkFactory_createFramework celix_framework_factory.c:34 2023-02-03T14:55:39.3107630Z 38: #5 0x109ad87b0 in celixLauncher_launchWithProperties celix_launcher.c:170 2023-02-03T14:55:39.3108310Z 38: #6 0x109ad8748 in celixLauncher_launchWithConfigAndProps celix_launcher.c:161 2023-02-03T14:55:39.3108900Z 38: #7 0x109ad878a in celixLauncher_launch celix_launcher.c:145 2023-02-03T14:55:39.3109560Z 38: #8 0x10966abaa in PubSubIntegrationTestSuite::PubSubIntegrationTestSuite() PubSubIntegrationTestSuite.cc:30 2023-02-03T14:55:39.3110360Z 38: #9 0x10966ab0d in PubSubIntegrationTestSuite_recvTest_Test::PubSubIntegrationTestSuite_recvTest_Test() PubSubIntegrationTestSuite.cc:112 2023-02-03T14:55:39.3111160Z 38: #10 0x10966aaf8 in PubSubIntegrationTestSuite_recvTest_Test::PubSubIntegrationTestSuite_recvTest_Test() PubSubIntegrationTestSuite.cc:112 2023-02-03T14:55:39.3112330Z 38: #11 0x10966aa9b in testing::internal::TestFactoryImpl<PubSubIntegrationTestSuite_recvTest_Test>::CreateTest() gtest-internal.h:472 2023-02-03T14:55:39.3113400Z 38: #12 0x10972ce07 in testing::Test* testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test*>(testing::internal::TestFactoryBase*, testing::Test* (testing::internal::TestFactoryBase::*)(), char const*) gtest.cc:2607 2023-02-03T14:55:39.3114500Z 38: #13 0x10969a101 in testing::Test* testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::TestFactoryBase, testing::Test*>(testing::internal::TestFactoryBase*, testing::Test* (testing::internal::TestFactoryBase::*)(), char const*) gtest.cc:2643 2023-02-03T14:55:39.3115280Z 38: #14 0x1096999bf in testing::TestInfo::Run() gtest.cc:2851 2023-02-03T14:55:39.3115810Z 38: #15 0x10969c8ce in testing::TestSuite::Run() gtest.cc:3015 2023-02-03T14:55:39.3117130Z 38: #16 0x1096c0faf in testing::internal::UnitTestImpl::RunAllTests() gtest.cc:5855 2023-02-03T14:55:39.3118030Z 38: #17 0x1097399a7 in bool testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) gtest.cc:2607 2023-02-03T14:55:39.3118970Z 38: #18 0x1096bff01 in bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) gtest.cc:2643 2023-02-03T14:55:39.3119600Z 38: #19 0x1096bf99e in testing::UnitTest::Run() gtest.cc:5438 2023-02-03T14:55:39.3120170Z 38: #20 0x109750230 in RUN_ALL_TESTS() gtest.h:2490 2023-02-03T14:55:39.3120420Z 38: #21 0x10975019b in main gtest_main.cc:52 2023-02-03T14:55:39.3121970Z 38: #22 0x1194f152d in start+0x1cd (dyld:x86_64+0x552d) 2023-02-03T14:55:39.3122200Z 38: 2023-02-03T14:55:39.3122390Z 38: ==37984==ABORTING ``` -- 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