[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 01/19] configure: add --enable-tsan flag + fiber annotations
From: |
Robert Foley |
Subject: |
Re: [PATCH 01/19] configure: add --enable-tsan flag + fiber annotations for coroutine-ucontext |
Date: |
Tue, 26 May 2020 08:38:13 -0400 |
On Sat, 23 May 2020 at 12:55, Philippe Mathieu-Daudé <address@hidden> wrote:
>
> Hi Robert,
>
> On 5/22/20 6:07 PM, Robert Foley wrote:
> > From: Lingfeng Yang <address@hidden>
> >
> > We tried running QEMU under tsan in 2016, but tsan's lack of support for
> > longjmp-based fibers was a blocker:
<snip>
> > @@ -6277,6 +6304,14 @@ if test "$have_asan" = "yes"; then
> > "Without code annotation, the report may be inferior."
> > fi
> > fi
> > +if test "$have_tsan" = "yes" ; then
> > + if test "$have_tsan_iface_fiber" = "yes" ; then
> > + QEMU_CFLAGS="-fsanitize=thread $QEMU_CFLAGS"
> > + QEMU_LDFLAGS="-fsanitize=thread $QEMU_LDFLAGS"
> > + else
> > + echo "Cannot enable TSAN due to missing fiber annotation interface."
>
> I tried your series and there were no changes anywhere, then I looked at
> how TSan work, started to debug, to finally realize my build was not
> using TSan (clang8). Please use to something such:
>
> if test "$tsan" = "yes" ; then
> error_exit "Cannot enable TSAN due to missing fiber" \
> "annotation interface."
> fi
This is a good point. Will make these changes.
Thanks & Regards,
-Rob
- [PATCH 00/19] Add Thread Sanitizer support to QEMU, Robert Foley, 2020/05/22
- [PATCH 01/19] configure: add --enable-tsan flag + fiber annotations for coroutine-ucontext, Robert Foley, 2020/05/22
- [PATCH 02/19] cpu: convert queued work to a QSIMPLEQ, Robert Foley, 2020/05/22
- [PATCH 03/19] thread: add qemu_spin_destroy, Robert Foley, 2020/05/22
- [PATCH 04/19] cputlb: destroy CPUTLB with tlb_destroy, Robert Foley, 2020/05/22
- [PATCH 06/19] tcg: call qemu_spin_destroy for tb->jmp_lock, Robert Foley, 2020/05/22
- [PATCH 07/19] translate-all: call qemu_spin_destroy for PageDesc, Robert Foley, 2020/05/22
- [PATCH 08/19] thread: add tsan annotations to QemuSpin, Robert Foley, 2020/05/22
- [PATCH 09/19] tests/docker: Added docker build support for TSan., Robert Foley, 2020/05/22
- [PATCH 11/19] accel/tcg: Fixed tsan warnings related to parallel_cpus, Robert Foley, 2020/05/22