Summary: | False positive in libstdc++ std::string::_S_construct (gcc 4.7.2) | ||
---|---|---|---|
Product: | [Developer tools] valgrind | Reporter: | ewirch <wirch.eduard> |
Component: | drd | Assignee: | Bart Van Assche <bart.vanassche+kde> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 3.9.0.SVN | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
ewirch
2013-10-16 11:11:05 UTC
Thanks for the report and for the test case. It would be appreciated if you could help testing the following candidate fix: drd: Avoid that optimized strlen() implementations trigger false positive race reports (#326091) diff --git a/drd/drd_strmem_intercepts.c b/drd/drd_strmem_intercepts.c index d77e824..7248907 100644 --- a/drd/drd_strmem_intercepts.c +++ b/drd/drd_strmem_intercepts.c @@ -70,6 +70,7 @@ STRLEN(VG_Z_LIBC_SONAME, strlen) STRLEN(VG_Z_LD_LINUX_SO_2, strlen) STRLEN(VG_Z_LD_LINUX_X86_64_SO_2, strlen) + STRLEN(VG_Z_LIBC_SONAME, __GI_strlen) #elif defined(VGO_darwin) STRLEN(VG_Z_LIBC_SONAME, strlen) #endif Note: the above patch has been checked in as r13664 on the trunk. Confirmed: error is not reported any more |