Opened 9 years ago

Last modified 5 months ago

#11815 assigned bug

pthread Posix test suite failures

Reported by: kallisti5 Owned by: nobody
Priority: normal Milestone: R1
Component: System/libroot.so Version: R1/Development
Keywords: pthread Cc:
Blocked By: #11816 Blocking:
Platform: All

Description (last modified by kallisti5)

Our pthread implementation still has some crashes and bugs.

The open posix test suite is handy to bring these to the surface...

http://sourceforge.net/projects/posixtest/files/posixtest/posixtestsuite-1.5.2/

/Builds/posixtestsuite> ./run_tests THR
Executing threads tests
conformance/interfaces/pthread_atfork/1-1: build: PASS
conformance/interfaces/pthread_atfork/1-1: link: PASS
conformance/interfaces/pthread_atfork/1-2: build: PASS
conformance/interfaces/pthread_atfork/1-2: link: PASS
conformance/interfaces/pthread_atfork/2-1: build: PASS
conformance/interfaces/pthread_atfork/2-1: link: PASS
conformance/interfaces/pthread_atfork/2-2: build: PASS
conformance/interfaces/pthread_atfork/2-2: link: PASS
conformance/interfaces/pthread_atfork/3-2: build: PASS
conformance/interfaces/pthread_atfork/3-2: link: PASS
conformance/interfaces/pthread_atfork/3-3: build: PASS
conformance/interfaces/pthread_atfork/3-3: link: PASS
conformance/interfaces/pthread_atfork/4-1: build: PASS
conformance/interfaces/pthread_atfork/4-1: link: PASS
Building timeout helper files
echo `./t0 0; echo $?` > ./t0.val
conformance/interfaces/pthread_atfork/1-1: execution: PASS
conformance/interfaces/pthread_atfork/1-2: execution: PASS
conformance/interfaces/pthread_atfork/2-1: execution: PASS
conformance/interfaces/pthread_atfork/2-2: execution: PASS
conformance/interfaces/pthread_atfork/3-1: execution: PASS
conformance/interfaces/pthread_atfork/3-2: execution: PASS
conformance/interfaces/pthread_atfork/3-3: execution: PASS
conformance/interfaces/pthread_atfork/4-1: execution: PASS
conformance/interfaces/pthread_attr_destroy/1-1: build: PASS
conformance/interfaces/pthread_attr_destroy/1-1: link: PASS
conformance/interfaces/pthread_attr_destroy/2-1: build: PASS
conformance/interfaces/pthread_attr_destroy/2-1: link: PASS
conformance/interfaces/pthread_attr_destroy/3-1: build: PASS
conformance/interfaces/pthread_attr_destroy/3-1: link: PASS
conformance/interfaces/pthread_attr_destroy/1-1: execution: PASS
conformance/interfaces/pthread_attr_destroy/2-1: execution: PASS
conformance/interfaces/pthread_attr_destroy/3-1: execution: PASS
conformance/interfaces/pthread_attr_getdetachstate/1-1: build: PASS
conformance/interfaces/pthread_attr_getdetachstate/1-1: link: PASS
conformance/interfaces/pthread_attr_getdetachstate/1-2: build: PASS
conformance/interfaces/pthread_attr_getdetachstate/1-2: link: PASS
conformance/interfaces/pthread_attr_getdetachstate/1-1: execution: PASS
conformance/interfaces/pthread_attr_getdetachstate/1-2: execution: PASS
conformance/interfaces/pthread_attr_getdetachstate/2-1: execution: PASS
conformance/interfaces/pthread_attr_getinheritsched/1-1: build: FAILED 
conformance/interfaces/pthread_attr_getinheritsched/1-1: build: FAILED 
conformance/interfaces/pthread_attr_getinheritsched/2-1: execution: PASS
conformance/interfaces/pthread_attr_getschedparam/1-1: build: FAILED 
conformance/interfaces/pthread_attr_getschedparam/1-1: build: FAILED 
conformance/interfaces/pthread_attr_getschedparam/2-1: execution: PASS
conformance/interfaces/pthread_attr_getschedpolicy/2-1: build: FAILED 
conformance/interfaces/pthread_attr_getschedpolicy/1-1: execution: PASS
conformance/interfaces/pthread_attr_getschedpolicy/2-1: build: FAILED 
conformance/interfaces/pthread_attr_getschedpolicy/3-1: execution: PASS
conformance/interfaces/pthread_attr_getscope/1-1: build: PASS
conformance/interfaces/pthread_attr_getscope/1-1: link: PASS
conformance/interfaces/pthread_attr_getscope/1-1: execution: PASS
conformance/interfaces/pthread_attr_getscope/2-1: execution: PASS
conformance/interfaces/pthread_attr_getstack/1-1: build: FAILED 
conformance/interfaces/pthread_attr_getstack/1-1: build: FAILED 
conformance/interfaces/pthread_attr_getstack/2-1: execution: PASS
make: Nothing to be done for `build-tests'.
make: Nothing to be done for `run-tests'.
conformance/interfaces/pthread_attr_getstacksize/1-1: build: PASS
conformance/interfaces/pthread_attr_getstacksize/1-1: link: PASS
conformance/interfaces/pthread_attr_getstacksize/1-1: execution: PASS
conformance/interfaces/pthread_attr_getstacksize/2-1: execution: PASS
conformance/interfaces/pthread_attr_init/1-1: build: PASS
conformance/interfaces/pthread_attr_init/1-1: link: PASS
conformance/interfaces/pthread_attr_init/2-1: build: PASS
conformance/interfaces/pthread_attr_init/2-1: link: PASS
conformance/interfaces/pthread_attr_init/3-1: build: PASS
conformance/interfaces/pthread_attr_init/3-1: link: PASS
conformance/interfaces/pthread_attr_init/4-1: build: PASS
conformance/interfaces/pthread_attr_init/4-1: link: PASS
conformance/interfaces/pthread_attr_init/1-1: execution: PASS
conformance/interfaces/pthread_attr_init/2-1: execution: PASS
conformance/interfaces/pthread_attr_init/3-1: execution: PASS
conformance/interfaces/pthread_attr_init/4-1: execution: PASS
conformance/interfaces/pthread_attr_setdetachstate/1-1: build: PASS
conformance/interfaces/pthread_attr_setdetachstate/1-1: link: PASS
conformance/interfaces/pthread_attr_setdetachstate/1-2: build: PASS
conformance/interfaces/pthread_attr_setdetachstate/1-2: link: PASS
conformance/interfaces/pthread_attr_setdetachstate/2-1: build: PASS
conformance/interfaces/pthread_attr_setdetachstate/2-1: link: PASS
conformance/interfaces/pthread_attr_setdetachstate/4-1: build: PASS
conformance/interfaces/pthread_attr_setdetachstate/4-1: link: PASS
conformance/interfaces/pthread_attr_setdetachstate/1-1: execution: PASS
conformance/interfaces/pthread_attr_setdetachstate/1-2: execution: PASS
<lockup> + crash

