https://bugs.kde.org/show_bug.cgi?id=403212
Bug ID: 403212
Summary: trylock test hangs on FreeBSD
Product: valgrind
Version: 3.13.0
Platform: Other
OS: FreeBSD
Status: REPORTED
Severity: normal
Priority: NOR
Component: drd
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
SUMMARY
The test code in drd/tests/trylock.c attempts to write-lock a POSIX rwlock
twice. The code expects the second attempt to return an error, but POSIX
doesn't require that behaviour, and FreeBSD's implementation deadlocks instead.
Seems to me that for the purpose of the test the second wrlock could become a
trywrlock; I verified that in this case, drd on FreeBSD detects the attempted
recursion and spits out the error message expected by the test. I can submit a
patch if there are no objections to this approach.
STEPS TO REPRODUCE
1. run drd/tests/trylock on FreeBSD
OBSERVED RESULT
trylock hangs and requires a ctrl-C.
EXPECTED RESULT
The test program should complete.
--
You are receiving this mail because:
You are watching all bug changes.