Opened 10 years ago
Last modified 4 weeks 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 )
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 (15)
comment:1 by , 10 years ago
Description: | modified (diff) |
---|
comment:2 by , 10 years ago
Blocked By: | 11816 added |
---|
comment:3 by , 10 years ago
Description: | modified (diff) |
---|
comment:4 by , 10 years ago
comment:5 by , 10 years ago
Milestone: | R1/beta1 → R1 |
---|
Unrelated to feature completeness, moving out of beta1.
comment:6 by , 8 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:8 by , 16 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:11 by , 4 months ago
DATE: 2024-Sep-04
Following Haiku STABLE snapshot releases for UNIX 03 conformance:
For UNRESOLVED status, as of Haiku R1B4 hrev57937+94 x86_gcc2:
conformance/interfaces/pthread_cancel/3-1: execution: UNRESOLVED conformance/interfaces/pthread_cond_broadcast/1-2: execution: UNRESOLVED conformance/interfaces/pthread_cond_init/4-1: execution: UNRESOLVED conformance/interfaces/pthread_cond_timedwait/2-5: execution: UNRESOLVED conformance/interfaces/pthread_mutex_init/5-1: execution: UNRESOLVED
For HUNG status, as of Haiku R1B5 hrev57937+94 x86_gcc2:
conformance/interfaces/pthread_cond_broadcast/4-2: execution: HUNG conformance/interfaces/pthread_cond_signal/4-2: execution: HUNG
For FAILED status, as of Haiku R1B5 hrev57937+94 x86_gcc2:
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
For INTERRUPTED status, as of Haiku R1B5 hrev57937+94 x86_gcc2:
conformance/interfaces/pthread_cond_timedwait/4-3: execution: INTERRUPTED conformance/interfaces/pthread_cond_wait/4-1: execution: INTERRUPTED
comment:12 by , 4 months ago
Please test with a nightly build as the beta5 branch doesn't have all the fixes (yet) that I made recently.
comment:13 by , 4 months ago
DATE: 2024-Nov-04
Following Haiku NIGHTLY snapshot releases for UNIX 03 conformance:
For FAILED status, as of Haiku R1B5 hrev58293 x86_gcc2:
conformance/interfaces/pthread_attr_setstack/2-1: execution: FAILED conformance/interfaces/pthread_attr_setstack/6-1: execution: FAILED conformance/interfaces/pthread_cond_timedwait/2-6: execution: FAILED conformance/interfaces/pthread_cond_wait/2-3: execution: FAILED conformance/interfaces/pthread_create/2-1: execution: FAILED conformance/interfaces/pthread_detach/4-2: execution: FAILED conformance/interfaces/pthread_rwlock_rdlock/2-3: execution: FAILED
For INTERRUPTED status, as of Haiku R1B5 hrev58293 x86_gcc2:
conformance/interfaces/pthread_cond_signal/4-2: execution: INTERRUPTED conformance/interfaces/pthread_cond_timedwait/4-3: execution: INTERRUPTED conformance/interfaces/pthread_cond_wait/4-1: execution: INTERRUPTED
For UNRESOLVED status, as of Haiku R1B5 hrev58293 x86_gcc2:
conformance/interfaces/pthread_cancel/3-1: execution: UNRESOLVED conformance/interfaces/pthread_cond_broadcast/1-2: execution: UNRESOLVED conformance/interfaces/pthread_cond_init/4-1: execution: UNRESOLVED conformance/interfaces/pthread_cond_timedwait/2-5: execution: UNRESOLVED
comment:14 by , 6 weeks ago
DATE: 2024-Nov-15
Following Haiku NIGHTLY snapshot releases for UNIX 03 conformance as of Haiku R1B5 hrev58330 x64:
For FAILED status:
conformance/interfaces/pthread_attr_setstack/6-1: execution: FAILED conformance/interfaces/pthread_barrier_init/3-1: execution: FAILED conformance/interfaces/pthread_detach/4-2: execution: FAILED conformance/interfaces/pthread_rwlock_rdlock/2-3: execution: FAILED
For HUNG status:
conformance/interfaces/pthread_equal/2-1: execution: HUNG conformance/interfaces/pthread_once/6-1: execution: HUNG
For INTERRUPTED status:
conformance/interfaces/pthread_cond_broadcast/4-2: execution: INTERRUPTED conformance/interfaces/pthread_cond_signal/4-2: execution: INTERRUPTED
For UNRESOLVED status:
conformance/interfaces/pthread_cancel/3-1: execution: UNRESOLVED conformance/interfaces/pthread_cond_broadcast/1-2: execution: UNRESOLVED conformance/interfaces/pthread_cond_init/4-1: execution: UNRESOLVED conformance/interfaces/pthread_cond_timedwait/2-5: execution: UNRESOLVED conformance/interfaces/pthread_mutex_init/5-1: execution: UNRESOLVED
comment:15 by , 6 weeks ago
For hrev58360, started to isolate the issues with these remaining FAILED tests:
All of the main OpenPOSIX pthread tests pass in comparison to Linux.
POSIX compliant Thread Scheduling implementation of SCHED_FIFO and sched_get_priority_min/max will help improve mentioned FAILED tests.
This is a meta ticket that will be blocked by each failing test.