Change History (10)

comment:1 by kallisti5, 9 years ago

Description: modified (diff)

comment:2 by kallisti5, 9 years ago

Blocked By: 11816 added

comment:3 by kallisti5, 9 years ago

Description: modified (diff)

comment:4 by kallisti5, 9 years ago

This is a meta ticket that will be blocked by each failing test.

comment:5 by pulkomandy, 9 years ago

Milestone: R1/beta1R1

Unrelated to feature completeness, moving out of beta1.

comment:6 by axeld, 7 years ago

Owner: changed from axeld to nobody
Status: newassigned

comment:7 by cocobean, 5 years ago

Updated for hrev53379:

Ref: https://github.com/haiku/open_posix_testsuite

Open POSIX Testsuite 1.5.2

THR tests show some FAILURE issues during testing.

conformance/interfaces/pthread_attr_getinheritsched/1-1: build: FAILED 
conformance/interfaces/pthread_attr_getinheritsched/1-1: build: FAILED 
conformance/interfaces/pthread_attr_getschedparam/1-1: build: FAILED 
conformance/interfaces/pthread_attr_getschedparam/1-1: build: FAILED 
conformance/interfaces/pthread_attr_getschedpolicy/2-1: build: FAILED 
conformance/interfaces/pthread_attr_getschedpolicy/2-1: build: FAILED 
conformance/interfaces/pthread_attr_setinheritsched/1-1: build: FAILED 
conformance/interfaces/pthread_attr_setinheritsched/2-1: build: FAILED 
conformance/interfaces/pthread_attr_setinheritsched/2-2: build: FAILED 
conformance/interfaces/pthread_attr_setinheritsched/2-3: build: FAILED 
conformance/interfaces/pthread_attr_setinheritsched/2-4: build: FAILED 
conformance/interfaces/pthread_attr_setinheritsched/4-1: build: FAILED 
conformance/interfaces/pthread_attr_setinheritsched/1-1: build: FAILED 
conformance/interfaces/pthread_attr_setinheritsched/2-1: build: FAILED 
conformance/interfaces/pthread_attr_setinheritsched/2-2: build: FAILED 
conformance/interfaces/pthread_attr_setinheritsched/2-3: build: FAILED 
conformance/interfaces/pthread_attr_setinheritsched/2-4: build: FAILED 
conformance/interfaces/pthread_attr_setinheritsched/4-1: build: FAILED 
conformance/interfaces/pthread_attr_setschedparam/1-1: build: FAILED 
conformance/interfaces/pthread_attr_setschedparam/1-2: build: FAILED 
conformance/interfaces/pthread_attr_setschedparam/1-3: build: FAILED 
conformance/interfaces/pthread_attr_setschedparam/1-4: build: FAILED 
conformance/interfaces/pthread_attr_setschedparam/speculative/3-1: build: FAILED 
conformance/interfaces/pthread_attr_setschedparam/speculative/3-2: build: FAILED 
conformance/interfaces/pthread_attr_setschedparam/1-1: build: FAILED 
conformance/interfaces/pthread_attr_setschedparam/1-2: build: FAILED 
conformance/interfaces/pthread_attr_setschedparam/1-3: build: FAILED 
conformance/interfaces/pthread_attr_setschedparam/1-4: build: FAILED 
conformance/interfaces/pthread_attr_setschedparam/speculative/3-1: build: FAILED 
conformance/interfaces/pthread_attr_setschedparam/speculative/3-2: build: FAILED 
conformance/interfaces/pthread_attr_setschedpolicy/1-1: build: FAILED 
conformance/interfaces/pthread_attr_setschedpolicy/4-1: build: FAILED 
conformance/interfaces/pthread_attr_setschedpolicy/speculative/5-1: build: FAILED 
conformance/interfaces/pthread_attr_setschedpolicy/1-1: build: FAILED 
conformance/interfaces/pthread_attr_setschedpolicy/4-1: build: FAILED 
conformance/interfaces/pthread_attr_setschedpolicy/speculative/5-1: build: FAILED 
conformance/interfaces/pthread_attr_setscope/4-1: execution: FAILED 
conformance/interfaces/pthread_attr_setstack/2-1: execution: FAILED 
conformance/interfaces/pthread_attr_setstack/6-1: execution: FAILED 
conformance/interfaces/pthread_barrier_init/3-1: execution: FAILED 
conformance/interfaces/pthread_barrierattr_getpshared/2-1: execution: FAILED 
conformance/interfaces/pthread_cond_broadcast/1-2: build: FAILED 
conformance/interfaces/pthread_cond_broadcast/2-3: build: FAILED 
conformance/interfaces/pthread_cond_broadcast/1-2: build: FAILED 
conformance/interfaces/pthread_cond_broadcast/2-3: build: FAILED 
conformance/interfaces/pthread_cond_destroy/2-1: build: FAILED 
conformance/interfaces/pthread_cond_destroy/2-1: build: FAILED 
conformance/interfaces/pthread_cond_init/1-2: build: FAILED 
conformance/interfaces/pthread_cond_init/2-2: build: FAILED 
conformance/interfaces/pthread_cond_init/1-2: build: FAILED 
conformance/interfaces/pthread_cond_init/2-2: build: FAILED 
conformance/interfaces/pthread_cond_signal/1-2: build: FAILED 
conformance/interfaces/pthread_cond_signal/1-2: build: FAILED 
conformance/interfaces/pthread_cond_timedwait/2-4: build: FAILED 
conformance/interfaces/pthread_cond_timedwait/2-5: build: FAILED 
conformance/interfaces/pthread_cond_timedwait/2-6: build: FAILED 
conformance/interfaces/pthread_cond_timedwait/2-7: build: FAILED 
conformance/interfaces/pthread_cond_timedwait/4-2: build: FAILED 
conformance/interfaces/pthread_cond_timedwait/2-4: build: FAILED 
conformance/interfaces/pthread_cond_timedwait/2-5: build: FAILED 
conformance/interfaces/pthread_cond_timedwait/2-6: build: FAILED 
conformance/interfaces/pthread_cond_timedwait/2-7: build: FAILED 
conformance/interfaces/pthread_cond_timedwait/4-2: build: FAILED 
conformance/interfaces/pthread_cond_wait/2-2: build: FAILED 
conformance/interfaces/pthread_cond_wait/2-3: build: FAILED 
conformance/interfaces/pthread_cond_wait/2-2: build: FAILED 
conformance/interfaces/pthread_cond_wait/2-3: build: FAILED 
conformance/interfaces/pthread_create/1-4: build: FAILED 
conformance/interfaces/pthread_create/1-5: build: FAILED 
conformance/interfaces/pthread_create/1-6: build: FAILED 
conformance/interfaces/pthread_create/11-1: build: FAILED 
conformance/interfaces/pthread_create/14-1: build: FAILED 
conformance/interfaces/pthread_create/15-1: build: FAILED 
conformance/interfaces/pthread_create/3-2: build: FAILED 
conformance/interfaces/pthread_create/8-2: build: FAILED 
conformance/interfaces/pthread_create/1-4: build: FAILED 
conformance/interfaces/pthread_create/1-5: build: FAILED 
conformance/interfaces/pthread_create/1-6: build: FAILED 
conformance/interfaces/pthread_create/11-1: build: FAILED 
conformance/interfaces/pthread_create/14-1: build: FAILED 
conformance/interfaces/pthread_create/15-1: build: FAILED 
conformance/interfaces/pthread_create/3-2: build: FAILED 
conformance/interfaces/pthread_create/8-2: build: FAILED 
conformance/interfaces/pthread_detach/1-2: build: FAILED 
conformance/interfaces/pthread_detach/2-2: build: FAILED 
conformance/interfaces/pthread_detach/4-3: build: FAILED 
conformance/interfaces/pthread_detach/1-2: build: FAILED 
conformance/interfaces/pthread_detach/2-2: build: FAILED 
conformance/interfaces/pthread_detach/4-1: execution: FAILED 
conformance/interfaces/pthread_detach/4-2: execution: FAILED 
conformance/interfaces/pthread_detach/4-3: build: FAILED 
conformance/interfaces/pthread_exit/1-2: build: FAILED 
conformance/interfaces/pthread_exit/2-2: build: FAILED 
conformance/interfaces/pthread_exit/3-2: build: FAILED 
conformance/interfaces/pthread_exit/4-1: build: FAILED 
conformance/interfaces/pthread_exit/5-1: build: FAILED 
conformance/interfaces/pthread_exit/6-1: build: FAILED 
conformance/interfaces/pthread_exit/6-2: build: FAILED 
conformance/interfaces/pthread_exit/1-2: build: FAILED 
conformance/interfaces/pthread_exit/2-2: build: FAILED 
conformance/interfaces/pthread_exit/3-2: build: FAILED 
conformance/interfaces/pthread_exit/4-1: build: FAILED 
conformance/interfaces/pthread_exit/5-1: build: FAILED 
conformance/interfaces/pthread_exit/6-1: build: FAILED 
conformance/interfaces/pthread_exit/6-2: build: FAILED 
conformance/interfaces/pthread_getcpuclockid/1-1: build: FAILED 
conformance/interfaces/pthread_getcpuclockid/speculative/3-1: build: FAILED 
conformance/interfaces/pthread_getcpuclockid/1-1: build: FAILED 
conformance/interfaces/pthread_getcpuclockid/speculative/3-1: build: FAILED 
conformance/interfaces/pthread_getschedparam/1-3: build: FAILED 
conformance/interfaces/pthread_getschedparam/1-3: build: FAILED 
conformance/interfaces/pthread_join/1-2: build: FAILED 
conformance/interfaces/pthread_join/4-1: build: FAILED 
conformance/interfaces/pthread_join/6-3: build: FAILED 
conformance/interfaces/pthread_join/1-2: build: FAILED 
conformance/interfaces/pthread_join/4-1: build: FAILED 
conformance/interfaces/pthread_join/6-3: build: FAILED 
conformance/interfaces/pthread_key_create/2-1: build: FAILED 
conformance/interfaces/pthread_key_create/speculative/5-1: build: FAILED 
conformance/interfaces/pthread_key_create/2-1: build: FAILED 
conformance/interfaces/pthread_key_create/speculative/5-1: build: FAILED 
conformance/interfaces/pthread_kill/6-1: execution: FAILED 
conformance/interfaces/pthread_mutex_getprioceiling/1-1: execution: FAILED 
conformance/interfaces/pthread_mutex_lock/1-1: build: FAILED 
conformance/interfaces/pthread_mutex_lock/1-1: build: FAILED 
conformance/interfaces/pthread_mutex_unlock/2-1: build: FAILED 
conformance/interfaces/pthread_mutex_unlock/2-1: build: FAILED 
conformance/interfaces/pthread_mutexattr_getprioceiling/1-1: execution: FAILED 
conformance/interfaces/pthread_mutexattr_setprioceiling/1-1: execution: FAILED 
conformance/interfaces/pthread_mutexattr_setprotocol/3-1: execution: FAILED 
conformance/interfaces/pthread_rwlock_rdlock/2-3: execution: FAILED 
conformance/interfaces/pthread_rwlock_rdlock/4-1: execution: FAILED 
conformance/interfaces/pthread_rwlock_timedrdlock/6-1: execution: FAILED 
conformance/interfaces/pthread_rwlock_timedwrlock/2-1: execution: FAILED 
conformance/interfaces/pthread_rwlock_timedwrlock/6-1: execution: FAILED 
conformance/interfaces/pthread_rwlock_wrlock/2-1: execution: FAILED 
conformance/interfaces/pthread_setschedparam/1-1: execution: FAILED 
conformance/interfaces/pthread_setschedprio/1-1: build: FAILED 
conformance/interfaces/pthread_setschedprio/1-1: build: FAILED 

