[prev in list] [next in list] [prev in thread] [next in thread] 

List:       haiku-bugs
Subject:    [haiku-bugs] [Haiku] #16708: THR: Test FAILED - conformance/interfaces/pthread_rwlock_rdlock/4-1.tes
From:       "Haiku" <trac () haiku-os ! org>
Date:       2020-12-29 4:34:40
Message-ID: 044.c8b99d78a32c347a4fa0c99a431f837b () haiku-os ! org
[Download RAW message or body]

--==============41735947482937616=MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

#16708: THR: Test FAILED - conformance/interfaces/pthread_rwlock_rdlock/4-1.test
-------------------------------------------------+-------------------------
 Reporter:  cocobean                             |       Owner:  nobody
     Type:  bug                                  |      Status:  new
 Priority:  normal                               |   Milestone:
                                                 |  Unscheduled
Component:  System/POSIX                         |     Version:
 Keywords:  POSIX, pthreads,                     |  R1/Development
  pthread_rwlock_rdlock                          |  Blocked By:
 Blocking:                                       |    Platform:  All
-------------------------------------------------+-------------------------
 Test pthread_rwlock_rdlock(pthread_rwlock_t * rwlock)

 If a signal is delivered to a thread waiting for a read-write lock for
 reading, upon return from the signal handler the thread resumes waiting
 for the read-write lock for reading as if it was not interrupted.

 Steps:
 {{{
 1. main thread  create read-write lock 'rwlock', and lock it for writing
 2. main thread create a thread sig_thread, the thread is set to handle
 SIGUSR1
 3. sig_thread try to lock 'rwlock' for reading but will block
 4. main thread sends SIGUSR1 to sig_thread via pthread_kill
 5. test that thread handler is called
 6. check that when thread handler returns, sig_thread resumes blocking for
 rwlock
 7. main thread unlock 'rwlock', sig_thread should get the lock
 }}}


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


 Expected result: Test passed

 Actual Result: Test failed. sig_thread: Error at pthread_rwlock_rdlock().
 Error code=2147483638

 Tested on: Haiku hrev54815 x86 with Open POSIX Test Suite 1.5.2
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/16708>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.
--==============41735947482937616==--


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic