Opened 4 years ago
Last modified 8 days ago
#16709 new bug
THR: Test FAILED - conformance/interfaces/pthread_rwlock_rdlock/2-3.test
Reported by: | cocobean | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | System/POSIX | Version: | R1/Development |
Keywords: | POSIX, pthreads, pthread_rwlock_rdlock | Cc: | |
Blocked By: | Blocking: | ||
Platform: | All |
Description (last modified by )
pthread_rwlock_rdlock implementation in Haiku R1b5 must pass this OpenPOSIX test for POSIX.1-2008 conformance.
https://github.com/haiku/open_posix_testsuite/blob/from_haiku_trunk/conformance/interfaces/pthread_rwlock_rdlock/2-3.c
Expected result: Test passed Actual result: Test failed. rd_thread blocked on read lock
Tested on: Haiku hrev58305 x86 with Open POSIX Test Suite 1.5.2
Change History (4)
comment:2 by , 2 months ago
comment:3 by , 2 months ago
comment:4 by , 8 days ago
Description: | modified (diff) |
---|
Note:
See TracTickets
for help on using tickets.
This looks intentional. The test creates a rwlock, read-locks it, creates a thread that calls wrlock, and creates another thread that calls rdlock. The last thread blocks because a writer is waiting to acquire the lock. Anything else would let reader threads starve out writer threads.