Bug 446281 - Add a DRD suppression for fwrite
Summary: Add a DRD suppression for fwrite
Status: RESOLVED FIXED
Alias: None
Product: valgrind
Classification: Developer tools
Component: drd (other bugs)
Version First Reported In: 3.19 GIT
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Bart Van Assche
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-30 15:32 UTC by Paul Floyd
Modified: 2021-12-01 23:27 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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