Version 1, edited 5 years ago by cocobean (previous) (next) (diff)

comment:8 by Coldfirex, 7 months ago

hrev57257 - Latest run on the same 1.5.2 test suite.

If the test says interrupted thats when I got a crash popup and selected terminate. I removed unresolved and build errors from the below log.

conformance/interfaces/pthread_attr_setscope/4-1: execution: FAILED:  
conformance/interfaces/pthread_attr_setstack/2-1: execution: FAILED: 
conformance/interfaces/pthread_cancel/5-1: execution: FAILED:  
conformance/interfaces/pthread_cond_broadcast/2-3: execution: HUNG:  
conformance/interfaces/pthread_cond_broadcast/4-2: execution: INTERRUPTED:  
conformance/interfaces/pthread_cond_init/4-1: execution: UNRESOLVED:  
conformance/interfaces/pthread_cond_signal/1-1: execution: FAILED:  
conformance/interfaces/pthread_cond_signal/4-2: execution: INTERRUPTED:  
conformance/interfaces/pthread_cond_timedwait/2-6: execution: FAILED:  
conformance/interfaces/pthread_cond_timedwait/4-3: execution: INTERRUPTED:  
conformance/interfaces/pthread_cond_wait/2-3: execution: FAILED:  
conformance/interfaces/pthread_cond_wait/4-1: execution: INTERRUPTED:  
conformance/interfaces/pthread_detach/1-1: execution: INTERRUPTED:  
conformance/interfaces/pthread_detach/4-1: execution: FAILED:  
conformance/interfaces/pthread_detach/4-2: execution: FAILED:  
conformance/interfaces/pthread_equal/2-1: execution: HUNG:  
conformance/interfaces/pthread_join/speculative/6-1: execution: INTERRUPTED:  
conformance/interfaces/pthread_key_create/speculative/5-1: execution: INTERRUPTED:  
conformance/interfaces/pthread_mutex_getprioceiling/1-1: execution: FAILED:  
conformance/interfaces/pthread_mutex_trylock/4-3: execution: HUNG:  
conformance/interfaces/pthread_mutexattr_getprioceiling/1-1: execution: FAILED:  
conformance/interfaces/pthread_mutexattr_setprioceiling/1-1: execution: FAILED:  
conformance/interfaces/pthread_mutexattr_setprioceiling/3-1: execution: FAILED:  
conformance/interfaces/pthread_mutexattr_setprioceiling/3-2: execution: FAILED:  
conformance/interfaces/pthread_mutexattr_setprotocol/3-1: execution: FAILED:  
conformance/interfaces/pthread_mutexattr_setprotocol/3-2: execution: FAILED:  
conformance/interfaces/pthread_mutexattr_setpshared/3-1: execution: INTERRUPTED:  
conformance/interfaces/pthread_rwlock_rdlock/2-3: execution: FAILED:  
conformance/interfaces/pthread_rwlock_rdlock/4-1: execution: FAILED:  
conformance/interfaces/pthread_rwlock_timedrdlock/6-1: execution: FAILED:  
conformance/interfaces/pthread_rwlock_timedwrlock/2-1: execution: FAILED:  
conformance/interfaces/pthread_rwlock_timedwrlock/6-1: execution: FAILED:  
conformance/interfaces/pthread_rwlock_wrlock/2-1: execution: FAILED:  
conformance/interfaces/pthread_setschedparam/1-1: execution: FAILED:  

