Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

open_posix_testsuite: fix pthread_cond_destroy test error.#1097

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
qinyuntan wants to merge1 commit intolinux-test-project:master
base:master
Choose a base branch
Loading
fromqinyuntan:master

Conversation

@qinyuntan
Copy link

According to the description of the pthread_cond_destroy function in glibc 2.32, it is advised to ensure that all threads blocked on the condition variable have been successfully awakened before calling this function, otherwise unpredictable situations may occur.

In the glibc 2.32 version, this testcase will hang. Therefore, it is necessary to ensure that all threads have been successfully awakened before calling pthread_cond_destroy to destroy the condition variable.

[ type description here; PLEASE REMOVE THIS LINE AND THE LINES BELOW BEFORE SUBMITTING THIS PULL REQUEST ]

According to the description of the pthread_cond_destroy function in glibc 2.32,it is advised to ensure that all threads blocked on the condition variable havebeen successfully awakened before calling this function, otherwise unpredictablesituations may occur.In the glibc 2.32 version, this testcase will hang. Therefore, it is necessaryto ensure that all threads have been successfully awakened before callingpthread_cond_destroy to destroy the condition variable.Signed-off-by: tanqinyun.tqy <tanqinyun.tqy@alibaba-inc.com>
@qinyuntan
Copy link
Author

The logs below indicate a failure in the test.

./interfaces/pthread_cond_destroy/pthread_cond_destroy_2-1.run-test

[14:25:57]Test starting
[14:25:57]System abilities:
[14:25:57] TPS : 200809
[14:25:57] CS : 200809
[14:25:57] MON : 200809
[14:25:57] MF : 200809
[14:27:57]Test ../../../conformance/interfaces/pthread_cond_destroy/2-1.c FAILED: Test failed (hang)

@richiejprichiejp added the posixPOSIX conformance test suite labelNov 24, 2023
@pevikpevikforce-pushed themaster branch 6 times, most recently fromacb468e todc9ba89CompareFebruary 7, 2025 09:16
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

posixPOSIX conformance test suite

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@qinyuntan@richiejp

[8]ページ先頭

©2009-2025 Movatter.jp