Re: [Interest] TSAN findings in a simple QApplication/QMetaObject::invokeMethod example

2022-11-03 Thread Thiago Macieira
On Thursday, 3 November 2022 11:09:48 PDT Dennis Luehring wrote: > do you know a good howto for building Qt 6.4 on Fedora 36 or Ubnuntu > 22.04 with TSAN? Pass -DFEATURE_sanitize_thread=ON to cmake or -sanitize thread if you're using the configure script. -- Thiago Macieira - thiago.macieira (A

Re: [Interest] BTLE device discovered on Linux, Windows, and Android, but not MacOS or iOS

2022-11-03 Thread ekke
in fact I'm using something like this: NSBluetoothPeripheralUsageDescription $(PRODUCT_NAME) uses Bluetooth LE Device (WaiterLock) for easy Login NSBluetoothAlwaysUsageDescription $(PRODUCT_NAME) can use a Bluetooth LE WaiterLock for Login - esp. if iPad is shared by Team Members sorry - ca

Re: [Interest] BTLE device discovered on Linux, Windows, and Android, but not MacOS or iOS

2022-11-03 Thread ekke
you should have something like this in your info.plist: NSBluetoothPeripheralUsageDescription $(PRODUCT_NAME)searchesBluetoothLEDevicesforBarcodeScanner ekke Am 03.11.22 um 19:51 schrieb Glen Mabey: I'm working on a project that is developing a new Bluetooth Low Energy device (it's a BTLE "p

[Interest] BTLE device discovered on Linux, Windows, and Android, but not MacOS or iOS

2022-11-03 Thread Glen Mabey
I'm working on a project that is developing a new Bluetooth Low Energy device (it's a BTLE "peripheral"), which is *not* running any Qt code. The application that talks to it (the BTLE "central") *is* written in Qt -- I've tried various versions, but I'm currently using 6.4.0. I started with the

Re: [Interest] TSAN findings in a simple QApplication/QMetaObject::invokeMethod example

2022-11-03 Thread Dennis Luehring
Am 03.11.2022 um 17:34 schrieb Thiago Macieira: Actually this SEEMS to indicate that there's a race condition in the QPostEventList (which is a QVector), but I dobut that TSan is capable of noticing the QMutex lock, because on Linux those are inline when uncontended. Qt 6.4 has TSan annotations

Re: [Interest] TSAN findings in a simple QApplication/QMetaObject::invokeMethod example

2022-11-03 Thread Thiago Macieira
On Thursday, 3 November 2022 03:21:05 PDT Dennis Luehring wrote: > WARNING: ThreadSanitizer: data race (pid=5882) >Read of size 8 at 0x7b0c2178 by thread T1: > #0 memcpy (libtsan.so.2+0x5e806) > #1 QVector::realloc(int, > QFlags) (libQt5Core.so.5+0x2af42c) > >Previous write

Re: [Interest] TSAN findings in a simple QApplication/QMetaObject::invokeMethod example

2022-11-03 Thread Thiago Macieira
On Thursday, 3 November 2022 03:21:05 PDT Dennis Luehring wrote: > Fedora default Qt: Qt 5.15.6 No action to be taken on those findings. The code in question has been substantively rewritten for 6.4. -- Thiago Macieira - thiago.macieira (AT) intel.com Cloud Software Architect - Intel DCAI Clo

Re: [Interest] TSAN findings in a simple QApplication/QMetaObject::invokeMethod example

2022-11-03 Thread Dennis Luehring
Am 03.11.2022 um 11:21 schrieb Dennis Luehring: im usually testing all my projects with ASAN and TSAN - all the non-Qt unit tests are clean ASAN is near to silent with my Qt tests but TSAN is giving a lot of warnings ... damn - i have not put in my thread-shutdown code - very very sorry for pu

[Interest] TSAN findings in a simple QApplication/QMetaObject::invokeMethod example

2022-11-03 Thread Dennis Luehring
im usually testing all my projects with ASAN and TSAN - all the non-Qt unit tests are clean ASAN is near to silent with my Qt tests but TSAN is giving a lot of warnings do i need to build Qt from source (and maybe also GLib) with TSAN support or are there real problems in my code that i overlook