qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Question: ThreadSanitizer support in QEMU user-mode
@ 2025-09-10  6:45 Arkadiusz Marud
  2025-09-10  8:43 ` Alex Bennée
  0 siblings, 1 reply; 2+ messages in thread
From: Arkadiusz Marud @ 2025-09-10  6:45 UTC (permalink / raw)
  To: qemu-devel

Hi all, 

I am experimenting with running a C++ project built with ThreadSanitizer (TSAN) under QEMU.
The documentation describes TSAN usage in system-mode (qemu-system-x86_64) with --enable-tsan,
but I couldn’t find any reference to support in user-mode (qemu-x86_64).  

Does QEMU user-mode support running TSAN-instrumented binaries, or is TSAN available only in system-mode builds?  

Thanks in advance for clarification,  
Arek

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Question: ThreadSanitizer support in QEMU user-mode
  2025-09-10  6:45 Question: ThreadSanitizer support in QEMU user-mode Arkadiusz Marud
@ 2025-09-10  8:43 ` Alex Bennée
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Bennée @ 2025-09-10  8:43 UTC (permalink / raw)
  To: Arkadiusz Marud; +Cc: qemu-devel

Arkadiusz Marud <a.marud@post.pl> writes:

> Hi all, 
>
> I am experimenting with running a C++ project built with ThreadSanitizer (TSAN) under QEMU.
> The documentation describes TSAN usage in system-mode (qemu-system-x86_64) with --enable-tsan,
> but I couldn’t find any reference to support in user-mode (qemu-x86_64).  
>
> Does QEMU user-mode support running TSAN-instrumented binaries, or is
> TSAN available only in system-mode builds?

I don't think the compiler cares and our TSAN helpers are mode agnostic.
However there may be some fork/thread things that it can't track.

>
> Thanks in advance for clarification,  
> Arek

-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-09-10  8:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-10  6:45 Question: ThreadSanitizer support in QEMU user-mode Arkadiusz Marud
2025-09-10  8:43 ` Alex Bennée

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).