Bug 446281

Summary: Add a DRD suppression for fwrite
Product: [Developer tools] valgrind Reporter: Paul Floyd <pjfloyd>
Component: drdAssignee: Bart Van Assche <bart.vanassche+kde>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 3.19 GIT   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Paul Floyd 2021-11-30 15:32:55 UTC
Helgrind already has 

{
   helgrind-glibc-io-xsputn-mempcpy
   Helgrind:Race
   fun:__GI_mempcpy
   fun:_IO_*xsputn*
   obj:@GLIBC_LIBC_PATH@
}

DRD has no equivalent, and I see hazard reports for uses of "std::cerr <<" with std::thread. I would expect there us a similar issue with (f)printf/pthreads in C.

I suggest

{                                                                                                                                                           
   drd-glibc-io-xsputn-mempcpy
   drd:ConflictingAccess                                                                                                                                    
   fun:__GI_mempcpy                                                                                                                                         
   fun:_IO_*xsputn*
   obj:@GLIBC_LIBC_PATH@ 
}
Comment 1 Paul Floyd 2021-12-01 23:27:26 UTC
Fixed with
commit 53ad200bfa6cdab92d6f471c9d6b2811a79335fc