[sword-devel] 1.5.3 progress

Joachim Ansorg sword-devel@crosswire.org
Thu, 28 Feb 2002 17:13:16 +0100


--------------Boundary-00=_4Q391OBBG12CVE3KYHPI
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Troy,
=09thank you for posting the current status.

> THANK YOU TO EVERYONE SUBMITTING PATCHES!  It's great to have so much
> help!

Sorry that I don't have patches for this, but I think I've found an examp=
le=20
program why BibleTime crashes. I noticed that BibleTime crashed after I=20
searched multiple times in the EnumaElish module.
I attached a test program, which leads to crashed every time.

If I run "gbs_test EnumaElish" the output is:
=09Search 1 completed without using ListKey.
=09Search 2 completed without using ListKey.
=09Search 3 completed without using ListKey.
=09Search 4 completed without using ListKey.
=09Segmentation fault
This happens every time.

If I comment out the first search loop and enable the second the output o=
f=20
"gbs_test EnumaElish" is:
=09Search 1 completed with 531 items
=09Segmentation fault.

If I run "gbs_test BBE" or "gbs_test Eastons" it works just fine. So I th=
ink=20
it's a problem with the GBS classes, but I don't know where I can find th=
e=20
bug. I hope the example program helps you to find the problems.

Thank you for all your help, Troy!
Joachim
--------------Boundary-00=_4Q391OBBG12CVE3KYHPI
Content-Type: text/x-c++;
  charset="iso-8859-1";
  name="gbs_test.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="gbs_test.cpp"

I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzd21nci5oPgojaW5jbHVkZSA8bGlzdGtleS5o
PgoKaW50IG1haW4oaW50IGFyZ2MsIGNoYXIgKiphcmd2KQp7CiAgICAgICAgU1dNZ3IgbWdyOwog
ICAgICAgIFNXTW9kdWxlKiB0YXJnZXQgPSAoYXJnYyA9PSAyKSA/IG1nci5Nb2R1bGVzW2FyZ3Zb
MV1dIDogbWdyLk1vZHVsZXNbIkJCRSJdOwoJCglpZiAoIXRhcmdldCkgewoJCWNlcnIgPDwgIk1v
ZHVsZSBub3QgdmFsaWQhIEV4aXRpbmcuIiA8PCBlbmRsOwoJCXJldHVybiAtMTsKCX0KCglmb3Ig
KGludCBpPTE7IGkgPD0gMTA7IGkrKykgewoJCXRhcmdldC0+U2VhcmNoKCJoZSIpOwoJCWNvdXQg
PDwgIlNlYXJjaCAiIDw8IGkgPDwgIiBjb21wbGV0ZWQgd2l0aG91dCB1c2luZyBMaXN0S2V5LiIg
PDwgZW5kbDsKCX0KCi8vIHNhbWUgZXhhbXBsZSwgYnV0IHVzaW5nIHRoZSByZXR1cm5lZCBMaXN0
S2V5IG9iamVjdAovLwlmb3IgKGludCBpPTE7IGkgPD0gMTA7IGkrKykgewovLwkgICAgICAgIExp
c3RLZXkgcmVzdWx0ID0gdGFyZ2V0LT5TZWFyY2goImhlIik7Ci8vCQljb3V0IDw8ICJTZWFyY2gg
IiA8PCBpIDw8ICIgY29tcGxldGVkIHdpdGggIiA8PCByZXN1bHQuQ291bnQoKSA8PCAiIGl0ZW1z
IiA8PCBlbmRsOwovLwl9CglyZXR1cm4gMDsKfQog

--------------Boundary-00=_4Q391OBBG12CVE3KYHPI--