[sword-devel] LXXM module crashes Gnomesword

Karl Kleinpaste karl at kleinpaste.org
Mon Jun 16 05:34:49 MST 2008


Indeed, any of the new VerseKey modules cause a crash in GnomeSword.
Per-chapter display begins by accessing the last verse of the previous
chapter: Verse selected in SWModule *mod using (*mod)--, text then
obtained from *mod.

#0  0x0811dc89 in sword::SWBuf::set (this=0xb900800, newVal=@0xbfd1fa60) at ../include/swbuf.h:176
#1  0x081af051 in sword::RawGenBook::getRawEntryBuf (this=0x9c18638) at ../src/modules/genbook/rawgenbook/rawgenbook.cpp:106
#2  0x081c129c in sword::SWModule::RenderText (this=0x9c18638, buf=0x0, len=-1, render=true) at ../src/modules/swmodule.cpp:781
#3  0x080f8a9a in sword::SWModule::operator char const* (this=0x9c18638) at ../include/swmodule.h:668
#4  0x080f7196 in GTKChapDisp::getVerseBefore (this=0xa884a10, imodule=@0xa61c218) at display.cc:868
#5  0x080f5e9b in GTKChapDisp::Display (this=0xa884a10, imodule=@0xa61c218) at display.cc:1348
#6  0x081be553 in sword::SWModule::Display (this=0xa61c218) at ../src/modules/swmodule.cpp:287
#7  0x081187f0 in main_display_bible (mod_name=0xb980870 "KJVgb", key=0xb9c0c58 "1Cor 8:3") at sword.cc:1172

If it's a plain bug, that's life, so here's a failure case to debug.
If GS' usage is becoming invalid in the brave new world of VerseKey
modules, I'm sure we'd all like to be informed of the API changes
that will be needed.



More information about the sword-devel mailing list