Bugzilla – Bug 3159
Anaconda crash - db type could not be determined
Last modified: 2012-07-04 20:12:07 UTC
Created attachment 587 [details]
On my custom ISOs I've fully updated system and anaconda stops working.
The reason is switching to python 2.7 probably.
I've tried to recompile anaconda, but it didn't help.
The error is
File "/usr/lib/python2.7/anydbm.py", line 82, in open
raise error, "db type could not be determined"
I've found the explanation:
dbm.whichdb (python 3) and whichdb.whichdb (python 2) only check for "magic == 0x13579ace" to recognize gdbm databases. The recently released gdbm 1.9 series adds 0x13579acd (for "32bit") and 0x13579acf (for "64bit") magics (see src/gdbmconst.h in the gdbm-1.9 or gdbm-1.9.1 source tree). Python's gdbm linked to gdbm 1.9 creates databases with the new magic, which causes the whichdb tests to fail. To reproduce this just build python against the new libgdbm and run test/test_dbm.py.
I've checked the file
It begins with:
9acf 1357 - exactly, as described above.
this patch solves the issue:
- if magic == 0x13579ace:
+ if magic in (0x13579ace, 0x13579acd, 0x13579acf):
Did you report this to upstream Gentoo yet?
Author Fabio Erculiani (lxnay AT sabayon.org)
Date Tue, 10 Apr 2012 13:07:18 +0200
[dev-lang/python] add gdbm-1.9 patch, fixes bug 3159
This is fixed now.
*** Bug 3145 has been marked as a duplicate of this bug. ***