Opened 3 years ago

Closed 19 months ago

#16711 closed bug (invalid)

THR: Test FAILED - conformance/interfaces/pthread_rwlock_wrlock/3-1.test

Reported by: cocobean Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: System/POSIX Version: R1/beta2
Keywords: POSIX, pthreads, pthread_rwlock_wrlock Cc:
Blocked By: Blocking:
Platform: All

Description

Test pthread_rwlock_wrlock(pthread_rwlock_t *rwlock)

It may fail if:

[EDEADLK] The current thread already owns the rwlock for writing or reading.

Steps:

1. Create and initialize an rwlock
2. Perform a write lock via pthread_rwlock_wrlock()
3. Perform a write lock _again_ with pthread_rwlock_wrlock without first unlocking rwlock()
4. Test if returns EDEADLK or not.  Note the standard states "may" fail, so the test always passes even if 0 is returned.

Ref: https://github.com/haiku/open_posix_testsuite/blob/from_haiku_trunk/conformance/interfaces/pthread_rwlock_wrlock/3-1.c

Expected result: Test passed

Actual Result: Test runs (i.e. attempts/acquires write lock), then HANGS.

Tested on: Haiku hrev54815 x86 with Open POSIX Test Suite 1.5.2

Change History (2)

comment:1 by cocobean, 19 months ago

Test fails on Linux - Please close this ticket.

comment:2 by waddlesplash, 19 months ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.