pthread_mutex_destroy with invalid argument

Casey Waldren via Valgrind-users <[email protected]>
Newsgroups gmane.comp.debugging.valgrind
Message-ID <CAHMycPZzgj=jpY+BgaUWoukw41ZUzOJcP=cWiSLw9q2GoOYbRw@mail.gmail.com>
Hello,

I am running into the following errors when running helgrind on a C++
binary built with googletest. The host is Ubuntu 20.04.

The invocation is:

valgrind --tool=helgrind --error-exitcode=100 ./tests/google_tests

The errors are:

---Thread-Announcement------------------------------------------==947==
==947== Thread #1 is the program's root thread==947== ==947==
----------------------------------------------------------------==947==
==947== Thread #1: pthread_mutex_destroy with invalid argument==947==
  at 0x483FC96: ??? (in
/usr/lib/x86_64-linux-gnu/valgrind/vgpreload_helgrind-amd64-linux.so)==947==
   by 0x5AD316F: ??? (in
/usr/lib/x86_64-linux-gnu/libp11-kit.so.0.3.0)==947==    by 0x4011F5A:
_dl_fini (dl-fini.c:138)==947==    by 0x4D12A26: __run_exit_handlers
(exit.c:108)==947==    by 0x4D12BDF: exit (exit.c:139)==947==    by
0x4CF00B9: (below main) (libc-start.c:342)==947== ==947==
----------------------------------------------------------------==947==
==947== Thread #1: pthread_mutex_destroy with invalid argument==947==
  at 0x483FC96: ??? (in
/usr/lib/x86_64-linux-gnu/valgrind/vgpreload_helgrind-amd64-linux.so)==947==
   by 0x4011F5A: _dl_fini (dl-fini.c:138)==947==    by 0x4D12A26:
__run_exit_handlers (exit.c:108)==947==    by 0x4D12BDF: exit
(exit.c:139)==947==    by 0x4CF00B9: (below main) (libc-start.c:342)

I am wondering if anyone has seen this or can shed some light on what
these imply?

I used --tool=drd and it failed with almost identical errors.

Thank you.

_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.