Summary: | pthread_spin_destroy not properly wrapped | ||
---|---|---|---|
Product: | [Developer tools] valgrind | Reporter: | Jason Dillaman <dillaman> |
Component: | helgrind | Assignee: | Ivo Raisr <ivosh> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | ivosh, philippe.waroquiers |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | Reproducer |
Description
Jason Dillaman
2016-01-11 22:17:01 UTC
Thank you reporting this bug. Good catch! Would you be able to provide a small test case which can showcase this (currently wrong) behaviour? Created attachment 96601 [details]
Reproducer
==5502== Helgrind, a thread error detector ==5502== Copyright (C) 2007-2015, and GNU GPL'd, by OpenWorks LLP et al. ==5502== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info ==5502== Command: ./a.out ==5502== ==5502== ---Thread-Announcement------------------------------------------ ==5502== ==5502== Thread #1 is the program's root thread ==5502== ==5502== ---------------------------------------------------------------- ==5502== ==5502== Thread #1: pthread_rwlock_destroy with invalid argument ==5502== at 0x4C2E40E: ??? (in /usr/lib64/valgrind/vgpreload_helgrind-amd64-linux.so) ==5502== by 0x4C31146: pthread_rwlock_destroy (in /usr/lib64/valgrind/vgpreload_helgrind-amd64-linux.so) ==5502== by 0x40077E: main (in /home/jdillaman/a.out) ==5502== ==5502== ==5502== For counts of detected and suppressed errors, rerun with: -v ==5502== Use --history-level=approx or =none to gain increased speed, at ==5502== the cost of reduced accuracy of conflicting-access information ==5502== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0) Fixed in SVN r15756. Thank you for the patch and provided test case. I. |