2010/5/19 Robert Gibbs <gibbsrc@gmail.com>
I am using Ubuntu 10.04 and have installed the 3.2.3 version ubuntu-deb package from the sourceforge site. The tree I am working shows that it is locked. If I break the lock then attempt to open the tree, I get a segfault.

I am not sure how to debug this, but have enclosed a partial stack trace below:

(gdb) r gramps.py
Starting program: /usr/bin/python gramps.py
[Thread debugging using libthread_db enabled]
/usr/share/themes/EdubuntuColors/gtk-2.0/gtkrc:81: Murrine configuration option "gradients" is no longer supported and will be ignored.
Warning: spelling checker disabled; install pyenchant/python-enchant to enable.
[New Thread 0xb58dcb70 (LWP 7169)]
[New Thread 0xb4fb3b70 (LWP 7170)]
[New Thread 0xb47b2b70 (LWP 7171)]
[Thread 0xb47b2b70 (LWP 7171) exited]
[New Thread 0xb47b2b70 (LWP 7172)]

Program received signal SIGSEGV, Segmentation fault.
0x017bc878 in __bam_split_read () from /usr/lib/libdb-4.8.so
(gdb) bt 20
#0  0x017bc878 in __bam_split_read () from /usr/lib/libdb-4.8.so
#1  0x0179f12b in __bam_split_recover () from /usr/lib/libdb-4.8.so
#2  0x01845627 in __db_dispatch () from /usr/lib/libdb-4.8.so
#3  0x01872326 in __db_apprec () from /usr/lib/libdb-4.8.so
#4  0x0186fbff in __env_attach_regions () from /usr/lib/libdb-4.8.so
#5  0x018704be in __env_open () from /usr/lib/libdb-4.8.so
#6  0x018706ff in __env_open_pp () from /usr/lib/libdb-4.8.so
#7  0x0175e4dc in DBEnv_open (self=0x0, args=
    ('/home/bob/.gramps/grampsdb/4b81e02c', 11155))
    at /build/buildd/python2.6-2.6.5/Modules/_bsddb.c:4077
