Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_thread is flaky #51443

Closed
pitrou opened this issue Oct 23, 2009 · 4 comments
Closed

test_thread is flaky #51443

pitrou opened this issue Oct 23, 2009 · 4 comments
Assignees
Labels
stdlib Python modules in the Lib dir tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@pitrou
Copy link
Member

pitrou commented Oct 23, 2009

BPO 7194
Nosy @pitrou, @ned-deily

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/pitrou'
closed_at = <Date 2009-10-27.13:11:19.292>
created_at = <Date 2009-10-23.18:20:45.711>
labels = ['tests', 'type-bug', 'library']
title = 'test_thread is flaky'
updated_at = <Date 2009-10-28.09:20:16.160>
user = 'https://github.com/pitrou'

bugs.python.org fields:

activity = <Date 2009-10-28.09:20:16.160>
actor = 'ned.deily'
assignee = 'pitrou'
closed = True
closed_date = <Date 2009-10-27.13:11:19.292>
closer = 'pitrou'
components = ['Library (Lib)', 'Tests']
creation = <Date 2009-10-23.18:20:45.711>
creator = 'pitrou'
dependencies = []
files = []
hgrepos = []
issue_num = 7194
keywords = []
message_count = 4.0
messages = ['94392', '94393', '94559', '94617']
nosy_count = 2.0
nosy_names = ['pitrou', 'ned.deily']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue7194'
versions = ['Python 2.6']

@pitrou
Copy link
Member Author

pitrou commented Oct 23, 2009

test_thread sometimes tries to release an unacquired mutex. It is easier
to reproduce when using the "-j" option (on trunk and py3k, since the
option doesn't exist on 2.6/3.1):

./python -m test.regrtest -j4 test_thread test_thread test_thread
test_thread
test_thread
test_thread
test_thread
Unhandled exception in thread started by <bound method
ThreadRunningTests.task of <test.test_thread.ThreadRunningTests
testMethod=test_stack_size>>
Traceback (most recent call last):
  File "/home/antoine/py3k/__svn__/Lib/test/test_thread.py", line 49, in
task
    self.done_mutex.release()
_thread.error: release unlocked lock
test_thread

@pitrou pitrou added stdlib Python modules in the Lib dir tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error labels Oct 23, 2009
@pitrou
Copy link
Member Author

pitrou commented Oct 23, 2009

Fixed in trunk, py3k and 3.1. Waiting for 2.6 to unfreeze before merging
there.

@pitrou pitrou self-assigned this Oct 23, 2009
@pitrou
Copy link
Member Author

pitrou commented Oct 27, 2009

Backported to 2.6 in r75748.

@pitrou pitrou closed this as completed Oct 27, 2009
@ned-deily
Copy link
Member

Duplicate of bpo-6186?

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants