<div class="gmail_quote">On Mon, Apr 27, 2009 at 2:39 PM, Jonathan Marsden <span dir="ltr"><<a href="mailto:jmarsden@fastmail.fm">jmarsden@fastmail.fm</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
3) SWIG issues and related segfaults (Ben)</blockquote></div><br>This came with r2313, and I'm at a loss how to deal with it...<br>Python program (this worked r2312, crashes r2313):<br>import Sword<br>Sword.VerseKey()<br>
<br>valgrind gives this (as well as others, but this is the first)<br>==10943== Invalid write of size 1<br>==10943== at 0x48A26D1: sword::VerseKey::init() (versekey.cpp:62)<br>==10943== by 0x48A7F13: sword::VerseKey::VerseKey(char const*) (versekey.cpp:103)<br>
==10943== by 0x4818B18: _wrap_new_VerseKey (Sword.cxx:7023)<br>==10943== by 0x407E65C: PyCFunction_Call (methodobject.c:108)<br>==10943== by 0x4048846: PyObject_Call (abstract.c:1861)<br>==10943== by 0x40CA8D2: PyEval_EvalFrameEx (ceval.c:3853)<br>
==10943== by 0x40CDBD1: PyEval_EvalCodeEx (ceval.c:2836)<br>==10943== by 0x406A7A9: function_call (funcobject.c:517)<br>==10943== by 0x4048846: PyObject_Call (abstract.c:1861)<br>==10943== by 0x40500D4: instancemethod_call (classobject.c:2519)<br>
==10943== by 0x4048846: PyObject_Call (abstract.c:1861)<br>==10943== by 0x40940DD: slot_tp_init (typeobject.c:4943)<br>==10943== Address 0x45B55D4 is not stack'd, malloc'd or (recently) free'd<br>==10943== <br>
<br>gdb gives a stack trace of:<br>0x00b86050 in std::_Rb_tree_increment () from /usr/lib/libstdc++.so.6<br>(gdb) bt<br>#0 0x00b86050 in std::_Rb_tree_increment () from /usr/lib/libstdc++.so.6<br>#1 0x00569706 in std::_Rb_tree_iterator<std::pair<sword::SWBuf const, sword::SWLocale*> >::operator++ (this=0xbfe04c28)<br>
at /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_tree.h:190<br>#2 0x0056798b in sword::LocaleMgr::deleteLocales (this=0x81de948)<br> at ../src/mgr/localemgr.cpp:193<br>#3 0x00567a67 in ~LocaleMgr (this=0x81de948) at ../src/mgr/localemgr.cpp:138<br>
#4 0x00568c34 in ~__staticsystemLocaleMgr (this=0x62abe0)<br> at ../src/mgr/localemgr.cpp:47<br>#5 0x005674c8 in __tcf_0 () at ../src/mgr/localemgr.cpp:48<br>#6 0x0095e9d9 in exit () from /lib/libc.so.6<br>#7 0x00948df4 in __libc_start_main () from /lib/libc.so.6<br>
#8 0x080484a1 in _start ()<br><br clear="all">God Bless,<br>Ben<br>-------------------------------------------------------------------------------------------<br>Multitudes, multitudes,<br> in the valley of decision!<br>
For the day of the LORD is near<br> in the valley of decision.<br><br>Giôên 3:14 (ESV)<br>