Re: [PATCH] ThreadSanitizer warnings for cThread

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sat, Dec 10, 2022 at 07:30:50PM +0200, Marko Mäkelä wrote:
Finally, I figured out what is causing the first report: cThread::description is not protected by cThread::mutex.

Sorry, I failed to notice that even after applying both patches, both TSAN reports are still there. The race condition apparently is about the Thread->Action() member function call, which is not protected by anything. Perhaps cThread::StartThread() should acquire the Thread->mutex very early on? Or TSAN simply would insist that cThread::Cancel() be always called before the destructor?

	Marko

_______________________________________________
vdr mailing list
vdr@xxxxxxxxxxx
https://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr




[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux