lp:bzr/2.0 upgrade --2a runs out of memory
Brian de Alwis
bsd at cs.ubc.ca
Sat Sep 5 23:30:44 BST 2009
On 4-Sep-2009, at 11:17 PM, John Arbash Meinel wrote:
> Well, if you are running with or without extensions, that could make a
> difference.
<blush> I didn't pay attention to the build output and assumed since
patiencediff was built, they all built. Sorry.
So using the extensions certainly helps, but the upgrade still
eventually fails (and --no-plugins makes no difference). I compiled
the extensions with Pyrex 0.9.8.5. Output and .bzr.log below:
$ python2.5 ~/tmp/bzr-2.0/bzr upgrade --2a
starting upgrade of file:///private/tmp/pkgsrc/
making backup of file:///private/tmp/pkgsrc/.bzr
to file:///private/tmp/pkgsrc/backup.bzr
starting repository conversion
python2.5(70162) malloc: *** mmap(size=20480) failed (error code=12)
revisions:
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
bzr: out of memory
Sat 2009-09-05 09:24:02 -0400
0.916 bzr arguments: [u'upgrade', u'--2a']
1.151 looking for plugins in /Users/bsd/.bazaar/plugins
2.616 WARNING: using slower ElementTree; consider installing
cElementTree and m
ake sure it's on your PYTHONPATH
4.903 looking for plugins in /Users/bsd/tmp/bzr-2.0/bzrlib/plugins
5.016 looking for plugins in /usr/pkg/lib/python2.5/site-packages/
bzrlib/plugin
s
5.016 Plugin name launchpad already loaded
5.031 Plugin name netrc_credential_store already loaded
6.312 encoding stdout as sys.stdout encoding 'UTF-8'
18.766 creating repository in file:///private/tmp/pkgsrc/.bzr/.
29.312 Resizing the inventory entry cache from 10240 to 119264
526.441 remap generated a new LeafNode
529.767 checking remap as 98 deletions
531.768 checking remap as 98 deletions
535.911 checking remap as 36 deletions
536.994 checking remap as 36 deletions
541.401 checking remap as 98 deletions
546.691 checking remap as 98 deletions
551.672 checking remap as 147 deletions
557.389 checking remap as 147 deletions
563.033 checking remap as 245 deletions
568.826 checking remap as 245 deletions
574.112 remap generated a new LeafNode
574.403 checking remap as 453 deletions
580.238 remap generated a new LeafNode
580.535 checking remap as 453 deletions
589.196 checking remap as 250 deletions
592.472 checking remap as 250 deletions
601.054 remap generated a new LeafNode
601.509 checking remap as 161 deletions
605.772 checking remap as 161 deletions
614.070 remap generated a new LeafNode
614.565 checking remap as 85 deletions
618.066 checking remap as 85 deletions
625.915 remap generated a new LeafNode
626.393 checking remap as 56 deletions
629.551 checking remap as 56 deletions
637.563 remap generated a new LeafNode
637.905 checking remap as 126 deletions
641.048 checking remap as 126 deletions
649.237 remap generated a new LeafNode
649.619 remap generated a new LeafNode
649.639 remap generated a new LeafNode
649.721 remap generated a new LeafNode
650.094 remap generated a new LeafNode
650.406 remap generated a new LeafNode
653.965 checking remap as 551 deletions
662.112 checking remap as 551 deletions
671.102 remap generated a new LeafNode
671.327 remap generated a new LeafNode
671.393 remap generated a new LeafNode
671.687 remap generated a new LeafNode
672.263 checking remap as 150 deletions
681.374 checking remap as 150 deletions
687.291 remap generated a new LeafNode
687.660 remap generated a new LeafNode
690.955 remap generated a new LeafNode
691.248 remap generated a new LeafNode
691.383 remap generated a new LeafNode
691.409 remap generated a new LeafNode
691.498 remap generated a new LeafNode
691.641 remap generated a new LeafNode
692.106 checking remap as 329 deletions
704.338 remap generated a new LeafNode
704.523 checking remap as 329 deletions
710.196 remap generated a new LeafNode
710.369 remap generated a new LeafNode
710.809 remap generated a new LeafNode
710.883 remap generated a new LeafNode
711.441 remap generated a new LeafNode
711.593 remap generated a new LeafNode
711.999 remap generated a new LeafNode
712.270 checking remap as 214 deletions
720.126 checking remap as 214 deletions
725.310 remap generated a new LeafNode
725.360 remap generated a new LeafNode
725.693 remap generated a new LeafNode
729.019 remap generated a new LeafNode
729.712 checking remap as 127 deletions
736.970 checking remap as 127 deletions
745.918 remap generated a new LeafNode
746.794 checking remap as 84 deletions
755.468 checking remap as 84 deletions
761.332 remap generated a new LeafNode
761.758 remap generated a new LeafNode
765.254 checking remap as 95 deletions
768.233 checking remap as 95 deletions
778.340 remap generated a new LeafNode
778.831 remap generated a new LeafNode
782.861 remap generated a new LeafNode
783.531 remap generated a new LeafNode
783.636 remap generated a new LeafNode
784.076 remap generated a new LeafNode
785.197 remap generated a new LeafNode
785.219 remap generated a new LeafNode
785.625 remap generated a new LeafNode
785.629 remap generated a new LeafNode
785.916 remap generated a new LeafNode
786.088 remap generated a new LeafNode
786.098 remap generated a new LeafNode
786.388 remap generated a new LeafNode
786.462 remap generated a new LeafNode
786.494 remap generated a new LeafNode
786.612 remap generated a new LeafNode
786.658 remap generated a new LeafNode
790.821 checking remap as 933 deletions
817.438 checking remap as 933 deletions
836.161 remap generated a new LeafNode
837.089 remap generated a new LeafNode
837.463 remap generated a new LeafNode
838.083 remap generated a new LeafNode
838.146 remap generated a new LeafNode
838.342 remap generated a new LeafNode
838.637 remap generated a new LeafNode
838.756 remap generated a new LeafNode
842.458 remap generated a new LeafNode
842.565 remap generated a new LeafNode
842.801 remap generated a new LeafNode
843.069 remap generated a new LeafNode
843.197 remap generated a new LeafNode
844.601 checking remap as 742 deletions
887.001 checking remap as 742 deletions
908.380 Packing repository
<bzrlib.repofmt.groupcompress_repo.GCRepositoryPackC
ollection object at 0x627790>, which has 1 pack files, containing 21
revisions w
ith hint ['ed0c5306d8f8836747c37827179621fc'].
908.382 repacking 21 revisions
908.395 repacking 21 inventories
908.722 repacking chk: 21 id_to_entry roots, 21 p_id_map roots, 48979
total key
s
998.122 Traceback (most recent call last):
File "/Users/bsd/tmp/bzr-2.0/bzrlib/commands.py", line 835, in
exception_to_re
turn_code
return the_callable(*args, **kwargs)
File "/Users/bsd/tmp/bzr-2.0/bzrlib/commands.py", line 1030, in
run_bzr
ret = run(*run_argv)
File "/Users/bsd/tmp/bzr-2.0/bzrlib/commands.py", line 647, in
run_argv_aliase
s
return self.run(**all_cmd_args)
File "/Users/bsd/tmp/bzr-2.0/bzrlib/builtins.py", line 3162, in run
upgrade(url, format)
File "/Users/bsd/tmp/bzr-2.0/bzrlib/upgrade.py", line 85, in upgrade
Convert(url, format)
File "/Users/bsd/tmp/bzr-2.0/bzrlib/upgrade.py", line 40, in __init__
self.convert()
File "/Users/bsd/tmp/bzr-2.0/bzrlib/upgrade.py", line 79, in convert
self.bzrdir = converter.convert(self.bzrdir, self.pb)
File "/Users/bsd/tmp/bzr-2.0/bzrlib/bzrdir.py", line 3023, in convert
converter.convert(repo, pb)
File "/Users/bsd/tmp/bzr-2.0/bzrlib/repository.py", line 4082, in
convert
self.source_repo.copy_content_into(converted)
File "/Users/bsd/tmp/bzr-2.0/bzrlib/repository.py", line 1540, in
copy_content
_into
return InterRepository.get(self,
destination).copy_content(revision_id)
File "/Users/bsd/tmp/bzr-2.0/bzrlib/decorators.py", line 192, in
write_locked
result = unbound(self, *args, **kwargs)
File "/Users/bsd/tmp/bzr-2.0/bzrlib/repository.py", line 3393, in
copy_content
self.target.fetch(self.source, revision_id=revision_id)
File "/Users/bsd/tmp/bzr-2.0/bzrlib/repository.py", line 1695, in
fetch
find_ghosts=find_ghosts, fetch_spec=fetch_spec)
File "/Users/bsd/tmp/bzr-2.0/bzrlib/decorators.py", line 192, in
write_locked
result = unbound(self, *args, **kwargs)
File "/Users/bsd/tmp/bzr-2.0/bzrlib/repository.py", line 4008, in
fetch
self._fetch_all_revisions(revision_ids, pb)
File "/Users/bsd/tmp/bzr-2.0/bzrlib/repository.py", line 3972, in
_fetch_all_r
evisions
self.target.pack(hint=hints)
File "/Users/bsd/tmp/bzr-2.0/bzrlib/decorators.py", line 192, in
write_locked
result = unbound(self, *args, **kwargs)
File "/Users/bsd/tmp/bzr-2.0/bzrlib/repofmt/pack_repo.py", line
2316, in pack
self._pack_collection.pack(hint=hint)
File "/Users/bsd/tmp/bzr-2.0/bzrlib/repofmt/pack_repo.py", line
1582, in pack
self._execute_pack_operations(pack_operations, OptimisingPacker)
File "/Users/bsd/tmp/bzr-2.0/bzrlib/repofmt/groupcompress_repo.py",
line 605,
in _execute_pack_operations
result = packer.pack()
File "/Users/bsd/tmp/bzr-2.0/bzrlib/repofmt/pack_repo.py", line
756, in pack
return self._create_pack_from_packs()
File "/Users/bsd/tmp/bzr-2.0/bzrlib/repofmt/groupcompress_repo.py",
line 475,
in _create_pack_from_packs
self._copy_chk_texts()
File "/Users/bsd/tmp/bzr-2.0/bzrlib/repofmt/groupcompress_repo.py",
line 445,
in _copy_chk_texts
reuse_blocks=False):
File "/Users/bsd/tmp/bzr-2.0/bzrlib/groupcompress.py", line 1741,
in _insert_r
ecord_stream
flush()
File "/Users/bsd/tmp/bzr-2.0/bzrlib/groupcompress.py", line 1635,
in flush
bytes = self._compressor.flush().to_bytes()
File "/Users/bsd/tmp/bzr-2.0/bzrlib/groupcompress.py", line 326, in
to_bytes
self._create_z_content()
File "/Users/bsd/tmp/bzr-2.0/bzrlib/groupcompress.py", line 319, in
_create_z_
content
self._create_z_content_from_chunks()
File "/Users/bsd/tmp/bzr-2.0/bzrlib/groupcompress.py", line 307, in
_create_z_
content_from_chunks
compressed_chunks = map(compressor.compress, self._content_chunks)
MemoryError
998.123 return code 3
--
"Amusement to an observing mind is study." - Benjamin Disraeli
More information about the bazaar
mailing list