-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Closed
Labels
bugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugpriority: mediumMedium impact/importance bugMedium impact/importance bug
Description
The pthread_execution test fails with an Assertion Error when trying to set or use attributes before they are initialized.
Arch: ARM, xtensa
Platforms: arduino2:arm, sam_e70_xplained:arm, frdm_k64f:arm, nrf52840_pca10056:arm, nrf52_pca10040:arm, emsk7d_v22:arc, esp32:xtensa
Error log on console:
***** Booting Zephyr OS 1.13.99 (delayed boot 1000ms) *****
Running test suite posix_apis
===================================================================
starting test - test_posix_pthread_execution
Assertion failed at ../zephyr/tests/posix/common/src/pthread.c:253: test_posix_pthread_execution: (ret not equal to EINVAL)
uninitialized attr set!
FAIL - test_posix_pthread_execution
===================================================================
starting test - test_posix_pthread_termination
Thread 0 starting with a priority of 4
Cancelling thread 0
Thread 1 starting with a priority of 3
Cancelling thread 1
Thread 1 could not be cancelled
Thread 2 starting with a priority of 2
Cancelling thread 2
Thread 3 starting with a priority of 1
Cancelling thread 3
Thread 3 could not be cancelled
PASS - test_posix_pthread_termination
===================================================================
starting test - test_posix_multiple_threads_single_key
Different threads set different values to same key:
thread 0: set value = 1073436044 and retrieved value = 1073436044
thread 1: set value = 1073436300 and retrieved value = 1073436300
PASS - test_posix_multiple_threads_single_key
===================================================================
starting test - test_posix_single_thread_multiple_keys
Single thread associates its value with different keys:
key 0: set value = 1073435788 and retrieved value = 1073435788
key 1: set value = 1073435788 and retrieved value = 1073435788
PASS - test_posix_single_thread_multiple_keys
===================================================================
starting test - test_posix_clock
POSIX clock APIs
POSIX clock APIs test done
PASS - test_posix_clock
===================================================================
starting test - test_posix_semaphore
PASS - test_posix_semaphore
===================================================================
starting test - test_posix_normal_mutex
mutex lock is taken
PASS - test_posix_normal_mutex
===================================================================
starting test - test_posix_recursive_mutex
recrusive mutex lock is taken
PASS - test_posix_recursive_mutex
===================================================================
starting test - test_posix_mqueue
PASS - test_posix_mqueue
===================================================================
starting test - test_posix_realtime
POSIX clock set APIs
POSIX clock set APIs test done
PASS - test_posix_realtime
===================================================================
starting test - test_posix_timer
POSIX timer test
Timer fires every 0 secs and 100000000 nsecs
Time remaining to fire 0 secs and 890000000 nsecs
Handler Signal value :20 for 1 times
Handler Signal value :20 for 2 times
Handler Signal value :20 for 3 times
Handler Signal value :20 for 4 times
Handler Signal value :20 for 5 times
Handler Signal value :20 for 6 times
Handler Signal value :20 for 7 times
Handler Signal value :20 for 8 times
Handler Signal value :20 for 9 times
Handler Signal value :20 for 10 times
Handler Signal value :20 for 11 times
Handler Signal value :20 for 12 times
PASS - test_posix_timer
===================================================================
starting test - test_posix_rw_lock
main acquire WR lock and 3 threads acquire RD lock
Thread 2 scheduling policy = 1 & priority 3 started
Not able to get RD lock on trying, try again
Thread 1 scheduling policy = 1 & priority 2 started
Not able to get RD lock on Parent thread releasing WR lock
Thread 2 got RD lock
trying, try again
Thread 1 got RD lock
Thread 0 scheduling policy = 1 & priority 1 started
Thread 0 got RD lock
Parent thread acquiring WR lock again
Thread 2 releasing RD lock
Thread 2 acquiring WR lock
Thread 1 releasing RD lock
Thread 1 acquiring WR lock
Thread 0 releasing RD lock
Parent thread acquired WR lock again
Thread 0 acquiring WR lock
Parent thread releasing WR lock again
3 threads acquire WR lock
Main thread acquiring RD lock
Thread 2 acquired WR lock
Thread 2 releasing WR lock
Main thread acquired RD lock
Main thread releasing RD lock
Thread 1 acquired WR lock
Thread 1 releasing WR lock
Thread 0 acquired WR lock
Thread 0 releasing WR lock
PASS - test_posix_rw_lock
===================================================================
===================================================================
PROJECT EXECUTION FAILED
Metadata
Metadata
Assignees
Labels
bugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugpriority: mediumMedium impact/importance bugMedium impact/importance bug