[sword-devel] Crash in Sword trunk (svn 3696) on Windows 10

Troy A. Griffitts scribe at crosswire.org
Sat Feb 8 12:18:27 MST 2020


Hi Tobias,

I've looked at the revisions you cite below.

The first adds varargs to SWBuf and the second seems to simply fully
qualify the icu namespace in the RegEx code which is used if you compile
with ICU RegEx support.

Can you give me a bit more information.  I think you might be the first
one to try to compile SWORD with MSVS in a really really long time.  I
personally still use Borland (now Embarcadero) tools for Windows
development and I believe the other projects use some kind of GCC
cross-compile or cygwin environment to build.

I would be curious to hear which .conf file is being loaded when the
failure below happens.  I'd be happy to valgrind the code if I can
reproduce the problem here on Linux.

If you have any more info, I would love to hear.  Thank you for
reporting the issue and for your contribution of your time and talents
with us at CrossWire the past year or so.

Troy


On 2/6/20 11:14 PM, Tobias Klein wrote:
>
> Hi,
>
> the latest Sword trunk crashes on Windows 10 during initialization of
> SWMgr. I built the library using Visual Studio 2015.
>
>
>           EXCEPTION_ACCESS_VIOLATION_READ
>
> Fatal Error: EXCEPTION_ACCESS_VIOLATION_READ
>
>  *
>
>
>  *
>     VCRUNTIME140+0x000332d|memcpy| memcpy.asm:668
>  *
>     libsword+0x000ce4c|sword::SWBuf::set| swbuf.h:205
>  *
>     libsword+0x001a879|sword::SWBuf::{ctor}| swbuf.h:112
>  *
>     libsword+0x001a855|std::pair<T>::{ctor}| utility:171
>  *
>     libsword+0x001a82e|sword::multimapwithdefault<T>::operator[]| multimapwdef.h:45
>  *
>     libsword+0x008d6ff|sword::SWConfig::augment| swconfig.cpp:172
>  *
>     libsword+0x00a09f4|sword::SWMgr::loadConfigDir| swmgr.cpp:764
>  *
>     libsword+0x00a038c|sword::SWMgr::load| swmgr.cpp:856
>  *
>     libsword+0x0092829|sword::SWMgr::Load| swmgr.h:407
>  *
>     libsword+0x0092823|sword::SWMgr::SWMgr| swmgr.cpp:412
>  *
>
>     The crash happens in sword::SWBuf::set (see stacktrace above).
>
>     After performing the following reverts it does not crash anymore:
>  *
>
>     swbuf.cpp, swbuf.h => svn 3590
>   * swmodule.cpp => svn 3618
>  *
>
>   * Best regards,
>     Tobias
>
>
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20200208/648e17d0/attachment-0001.html>


More information about the sword-devel mailing list