Re: [Interest] Will TSAN_OPTIONS=detect_deadlocks=1 work when Qt is compiled with -sanitize thread?

2024-07-18 Thread Dennis Luehring via Interest
Am 18.07.2024 um 17:24 schrieb Nuno Santos: Hi, Thanks for your reply. I’ve compiled Qt with -sanitize thread and I’m trying to find deadlock on my application. your own application should be also build with TSAN check with ldd if your executeable is linked with the TSAN runtime - something

Re: [Interest] Will TSAN_OPTIONS=detect_deadlocks=1 work when Qt is compiled with -sanitize thread?

2024-07-18 Thread Thiago Macieira
On Thursday 18 July 2024 09:11:36 GMT-7 coroberti wrote: > dtruss is available on Mac > https://stackoverflow.com/questions/31045575/how-to-trace-system-calls-of-a-> > program-in-mac-os-x It doesn't work properly, unless you disable System Integrity Protection. Even if you do, it's a poor implem

Re: [Interest] Will TSAN_OPTIONS=detect_deadlocks=1 work when Qt is compiled with -sanitize thread?

2024-07-18 Thread coroberti
dtruss is available on Mac https://stackoverflow.com/questions/31045575/how-to-trace-system-calls-of-a-program-in-mac-os-x When the deadlock happens, perhaps you could see the system calls and which syscall in which thread is stacked. Either by a system call tracer or by connecting a debugger (i

Re: [Interest] Will TSAN_OPTIONS=detect_deadlocks=1 work when Qt is compiled with -sanitize thread?

2024-07-18 Thread Nuno Santos via Interest
Robert, Thanks for your reply. I’m on MacOS and strace does not seem to be available. This deadlocks are very rare on MacOS and more frequent on iOS but this is mostly reported by our users. When developing we are rarely faced with this dead locks and when they happen I find myself wondering wh

Re: [Interest] Will TSAN_OPTIONS=detect_deadlocks=1 work when Qt is compiled with -sanitize thread?

2024-07-18 Thread coroberti
Nuno, if you are on linux, *strace *command could be helpful to see and analyse all system calls. Thus, you could see how you are coming to a deadlock, if any. Kind regards, Robert Iakobashvili On Thu, Jul 18, 2024 at 6:31 PM Nuno Santos via Interest < interest@qt-pr

Re: [Interest] Will TSAN_OPTIONS=detect_deadlocks=1 work when Qt is compiled with -sanitize thread?

2024-07-18 Thread Nuno Santos via Interest
Hi, Thanks for your reply. I’ve compiled Qt with -sanitize thread and I’m trying to find deadlock on my application. Regards, Nuno > On 18 Jul 2024, at 16:15, Dennis Luehring via Interest > wrote: > > Am 18.07.2024 um 17:07 schrieb Nuno Santos via Interest: >> https://github.com/google/san

Re: [Interest] Will TSAN_OPTIONS=detect_deadlocks=1 work when Qt is compiled with -sanitize thread?

2024-07-18 Thread Dennis Luehring via Interest
Am 18.07.2024 um 17:07 schrieb Nuno Santos via Interest: https://github.com/google/sanitizers/wiki/ThreadSanitizerDeadlockDetector "Just use TSAN_OPTIONS=detect_deadlocks=1 when running your tsan-instrumented program.” this document is from 2015 - lock order inversion aka Deadlock detection

[Interest] Will TSAN_OPTIONS=detect_deadlocks=1 work when Qt is compiled with -sanitize thread?

2024-07-18 Thread Nuno Santos via Interest
Hi, I’ve just found this article: https://github.com/google/sanitizers/wiki/ThreadSanitizerDeadlockDetector "Just use TSAN_OPTIONS=detect_deadlocks=1 when running your tsan-instrumented program.” Is this supposed to work? I’m trying to catch a rare deadlocks. Thanks in advance! Best regards