[sword-devel] breakage in verse management at -r2785?
greg.hellings at gmail.com
Mon Mar 18 07:41:23 MST 2013
It should also be noted that this update to SWORD causes a segfault in the
following code in Xiphos https://gist.github.com/anonymous/5187582
Specifically the line key->setAutoNormalize(oldAutoNorm); on line 38 of
that Gist generates a SegFault with the following backtrace.
#0 0x00007ffff5278ef0 in std::vector<int, std::allocator<int> >::size
#1 0x00007ffff527724c in sword::VersificationMgr::Book::getVerseMax
(this=0xa60028, chapter=17424) at
0x00007ffff525aebb in sword::VerseKey::getVerseMax (this=0x1249a60) at
0x00007ffff525b65b in sword::VerseKey::normalize (this=0x1249a60,
0x00007ffff525bc85 in sword::VerseKey::setAutoNormalize (this=0x1249a60,
0x000000000049e118 in GTKChapDisp::getVerseBefore (this=0xefc930,
imodule=...) at ../src/main/display.cc:1138
This segfault only seems to happen when I enter Genesis 1 in the navigation
panel and not at any other time. Those with more gdb savvy than I can maybe
figure out more of what is going on.
On Mon, Mar 11, 2013 at 8:57 PM, Karl Kleinpaste <karl at kleinpaste.org>wrote:
> I see that your new showchapter.cpp works. The only difference in how
> that works versus Xiphos code is you changed the VerseKey init slightly,
> so I made that change:
> VerseKey *key = (VerseKey *)imodule.getKey();
> And yet Xiphos still fails to construct the chapter. The loop never
> executes once. I don't know what to make of it. I will have to look at
> it some more.
> sword-devel mailing list: sword-devel at crosswire.org
> Instructions to unsubscribe/change your settings at above page
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the sword-devel