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

Transient error in multiprocessing (test_number_of_objects) #50180

Closed
pitrou opened this issue May 4, 2009 · 8 comments
Closed

Transient error in multiprocessing (test_number_of_objects) #50180

pitrou opened this issue May 4, 2009 · 8 comments
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 May 4, 2009

BPO 5930
Nosy @pitrou, @vstinner, @florentx

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 = None
closed_at = <Date 2014-06-27.20:05:55.046>
created_at = <Date 2009-05-04.21:33:23.556>
labels = ['tests', 'type-bug', 'library']
title = 'Transient error in multiprocessing (test_number_of_objects)'
updated_at = <Date 2014-06-27.20:05:55.045>
user = 'https://github.com/pitrou'

bugs.python.org fields:

activity = <Date 2014-06-27.20:05:55.045>
actor = 'vstinner'
assignee = 'jnoller'
closed = True
closed_date = <Date 2014-06-27.20:05:55.046>
closer = 'vstinner'
components = ['Library (Lib)', 'Tests']
creation = <Date 2009-05-04.21:33:23.556>
creator = 'pitrou'
dependencies = []
files = []
hgrepos = []
issue_num = 5930
keywords = ['buildbot']
message_count = 8.0
messages = ['87182', '87183', '99101', '99582', '100405', '113329', '113905', '221705']
nosy_count = 6.0
nosy_names = ['pitrou', 'vstinner', 'jnoller', 'asksol', 'flox', 'BreamoreBoy']
pr_nums = []
priority = 'normal'
resolution = 'out of date'
stage = 'test needed'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue5930'
versions = ['Python 3.4', 'Python 3.5']

@pitrou
Copy link
Member Author

pitrou commented May 4, 2009

Just got this on py3k, I can't reproduce unfortunately.

test test_multiprocessing failed -- Traceback (most recent call last):
  File "/home/antoine/py3k/__svn__/Lib/test/test_multiprocessing.py",
line 1070, in test_number_of_objects
    self.assertEqual(refs, EXPECTED_NUMBER)
AssertionError: 10 != 1

@pitrou pitrou added stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels May 4, 2009
@jnoller
Copy link
Mannequin

jnoller mannequin commented May 4, 2009

there's not much I can do without the ability to reproduce it :(

@florentx florentx mannequin added the tests Tests in the Lib/test dir label Feb 8, 2010
@florentx
Copy link
Mannequin

florentx mannequin commented Feb 9, 2010

Closed duplicate reports bpo-6366 and bpo-6747.

@florentx
Copy link
Mannequin

florentx mannequin commented Feb 19, 2010

Again, but with more details:
http://www.python.org/dev/buildbot/all/builders/i386%20Ubuntu%203.1/builds/302

test_multiprocessing
Process Process-49:
Traceback (most recent call last):
  File "/scratch/pybot-buildarea/3.1.klose-ubuntu-i386/build/Lib/multiprocessing/process.py", line 233, in _bootstrap
    self.run()
  File "/scratch/pybot-buildarea/3.1.klose-ubuntu-i386/build/Lib/multiprocessing/process.py", line 88, in run
    self._target(*self._args, **self._kwargs)
  File "/scratch/pybot-buildarea/3.1.klose-ubuntu-i386/build/Lib/test/test_multiprocessing.py", line 616, in f
    woken.release()
  File "/scratch/pybot-buildarea/3.1.klose-ubuntu-i386/build/Lib/multiprocessing/managers.py", line 962, in release
    return self._callmethod('release')
  File "/scratch/pybot-buildarea/3.1.klose-ubuntu-i386/build/Lib/multiprocessing/managers.py", line 750, in _callmethod
    raise convert_to_error(kind, result)
multiprocessing.managers.RemoteError: 
---------------------------------------------------------------------------
Traceback (most recent call last):
  File "/scratch/pybot-buildarea/3.1.klose-ubuntu-i386/build/Lib/multiprocessing/managers.py", line 219, in serve_client
    obj, exposed, gettypeid = id_to_obj[ident]
KeyError: 'cc9dc3c'
---------------------------------------------------------------------------
test test_multiprocessing failed -- Traceback (most recent call last):
  File "/scratch/pybot-buildarea/3.1.klose-ubuntu-i386/build/Lib/test/test_multiprocessing.py", line 1077, in test_number_of_objects
    self.assertEqual(refs, EXPECTED_NUMBER)
AssertionError: 9 != 1

@florentx
Copy link
Mannequin

florentx mannequin commented Mar 4, 2010

It might be related to bpo-7805. Let see if it happens again.

@vstinner vstinner changed the title Transient error in multiprocessing Transient error in multiprocessing (test_number_of_objects) Apr 18, 2010
@florentx
Copy link
Mannequin

florentx mannequin commented Aug 8, 2010

Confirmed on some buildbots.

@florentx
Copy link
Mannequin

florentx mannequin commented Aug 14, 2010

It happens on some 3.1 buildbots:

(...)
test_number_of_objects (test.test_multiprocessing.WithManagerTestZZZNumberOfObjects) ...
2c44bbe0: refcount=1
<_thread.lock object at 0x2c44bbe0>
2c56030c: refcount=2
<multiprocessing.pool.Pool object at 0x2c56030c>
2cf51a0c: refcount=1
<_RLock owner=None count=0>
2e3b81b4: refcount=1
<generator object <genexpr> at 0x2e3b81b4>
2e466e34: refcount=1
<multiprocessing.pool.ApplyResult object at 0x2e466e34>
2e5a506c: refcount=1
<multiprocessing.pool.IMapIterator object at 0x2e5a506c>
2c44bbe0: refcount=1
<_thread.lock object at 0x2c44bbe0>
2c56030c: refcount=2
<multiprocessing.pool.Pool object at 0x2c56030c>
2cf51a0c: refcount=1
<_RLock owner=None count=0>
2e3b81b4: refcount=1
<generator object <genexpr> at 0x2e3b81b4>
2e466e34: refcount=1
<multiprocessing.pool.ApplyResult object at 0x2e466e34>
2e5a506c: refcount=1
<multiprocessing.pool.IMapIterator object at 0x2e5a506c>
FAIL

(...)
======================================================================
FAIL: test_number_of_objects (test.test_multiprocessing.WithManagerTestZZZNumberOfObjects)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/usr/home/db3l/buildarea/3.1.bolen-freebsd7/build/Lib/test/test_multiprocessing.py", line 1085, in test_number_of_objects
    self.assertEqual(refs, EXPECTED_NUMBER)
AssertionError: 6 != 1

@BreamoreBoy
Copy link
Mannequin

BreamoreBoy mannequin commented Jun 27, 2014

Can this be closed as "out of date"?

@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