<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Troy,</p>
<p>When trying to look up the key for the <i>Nave</i> dictionary I
got a crash. I am using a recent SWORD revision.<br>
</p>
<p>Program received signal SIGSEGV, Segmentation fault.<br>
0x00007fc7c47dab82 in ?? () from /lib/x86_64-linux-gnu/libc.so.6<br>
(gdb) bt<br>
#0 0x00007fc7c47dab82 in ?? () from
/lib/x86_64-linux-gnu/libc.so.6<br>
#1 0x00007fc7c05c9f3c in sword::SWLD::hasEntry(sword::SWKey
const*) const () from
/home/tobi/dev/ezra_project/node-sword-interface-git/build/Release/node_sword_interface.node<br>
#2 0x00007fc7c0526188 in
NodeSwordInterface::getRawModuleEntry(Napi::CallbackInfo
const&) () from
/home/tobi/dev/ezra_project/node-sword-interface-git/build/Release/node_sword_interface.node</p>
<p>The swordModule is <i>Nave</i> and I set an arbitrary key (like
'Jacob').<br>
Then this code let to a seg fault.</p>
<div style="color: #d4d4d4;background-color: #1e1e1e;font-family: 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback';font-weight: normal;font-size: 14px;line-height: 19px;white-space: pre;"><div><span style="color: #d4d4d4;"> </span><span style="color: #9cdcfe;">swordModule</span><span style="color: #d4d4d4;">-></span><span style="color: #dcdcaa;">setKey</span><span style="color: #d4d4d4;">(</span><span style="color: #4ec9b0;">string</span><span style="color: #d4d4d4;">(</span><span style="color: #9cdcfe;">key</span><span style="color: #d4d4d4;">).</span><span style="color: #dcdcaa;">c_str</span><span style="color: #d4d4d4;">());</span></div><div><span style="color: #d4d4d4;"> </span><span style="color: #569cd6;">bool</span><span style="color: #d4d4d4;"> </span><span style="color: #9cdcfe;">entryExisting</span><span style="color: #d4d4d4;"> = </span><span style="color: #9cdcfe;">swordModule</span><span style="color: #d4d4d4;">-></span><span style="color: #dcdcaa;">hasEntry</span><span style="color: #d4d4d4;">(</span><span style="color: #9cdcfe;">swordModule</span><span style="color: #d4d4d4;">-></span><span style="color: #dcdcaa;">getKey</span><span style="color: #d4d4d4;">())</span></div></div>
<p>Aside from that ... when I did not use the <i>hasEntry</i>
function, it did not crash anymore, but I was still not able to
successfully look up content based on the example above (Using the
key 'Jacob').<br>
When setting the key for <i>Nave</i> to <i>Jacob</i> I simply
got an empty string when invoking <i>getRawEntry</i>.<br>
</p>
<p>Thanks for your support!<br>
</p>
<p>Best regards,<br>
Tobias<br>
</p>
</body>
</html>