Michael de Lang
Michael de Lang
Doing the following steps: ``` 1. cmake && make on top level dir 2. cd bundles/remote_service/remote_service_admin_dfi/gtest 3. make clean && make 4. ./test_rsa_dfi ``` Results in test failure for unknown...
``` ================== WARNING: ThreadSanitizer: data race (pid=64753) Write of size 8 at 0x7b0c00000458 by main thread (mutexes: write M46): #0 arrayList_add /home/oipo-unencrypted/Programming/celix/libs/utils/src/array_list.c:187 (libcelix_utils.so.2+0x92b9) #1 fw_addBundleListener /home/oipo-unencrypted/Programming/celix/libs/framework/src/framework.c:1490 (libcelix_framework.so.2+0x29f20) #2 celix_bundleContext_trackBundlesWithOptions /home/oipo-unencrypted/Programming/celix/libs/framework/src/bundle_context.c:567...
``` ================== WARNING: ThreadSanitizer: data race (pid=64600) Write of size 4 at 0x7b4000008240 by thread T3 (mutexes: write M148, read M285, write M187, write M188, write M190, write M291): #0...
``` ================== WARNING: ThreadSanitizer: data race (pid=64540) Write of size 8 at 0x7b0c00000458 by main thread (mutexes: write M57): #0 arrayList_add /home/oipo-unencrypted/Programming/celix/libs/utils/src/array_list.c:187 (libcelix_utils.so.2+0x92b9) #1 fw_addBundleListener /home/oipo-unencrypted/Programming/celix/libs/framework/src/framework.c:1490 (libcelix_framework.so.2+0x29f20) #2 celix_bundleContext_trackBundlesWithOptions /home/oipo-unencrypted/Programming/celix/libs/framework/src/bundle_context.c:567...
``` ================== WARNING: ThreadSanitizer: data race (pid=54775) Write of size 4 at 0x7b6800002400 by thread T7: #0 (librsa_discovery_configured.so.0+0x2a4d0) #1 (librsa_discovery_configured.so.0+0x107fb) #2 (librsa_discovery_configured.so.0+0xb8a6) #3 (librsa_discovery_configured.so.0+0xcb63) #4 fw_stopBundle /home/oipo-unencrypted/Programming/celix/libs/framework/src/framework.c:1055 (libcelix_framework.so.2+0x28401) #5 framework_shutdown...
``` ================== WARNING: ThreadSanitizer: data race (pid=35506) Write of size 4 at 0x7b6800000000 by thread T8: #0 mg_stop /home/oipo-unencrypted/Programming/celix/bundles/remote_services/civetweb/src/civetweb.c:7685 (librsa_dfi.so.0+0x2c020) #1 remoteServiceAdmin_stop /home/oipo-unencrypted/Programming/celix/bundles/remote_services/remote_service_admin_dfi/src/remote_service_admin_dfi.c:326 (librsa_dfi.so.0+0xcbe3) #2 bundleActivator_stop /home/oipo-unencrypted/Programming/celix/bundles/remote_services/remote_service_admin_dfi/src/remote_service_admin_activator.c:101 (librsa_dfi.so.0+0xfd70) #3 fw_stopBundle...
See [this link](https://owasp.org/www-community/vulnerabilities/Unsafe_function_call_from_a_signal_handler) for more info. Tsan output: ``` ================== WARNING: ThreadSanitizer: signal-unsafe call inside of a signal (pid=52772) #0 calloc (libtsan.so.0+0x2cdbd) #1 celix_private_dependencyManager_create /home/oipo-unencrypted/Programming/celix/libs/framework/src/dm_dependency_manager_impl.c:33 (libcelix_framework.so.2+0x485d2) #2 celix_bundleContext_getDependencyManager /home/oipo-unencrypted/Programming/celix/libs/framework/src/bundle_context.c:515 (libcelix_framework.so.2+0x20126)...
**Describe the bug** Compiling [my project](https://github.com/volt-software/Ichor) with address sanitizer enabled results in Catch2 not being able to run the text executables: ``` cd /home/oipo-unencrypted/Programming/ichor/build2/test && /usr/bin/cmake -D TEST_TARGET=DependencyManagerTests -D TEST_EXECUTABLE=/home/oipo-unencrypted/Programming/ichor/bin/DependencyManagerTests...
I get the following when compiling AsioUring: ``` [ 3%] Building CXX object src/core/CMakeFiles/core.dir/execution_context.cpp.o /home/oipo-unencrypted/Programming/cppelix/external/AsioUring/src/core/execution_context.cpp: In constructor ‘asio_uring::execution_context::execution_context(unsigned int, unsigned int)’: /home/oipo-unencrypted/Programming/cppelix/external/AsioUring/src/core/execution_context.cpp:146:9: error: ‘::io_uring_register’ has not been declared; did you...
The [/Zc](https://learn.microsoft.com/en-us/cpp/build/reference/zc-conformance?view=msvc-170) flag has a couple of conformance related changes that are not enabled by default, the /permissive- flag or the /std:c++17 and /std:c++20 flags. As far as I understand...