A simple C++ wrapper around DBus with a commercially-friendly licence.
THIS PROJECT HAS MOVED TO https://github.com/OpenBluetoothToolbox/SimpleBLE
A simple C++ wrapper around DBus with a commercial-friendly licence.
Home Page: https://github.com/kdewald/SimpleDBus
License: MIT License
A simple C++ wrapper around DBus with a commercially-friendly licence.
THIS PROJECT HAS MOVED TO https://github.com/OpenBluetoothToolbox/SimpleBLE
Describe the bug
TSAN reports a race condition on the unit tests when running thread sanitizer.
To Reproduce
Build TSAN+Coverage tests
Expected behavior
Tests pass, TSAN reports no errors.
Screenshots
SUMMARY: ThreadSanitizer: data race /usr/include/c++/9/bits/atomic_base.h:100 in std::operator&(std::memory_order, std::__memory_order_modifier)
[38](https://github.com/ztnel/SimpleDBus/runs/5267313759?check_suite_focus=true#step:13:38)
==================
[39](https://github.com/ztnel/SimpleDBus/runs/5267313759?check_suite_focus=true#step:13:39)
==================
[40](https://github.com/ztnel/SimpleDBus/runs/5267313759?check_suite_focus=true#step:13:40)
WARNING: ThreadSanitizer: data race (pid=4720)
[41](https://github.com/ztnel/SimpleDBus/runs/5267313759?check_suite_focus=true#step:13:41)
Read of size 8 at 0x564910218128 by thread T1:
[42](https://github.com/ztnel/SimpleDBus/runs/5267313759?check_suite_focus=true#step:13:42)
#0 std::operator&(std::memory_order, std::__memory_order_modifier) /usr/include/c++/9/bits/atomic_base.h:101 (simpledbus_test+0x14e73c)
[43](https://github.com/ztnel/SimpleDBus/runs/5267313759?check_suite_focus=true#step:13:43)
#1 std::atomic<bool>::operator=(bool) /usr/include/c++/9/atomic:81 (simpledbus_test+0x14e921)
[44](https://github.com/ztnel/SimpleDBus/runs/5267313759?check_suite_focus=true#step:13:44)
#2 PythonRunner::_async_thread_function() /home/runner/work/SimpleDBus/SimpleDBus/test/src/helpers/PythonRunner.cpp:[45](https://github.com/ztnel/SimpleDBus/runs/5267313759?check_suite_focus=true#step:13:45) (simpledbus_test+0x14df0c)
45
#3 void std::__invoke_impl<void, void (PythonRunner::*)(), PythonRunner*>(std::__invoke_memfun_deref, void (PythonRunner::*&&)(), PythonRunner*&&) /usr/include/c++/9/bits/invoke.h:73 (simpledbus_test+0x158345)
[46](https://github.com/ztnel/SimpleDBus/runs/5267313759?check_suite_focus=true#step:13:46)
#4 std::__invoke_result<void (PythonRunner::*)(), PythonRunner*>::type std::__invoke<void (PythonRunner::*)(), PythonRunner*>(void (PythonRunner::*&&)(), PythonRunner*&&) /usr/include/c++/9/bits/invoke.h:95 (simpledbus_test+0x157ed1)
[47](https://github.com/ztnel/SimpleDBus/runs/5267313759?check_suite_focus=true#step:13:47)
#5 void std::thread::_Invoker<std::tuple<void (PythonRunner::*)(), PythonRunner*> >::_M_invoke<0ul, 1ul>(std::_Index_tuple<0ul, 1ul>) /usr/include/c++/9/thread:244 (simpledbus_test+0x157ac5)
[48](https://github.com/ztnel/SimpleDBus/runs/5267313759?check_suite_focus=true#step:13:48)
#6 std::thread::_Invoker<std::tuple<void (PythonRunner::*)(), PythonRunner*> >::operator()() /usr/include/c++/9/thread:251 (simpledbus_test+0x1578c2)
[49](https://github.com/ztnel/SimpleDBus/runs/5267313759?check_suite_focus=true#step:13:49)
#7 std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (PythonRunner::*)(), PythonRunner*> > >::_M_run() /usr/include/c++/9/thread:195 (simpledbus_test+0x15779e)
[50](https://github.com/ztnel/SimpleDBus/runs/5267313759?check_suite_focus=true#step:13:50)
#8 <null> <null> (libstdc++.so.6+0xd6de3)
[51](https://github.com/ztnel/SimpleDBus/runs/5267313759?check_suite_focus=true#step:13:51)
[52](https://github.com/ztnel/SimpleDBus/runs/5267313759?check_suite_focus=true#step:13:52)
Previous write of size 8 at 0x564910218128 by main thread:
[53](https://github.com/ztnel/SimpleDBus/runs/5267313759?check_suite_focus=true#step:13:53)
#0 std::operator&(std::memory_order, std::__memory_order_modifier) /usr/include/c++/9/bits/atomic_base.h:101 (simpledbus_test+0x14e753)
[54](https://github.com/ztnel/SimpleDBus/runs/5267313759?check_suite_focus=true#step:13:54)
#1 PythonRunner::init() /home/runner/work/SimpleDBus/SimpleDBus/test/src/helpers/PythonRunner.cpp:17 (simpledbus_test+0x14d421)
[55](https://github.com/ztnel/SimpleDBus/runs/5267313759?check_suite_focus=true#step:13:55)
#2 main /home/runner/work/SimpleDBus/SimpleDBus/test/src/main.cpp:9 (simpledbus_test+0x5af6a)
[56](https://github.com/ztnel/SimpleDBus/runs/5267313759?check_suite_focus=true#step:13:56)
[57](https://github.com/ztnel/SimpleDBus/runs/5267313759?check_suite_focus=true#step:13:57)
Location is global '__gcov0._ZStanSt12memory_orderSt23__memory_order_modifier' of size 16 at 0x564910218120 (simpledbus_test+0x000000318128)
[58](https://github.com/ztnel/SimpleDBus/runs/5267313759?check_suite_focus=true#step:13:58)
[59](https://github.com/ztnel/SimpleDBus/runs/5267313759?check_suite_focus=true#step:13:59)
Thread T1 (tid=4722, running) created by main thread at:
[60](https://github.com/ztnel/SimpleDBus/runs/5267313759?check_suite_focus=true#step:13:60)
#0 pthread_create ../../../../src/libsanitizer/tsan/tsan_interceptors_posix.cpp:962 (libtsan.so.0+0x5ea79)
[61](https://github.com/ztnel/SimpleDBus/runs/5267313759?check_suite_focus=true#step:13:61)
#1 std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)()) <null> (libstdc++.so.6+0xd70a8)
[62](https://github.com/ztnel/SimpleDBus/runs/5267313759?check_suite_focus=true#step:13:62)
#2 PythonRunner::init() /home/runner/work/SimpleDBus/SimpleDBus/test/src/helpers/PythonRunner.cpp:16 (simpledbus_test+0x14d3d3)
[63](https://github.com/ztnel/SimpleDBus/runs/5267313759?check_suite_focus=true#step:13:63)
#3 main /home/runner/work/SimpleDBus/SimpleDBus/test/src/main.cpp:9 (simpledbus_test+0x5af6a)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.