#8  0x080e0a21 in call_function (f=
    Frame 0x950649c, for file /usr/share/gramps/gen/db/write.py, line 406, in load (self=<DbBsddb(rand=<Random(gauss_next=None) at remote 0x95075fc>, family_event_names=set([]), _current_signals=[], lmap_index=0, media_attributes=set([]), omap_index=0, has_changed=False, oid_trans={}, repo_bookmarks=<DbBookmarks(bookmarks=[]) at remote 0x942164c>, emap_index=0, child_ref_types=set([]), media_bookmarks=<DbBookmarks(bookmarks=[]) at remote 0x942168c>, family_bookmarks=<DbBookmarks(bookmarks=[]) at remote 0x941a28c>, surname_list=[], media_map={}, smap_index=0, family_attributes=set([]), undo_history_callback=None, note_bookmarks=<DbBookmarks(bookmarks=[]) at remote 0x94216cc>, secondary_connected=False, default=None, source_bookmarks=<DbBookmarks(bookmarks=[]) at remote 0x94210ec>, individual_attributes=set([]), individual_event_names=set([]), mediaobject_prefix='O%04d', abort_possible=True, full_name='/home/bob/.gramps/grampsdb/4b81e02c', event_role_names=set([]), repository_map={}, rid_trans={}, pmap_index=0, eve...(truncated), throwflag=0) at ../Python/ceval.c:3750
#9  PyEval_EvalFrameEx (f=
    Frame 0x950649c, for file /usr/share/gramps/gen/db/write.py, line 406, in load (self=<DbBsddb(rand=<Random(gauss_next=None) at remote 0x95075fc>, family_event_names=set([]), _current_signals=[], lmap_index=0, media_attributes=set([]), omap_index=0, has_changed=False, oid_trans={}, repo_bookmarks=<DbBookmarks(bookmarks=[]) at remote 0x942164c>, emap_index=0, child_ref_types=set([]), media_bookmarks=<DbBookmarks(bookmarks=[]) at remote 0x942168c>, family_bookmarks=<DbBookmarks(bookmarks=[]) at remote 0x941a28c>, surname_list=[], media_map={}, smap_index=0, family_attributes=set([]), undo_history_callback=None, note_bookmarks=<DbBookmarks(bookmarks=[]) at remote 0x94216cc>, secondary_connected=False, default=None, source_bookmarks=<DbBookmarks(bookmarks=[]) at remote 0x94210ec>, individual_attributes=set([]), individual_event_names=set([]), mediaobject_prefix='O%04d', abort_possible=True, full_name='/home/bob/.gramps/grampsdb/4b81e02c', event_role_names=set([]), repository_map={}, rid_trans={}, pmap_index=0, eve...(truncated), throwflag=0) at ../Python/ceval.c:2412
#10 0x080e2807 in PyEval_EvalCodeEx (co=0x879ecc8, globals=
    {'Errors': <module at remote 0x86371ac>, 'find_referenced_handle': <function at remote 0x87b309c>, 'find_idmap': <function at remote 0x87b302c>, 'SOURCES_TBL': 'source', '_MINVERSION': 9, 'maxint': 2147483647, 'REPOSITORY_KEY': 6, 'TXNUPD': 1, 'wraps': <function at remote 0xb7f05e9c>, 'DbWriteBase': <type at remote 0x87529e4>, 'PLACE_KEY': 5, 'FIDTRANS': 'family_id', 'PLACES_TBL': 'place', 'DBERRS': (<type at remote 0x8746814>, <type at remote 0x87476d4>, <type at remote 0x874714c>, <type at remote 0x87474fc>), 'BdbTransaction': <type at remote 0x87e7fa4>, 'write_lock_file': <function at remote 0x87b5764>, '__file__': '/usr/share/gramps/gen/db/write.pyc', 'db': <module at remote 0x8659794>, 'DBLOCKS': 25000, 'DbBsddbRead': <type at remote 0x875a6e4>, 'DBPAGE': 16384, 'PIDTRANS': 'place_id', 'DbUpgradeRequiredError': <type at remote 0x87e2ecc>, 'bisect': <module at remote 0x8659b24>, 'DBCACHE': 67108864, 'NIDTRANS': 'note_id', 'SURNAMES': 'surnames', 'BSDDBTxn': <type at remote 0x8756744>, 'Event': <type at re...(truncated), locals=0x0, args=0x8f942e0, argcount=4, kws=0x94b3d30, kwcount=1, defs=
    0x87b2438, defcount=2, closure=0x0) at ../Python/ceval.c:3000
#11 0x0816b38f in function_call (func=<function at remote 0x87b36bc>, arg=
    (<DbBsddb(rand=<Random(gauss_next=None) at remote 0x95075fc>, family_event_names=set([]), _current_signals=[], lmap_index=0, media_attributes=set([]), omap_index=0, has_changed=False, oid_trans={}, repo_bookmarks=<DbBookmarks(bookmarks=[]) at remote 0x942164c>, emap_index=0, child_ref_types=set([]), media_bookmarks=<DbBookmarks(bookmarks=[]) at remote 0x942168c>, family_bookmarks=<DbBookmarks(bookmarks=[]) at remote 0x941a28c>, surname_list=[], media_map={}, smap_index=0, family_attributes=set([]), undo_history_callback=None, note_bookmarks=<DbBookmarks(bookmarks=[]) at remote 0x94216cc>, secondary_connected=False, default=None,---Type <return> to continue, or q <return> to quit---q
Quit
(gdb)

I hope you still have a working copy? If not, use the db dump tools to obtain a new database, see
http://gramps-project.org/wiki/index.php?title=Recover_corrupted_grdb

As Gerals says, if the bug can be traced, it will be in the bsddb package, and they will ask to try with the newest version 9/10. So if you can get a working version, best forget about it if not a developer really needing this.
If you can debug, and can make a workflow to create it, we can open a bug on the bsddb bug tracker.

Benny

 

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


_______________________________________________
Gramps-users mailing list
Gramps-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gramps-users