MemoryError when committing to a checkout
Edward Hagen
ehagen at gmail.com
Wed Jan 7 15:50:47 GMT 2009
Here's the story: I'm experimenting with using bzr to sync my 10 GB
work directory between my work and home machines (both running OS X
10.5), using a central server. After setting up this directory as a
local bzr branch on my work machine, I successfully pushed it to my
server using ssh. On my home machine, I then successfully checked out
the branch. However, when I tried to commit some changes on my home
machine, I got "malloc error: can't allocate region". Googling, it
seems this error was due to a bug in a Python 2.5 library that was
fixed, so I installed Python 2.6.1 on my home machine using the OS X
installer. I then installed bzr 1.10, using the OS X installer. But
bzr was installed in the stock 2.5 site-packages directory, not the
2.6 site-packages directory, so I created a symbolic link between the
latter and the former. Is the problem that I am trying to use a
python2.5 specific install of bzr with python2.6?
My terminal log tells the rest of the story (and many thanks in
advance for any assistance you can provide):
Last login: Tue Dec 30 18:16:33 on ttys000
iMac:~ hagen$ cd /Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6
iMac:python2.6 hagen$ ln -s /Library/Python/2.5/site-packages
iMac:python2.6 hagen$ ls site*
site.py site.pyc site.pyo
site-packages:
BzrTools-1.10.0-py2.5.egg-info README bzr_svn-0.4.16-py2.5.egg-
info markdown.py photologue
BzrTools-1.2.0-py2.5.egg-info bzr-1.10-py2.5.egg-info
bzr_upload-0.1.0-py2.5.egg-info markdown.pyc photologue-2.0-
py2.5.egg-info
BzrTools-1.9.1-py2.5.egg-info bzr-1.2.0-py2.5.egg-info bzrlib
mdx_footnotes.py pycrypto-2.0.1-py2.5.egg-info
Crypto bzr-1.9-py2.5.egg-info django mdx_footnotes.pyc
qbzr-0.9.5-py2.5.egg-info
Django-1.0_final-py2.5.egg-info bzr_email-0.0.1-py2.5.egg-info
docutils mdx_rss.py roman.py
Extmerge-r10-py2.5.egg-info bzr_rebase-0.3-py2.5.egg-info
docutils-0.6-py2.5.egg-info mdx_rss.pyc roman.pyc
Loom-1.4.0dev0-py2.5.egg-info bzr_rebase-0.4-py2.5.egg-info easy-
install.pth paramiko
PIL bzr_search-1.7.0dev0-py2.5.egg-info ipython-0.9.1-py2.5.egg
paramiko-1.7.1-py2.5.egg-info
PIL.pth bzr_svn-0.4.15-py2.5.egg-info markdown-1.7-py2.5.egg-
info paramiko-1.7.4-py2.5.egg-info
iMac:python2.6 hagen$ bzr --version
Bazaar (bzr) 1.10
Python interpreter: /Library/Frameworks/Python.framework/Versions/
2.6/Resources/Python.app/Contents/MacOS/Python 2.6.1
Python standard library: /Library/Frameworks/Python.framework/
Versions/2.6/lib/python2.6
bzrlib: /Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/bzrlib
Bazaar configuration: /Users/hagen/.bazaar
Bazaar log file: /Users/hagen/.bzr.log
Copyright 2005, 2006, 2007, 2008 Canonical Ltd.
http://bazaar-vcs.org/
bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.
iMac:python2.6 hagen$ cd
iMac:~ hagen$ ls
Desktop Documents Downloads Library Movies Music Pictures Public
Sites Work
iMac:~ hagen$ cd Work/
iMac:Work hagen$ ls
Documents
iMac:Work hagen$ cd Documents/
iMac:Documents hagen$ bzr commit -m "Trying to commit after upgrading
to Python 2.6"
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
packages/bzrlib/plugins/search/index.py:22: DeprecationWarning: the
md5 module is deprecated; use hashlib instead
import md5
Unable to obtain lock file:///Users/hagen/Work/Documents/.bzr/branch/lock
held by hagen at iMac.local on host iMac.local [process #7579]
locked 379 hours, 27 minutes ago
Will continue to try until 04:18:44, unless you press Ctrl-C
If you're sure that it's not being modified, use bzr break-lock file:///Users/hagen/Work/Documents/.bzr/branch/lock
^Cbzr: interrupted
iMac:Documents hagen$ ps -a
PID TTY TIME CMD
2650 ttys001 0:00.09 login -pf hagen
2651 ttys001 0:00.15 -bash
2712 ttys001 0:00.01 ps -a
iMac:Documents hagen$ kill -9 7579
-bash: kill: (7579) - No such process
iMac:Documents hagen$ bzr break-lock file:///Users/hagen/Work/Documents/.bzr/branch/lock
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
packages/bzrlib/plugins/search/index.py:22: DeprecationWarning: the
md5 module is deprecated; use hashlib instead
import md5
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
packages/Crypto/Hash/SHA.py:6: DeprecationWarning: the sha module is
deprecated; use the hashlib module instead
from sha import *
Password:
Break lock sftp://hagen@anthro.vancouver.wsu.edu/%7E/Documents/.bzr/branch/lock
held by hagen at iMac.local on host iMac.local [process #7579]
locked 384 hours, 12 minutes ago? [y/n]: y
iMac:Documents hagen$ bzr commit -m "Trying to commit after upgrading
to Python 2.6"
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
packages/bzrlib/plugins/search/index.py:22: DeprecationWarning: the
md5 module is deprecated; use hashlib instead
import md5
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
packages/Crypto/Hash/SHA.py:6: DeprecationWarning: the sha module is
deprecated; use the hashlib module instead
from sha import *
Password:
Committing to: sftp://hagen@anthro.vancouver.wsu.edu/~/Documents/
missing Grants and proposals/Bagandou substance use/Albendazole
clinical trial/Horton 1997 Albendazole in treatment of human cystic
echinococcosis -- 12 years of experience.pdf
modified Projects/Aka Summer 2008/Aka tobacco study/.RData
modified Projects/Aka Summer 2008/Aka tobacco study/.Rhistory
modified Projects/Aka Summer 2008/Aka tobacco study/Aka tobacco study.R
modified Projects/Aka Summer 2008/Aka tobacco study/Prasitologic exam
Pygmee Stools 2008.modified.xls
modified Projects/Aka Summer 2008/Aka tobacco study/Prasitologic exam
Pygmee Stools 2008.xls
deleted Grants and proposals/Bagandou substance use/Albendazole
clinical trial/Horton 1997 Albendazole in treatment of human cystic
echinococcosis -- 12 years of experience.pdf
[=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
================================= ]
Uploading data to master branch - Stage 4/6Python(3332,0xa0731830)
malloc: *** mmap(size=36864) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
Python(3332,0xa0731830) malloc: *** mmap(size=36864) failed (error
code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
Python(3332,0xa0731830) malloc: *** mmap(size=36864) failed (error
code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
bzr: ERROR: exceptions.MemoryError:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/bzrlib/commands.py", line 893, in
run_bzr_catch_errors
return run_bzr(argv)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/bzrlib/commands.py", line 839, in run_bzr
ret = run(*run_argv)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/bzrlib/commands.py", line 539, in
run_argv_aliases
return self.run(**all_cmd_args)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/bzrlib/builtins.py", line 2435, in run
exclude=safe_relpath_files(tree, exclude))
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/bzrlib/decorators.py", line 192, in write_locked
result = unbound(self, *args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/bzrlib/workingtree_4.py", line 235, in commit
result = WorkingTree3.commit(self, message, revprops, *args,
**kwargs)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/bzrlib/decorators.py", line 192, in write_locked
result = unbound(self, *args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/bzrlib/mutabletree.py", line 202, in commit
*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/bzrlib/commit.py", line 421, in commit
self._cleanup()
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/bzrlib/commit.py", line 606, in _cleanup
raise e
MemoryError
bzr 1.10 on python 2.6.1 (darwin)
arguments: ['/usr/local/bin/bzr', 'commit', '-m', 'Trying to commit
after upgrading to Python 2.6']
encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_US.UTF-8'
plugins:
bzrtools /Library/Frameworks/Python.framework/Versions/
2.6/lib/python2.6/site-packages/bzrlib/plugins/bzrtools [1.10]
email /Library/Frameworks/Python.framework/Versions/
2.6/lib/python2.6/site-packages/bzrlib/plugins/email [unknown]
extmerge /Library/Frameworks/Python.framework/Versions/
2.6/lib/python2.6/site-packages/bzrlib/plugins/extmerge [unknown]
launchpad /Library/Frameworks/Python.framework/Versions/
2.6/lib/python2.6/site-packages/bzrlib/plugins/launchpad [unknown]
loom /Library/Frameworks/Python.framework/Versions/
2.6/lib/python2.6/site-packages/bzrlib/plugins/loom [1.4dev]
qbzr /Library/Frameworks/Python.framework/Versions/
2.6/lib/python2.6/site-packages/bzrlib/plugins/qbzr [0.9.5]
rebase /Library/Frameworks/Python.framework/Versions/
2.6/lib/python2.6/site-packages/bzrlib/plugins/rebase [0.4dev]
search /Library/Frameworks/Python.framework/Versions/
2.6/lib/python2.6/site-packages/bzrlib/plugins/search [1.7dev]
svn /Library/Frameworks/Python.framework/Versions/
2.6/lib/python2.6/site-packages/bzrlib/plugins/svn [0.4.16]
upload /Library/Frameworks/Python.framework/Versions/
2.6/lib/python2.6/site-packages/bzrlib/plugins/upload [0.1.1]
*** Bazaar has encountered an internal error.
Please report a bug at https://bugs.launchpad.net/bzr/+filebug
including this traceback, and a description of what you
were doing when the error occurred.
iMac:Documents hagen$
More information about the bazaar
mailing list