[sword-devel] Release-critical TODO items

Ben Morgan benpmorgan at gmail.com
Sun Apr 26 23:25:26 MST 2009

On Mon, Apr 27, 2009 at 2:39 PM, Jonathan Marsden <jmarsden at fastmail.fm>wrote:

> 3) SWIG issues and related segfaults (Ben)

This came with r2313, and I'm at a loss how to deal with it...
Python program (this worked r2312, crashes r2313):
import Sword

valgrind gives this (as well as others, but this is the first)
==10943== Invalid write of size 1
==10943==    at 0x48A26D1: sword::VerseKey::init() (versekey.cpp:62)
==10943==    by 0x48A7F13: sword::VerseKey::VerseKey(char const*)
==10943==    by 0x4818B18: _wrap_new_VerseKey (Sword.cxx:7023)
==10943==    by 0x407E65C: PyCFunction_Call (methodobject.c:108)
==10943==    by 0x4048846: PyObject_Call (abstract.c:1861)
==10943==    by 0x40CA8D2: PyEval_EvalFrameEx (ceval.c:3853)
==10943==    by 0x40CDBD1: PyEval_EvalCodeEx (ceval.c:2836)
==10943==    by 0x406A7A9: function_call (funcobject.c:517)
==10943==    by 0x4048846: PyObject_Call (abstract.c:1861)
==10943==    by 0x40500D4: instancemethod_call (classobject.c:2519)
==10943==    by 0x4048846: PyObject_Call (abstract.c:1861)
==10943==    by 0x40940DD: slot_tp_init (typeobject.c:4943)
==10943==  Address 0x45B55D4 is not stack'd, malloc'd or (recently) free'd

gdb gives a stack trace of:
0x00b86050 in std::_Rb_tree_increment () from /usr/lib/libstdc++.so.6
(gdb) bt
#0  0x00b86050 in std::_Rb_tree_increment () from /usr/lib/libstdc++.so.6
#1  0x00569706 in std::_Rb_tree_iterator<std::pair<sword::SWBuf const,
sword::SWLocale*> >::operator++ (this=0xbfe04c28)
#2  0x0056798b in sword::LocaleMgr::deleteLocales (this=0x81de948)
    at ../src/mgr/localemgr.cpp:193
#3  0x00567a67 in ~LocaleMgr (this=0x81de948) at
#4  0x00568c34 in ~__staticsystemLocaleMgr (this=0x62abe0)
    at ../src/mgr/localemgr.cpp:47
#5  0x005674c8 in __tcf_0 () at ../src/mgr/localemgr.cpp:48
#6  0x0095e9d9 in exit () from /lib/libc.so.6
#7  0x00948df4 in __libc_start_main () from /lib/libc.so.6
#8  0x080484a1 in _start ()

God Bless,
Multitudes, multitudes,
   in the valley of decision!
For the day of the LORD is near
   in the valley of decision.

Giôên 3:14 (ESV)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20090427/1714205e/attachment.html>

More information about the sword-devel mailing list