[Pkg-bazaar-maint] Bug#661299: Bug#661299: bzr-git: git-remote-bzr fails with SQL logic error or missing database

Jelmer Vernooij jelmer at debian.org
Sat Mar 3 22:57:37 UTC 2012


Hi Paul,

On Sun, 2012-02-26 at 11:58 +0800, Paul Wise wrote:
> Package: bzr-git
> Version: 0.6.7-1
> Severity: normal
> 
> The git-remote-bzr plugin doesn't seem to work:
> 
> pabs at chianamo ~ $ git clone bzr::lp:unity
> Cloning into 'unity'...
> You have not informed bzr of your Launchpad ID, and you must do this to
> write to Launchpad or access private data.  See "bzr help launchpad-login".
> *** glibc detected *** /usr/bin/python: realloc(): invalid pointer: 0x000000000229d290 ***
> *** glibc detected *** /usr/bin/python: realloc(): invalid pointer: 0x000000000222a000 ***
> Traceback (most recent call last):
>   File "/usr/lib/git-core/git-remote-bzr", line 49, in <module>
>     helper.process(sys.stdin, sys.stdout)
>   File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/git_remote_helper.py", line 168, in process
>     self.process_line(l, outf)
>   File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/git_remote_helper.py", line 184, in process_line
>     self.commands[argv[0]](self, outf, argv)
>   File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/git_remote_helper.py", line 116, in cmd_list
>     object_store = get_object_store(repo)
>   File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/object_store.py", line 70, in get_object_store
>     return BazaarObjectStore(repo, mapping)
>   File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/object_store.py", line 321, in __init__
>     self._cache = cache_from_repository(repository)
>   File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/cache.py", line 1012, in from_repository
>     return BzrGitCacheFormat.from_repository(repository)
>   File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/cache.py", line 238, in from_repository
>     return cls.from_transprobablyport(transport)
>   File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/cache.py", line 205, in from_transport
>     return format.open(transport)
>   File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/cache.py", line 395, in open
>     return SqliteBzrGitCache(os.path.join(basepath, "idmap.db"))
>   File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/cache.py", line 382, in <lambda>
>     SqliteBzrGitCache = lambda p: BzrGitCache(SqliteGitShaMap(p), None, SqliteCacheUpdater)
>   File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/cache.py", line 432, in __init__
>     """)
> sqlite3.OperationalError: SQL logic error or missing database
> pabs at chianamo ~ $ git clone bzr::http://bugs.debian.org/debbugs-source/mainline/ debbugs
> Cloning into 'debbugs'...
> *** glibc detected *** /usr/bin/python: realloc(): invalid pointer: 0x0000000002d55360 ***
> Traceback (most recent call last):
>   File "/usr/lib/git-core/git-remote-bzr", line 49, in <module>
>     helper.process(sys.stdin, sys.stdout)
>   File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/git_remote_helper.py", line 168, in process
>     self.process_line(l, outf)
>   File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/git_remote_helper.py", line 184, in process_line
>     self.commands[argv[0]](self, outf, argv)
>   File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/git_remote_helper.py", line 116, in cmd_list
>     object_store = get_object_store(repo)
>   File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/object_store.py", line 70, in get_object_store
>     return BazaarObjectStore(repo, mapping)
>   File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/object_store.py", line 321, in __init__
>     self._cache = cache_from_repository(repository)
>   File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/cache.py", line 1012, in from_repository
>     return BzrGitCacheFormat.from_repository(repository)
>   File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/cache.py", line 238, in from_repository
>     return cls.from_transport(transport)
>   File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/cache.py", line 205, in from_transport
>     return format.open(transport)
>   File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/cache.py", line 395, in open
>     return SqliteBzrGitCache(os.path.join(basepath, "idmap.db"))
>   File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/cache.py", line 382, in <lambda>
>     SqliteBzrGitCache = lambda p: BzrGitCache(SqliteGitShaMap(p), None, SqliteCacheUpdater)
>   File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/git/cache.py", line 432, in __init__
>     """)
> sqlite3.OperationalError: SQL logic error or missing database

Thanks for the bug report, and sorry for not getting back to you
earlier. I've tried to reproduce this locally for the last couple of
days, but have failed. I'm using a slightly newer version of bzr-git,
but there have been no changes to the SQL side of things in a long
time. 

Cloning debbugs works fine here. Unity still fails, but later in the
process and with different errors than you're getting.

I wonder if the glibc realloc error is related - I'm not seeing that.

If you have a sid install around, it would be great if you could try
git-remote-bzr on that with the current Python package there.

If you're looking for a small bzr branch to test with, I usually use
bzr-stats ("lp:bzr-stats").

Cheers,

Jelmer





More information about the Pkg-bazaar-maint mailing list