error: "cannot allocate memory" during test

Martin Pool martinpool at gmail.com
Wed Jun 6 03:13:01 BST 2007


I'm not sure if this is reproducible, just thought I would post it in
case anyone else saw it.

I have some doubts about the stability of the machine this is running
on so it might be a hardware problem.

This test shouldn't be using large amounts of memory but it's possible
something has leaked from a previous test.

Possibly we should invoke gc between each test, in case a lot of
memory has been used or also to give any destructors a chance to eg
warn that objects were not released?



ERROR: test_trivial_lock_tree_write_branch_read_locked
(bzrlib.tests.workingtree_implementations.test_locking.TestWorkingTreeLocking)

vvvv[log from bzrlib.tests.workingtree_implementations.test_locking.TestWorkingTreeLocking.test_trivial_lock_tree_write_branch_read_locked(WorkingTreeFormat4)]

^^^^[log from bzrlib.tests.workingtree_implementations.test_locking.TestWorkingTreeLocking.test_trivial_lock_tree_write_branch_read_locked(WorkingTreeFormat4)]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/mbp/bzr/trunk/bzrlib/tests/workingtree_implementations/test_locking.py",
line 76, in test_trivial_lock_tree_write_branch_read_locked
    wt = self.make_branch_and_tree('.')
  File "/home/mbp/bzr/trunk/bzrlib/tests/workingtree_implementations/__init__.py",
line 43, in make_branch_and_tree
    made_control = self.make_bzrdir(relpath, format=format)
  File "/home/mbp/bzr/trunk/bzrlib/tests/bzrdir_implementations/__init__.py",
line 51, in make_bzrdir
    relpath, format=self.bzrdir_format)
  File "/home/mbp/bzr/trunk/bzrlib/tests/__init__.py", line 1808, in make_bzrdir
    t.ensure_base()
  File "/home/mbp/bzr/trunk/bzrlib/transport/__init__.py", line 289,
in ensure_base
    self.mkdir('.')
  File "/home/mbp/bzr/trunk/bzrlib/transport/local.py", line 299, in mkdir
    self._mkdir(self._abspath(relpath), mode=mode)
  File "/home/mbp/bzr/trunk/bzrlib/transport/local.py", line 295, in _mkdir
    self._translate_error(e, abspath)
  File "/home/mbp/bzr/trunk/bzrlib/transport/__init__.py", line 270,
in _translate_error
    raise errors.TransportError(orig_error=e)
TransportError: Transport error: [Errno 12] Cannot allocate memory:
'/home/mbp/bzr/trunk/test0000.tmp/t_locking.TestWorkingTreeLocking.test_trivial_lock_tree_write_branch_read_locked(WorkingTreeFormat4)/work/'
[Errno 12] Cannot allocate memory:
'/home/mbp/bzr/trunk/test0000.tmp/t_locking.TestWorkingTreeLocking.test_trivial_lock_tree_write_branch_read_locked(WorkingTreeFormat4)/work/'

----------------------------------------------------------------------


-- 
Martin



More information about the bazaar mailing list