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 
> <interest@qt-project.org> wrote:
> 
> 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
> is a feature that is active per default
> or better said i've used TSAN many times to find deadlocks - maybe its a
> special feature but seems to be the default now
> 
> beware: you should always use recent gcc or clang for TSAN/ASAN as they
> evolve permanently - older compiler instrumentation just don't be that good
> in detecting - im normaly using SUSE Tumbleweed with latest available
> gcc/clang for a my "bug hunting" environment
> 
> do you try to find a Deadlock inside Qt code or inside your application
> - for the first a TSAN build of Qt would be better to prevent false
> positives
> 
> 
> 
> _______________________________________________
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest

_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to