comment:9 by cocobean, 7 months ago

Last edited 5 months ago by cocobean (previous) (diff)

comment:10 by cocobean, 5 months ago

DATE: 2023-Nov-15

Following Haiku STABLE snapshot releases for UNIX 03 conformance:

For UNRESOLVED status, as of Haiku R1B4 hrev56768+93 x86_64:

conformance/interfaces/pthread_cancel/3-1: execution: UNRESOLVED 
conformance/interfaces/pthread_cond_init/4-1: execution: UNRESOLVED 
conformance/interfaces/pthread_cond_timedwait/4-3: execution: UNRESOLVED 
conformance/interfaces/pthread_mutex_init/5-1: execution: UNRESOLVED

For HUNG status, as of Haiku R1B4 hrev56768+93 x86_64:

conformance/interfaces/pthread_equal/2-1: execution: HUNG 
conformance/interfaces/pthread_once/6-1: execution: HUNG 
conformance/interfaces/pthread_rwlock_wrlock/3-1: execution: HUNG 

For FAILED status, as of Haiku R1B4 hrev56768+93 x86_64:

conformance/interfaces/pthread_attr_setstack/2-1: execution: FAILED 
conformance/interfaces/pthread_attr_setstack/6-1: execution: FAILED 
conformance/interfaces/pthread_cancel/5-1: execution: FAILED 
conformance/interfaces/pthread_detach/4-1: execution: FAILED 
conformance/interfaces/pthread_detach/4-2: execution: FAILED 
conformance/interfaces/pthread_rwlock_rdlock/2-3: execution: FAILED 
conformance/interfaces/pthread_rwlock_rdlock/4-1: execution: FAILED 
conformance/interfaces/pthread_rwlock_wrlock/2-1: execution: FAILED

For INTERRUPTED status, as of Haiku R1B4 hrev56768+93 x86_64:

POSIX-THR-test.txt:conformance/interfaces/pthread_mutex_init/5-3: execution: INERRUPTED 
POSIX-THR-test.txt:conformance/interfaces/pthread_mutex_lock/3-1: execution: INERRUPTED 
Note: See TracTickets for help on using tickets.