<html><head></head><body><div class="ydp19d65c79yahoo-style-wrap" style="font-family: lucida console, sans-serif; font-size: 16px;"><div><div dir="ltr" data-setdir="false">Thats what I suspect too but I could not understand what is the issue.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Based on the below interface (which I acquired through busctl),</div><div dir="ltr" data-setdir="false"><div><div style="font-family: Menlo, Monaco, Consolas, Courier New, Courier, monospace; font-size: 14px; white-space: pre-wrap;" dir="ltr" data-setdir="false"><pre><div><div style="font-family: Menlo, Monaco, Consolas, Courier New, Courier, monospace; font-size: 14px; white-space: pre-wrap;"><pre>root@sonic:~# busctl introspect org.SONiC.HostService.keyhandler /org/SONiC/HostService/keyhandler
NAME TYPE SIGNATURE RESULT/VALUE FLAGS
org.SONiC.HostService.keyhandler interface - - -
.key_ctl method as is -</pre></div></div></pre></div></div><br> <span>dbusxx-xml2cpp generated the proxy header with the below signature for key_ctl<br></span><div><div> ::DBus::Struct< int32_t, std::string > key_ctl(const std::vector< std::string >& data)</div><div><br></div></div><br>And, that is exactly what I am sending - a vector of strings - from HostQuery():</div><div dir="ltr" data-setdir="false"><div><div> vector<string> vals = {"pwEncrypt","eventd"};</div><div><br></div><div> syslog(LOG_CRIT, "calling key_ctl");</div><div> ret = host_client.key_ctl(vals);</div><div> syslog(LOG_CRIT, "key_ctl returned");</div><div><br></div></div></div><div dir="ltr" data-setdir="false"><br></div><div><br></div><div class="ydp19d65c79signature"><div style="font-family:sans-serif;font-size:16px;"><div style="font-family:sans-serif;font-size:16px;" dir="ltr"><span><span style="color:rgb(0, 0, 0);font-family:sans-serif;font-size:16px;">~~ Thanks, Srinadh</span></span><br></div><div style="font-family:sans-serif;font-size:16px;" dir="ltr"><br></div></div></div></div>
<div><br></div><div><br></div>
</div><div id="ydpce002f9cyahoo_quoted_2984828410" class="ydpce002f9cyahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Tuesday, September 28, 2021, 06:41:55 PM PDT, Lawrence D'Oliveiro <ldo@geek-central.gen.nz> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div dir="ltr">On Wed, 29 Sep 2021 01:39:25 +0000 (UTC), Srinadh Penugonda wrote:<br clear="none"><br clear="none">> If it crashes in the host module, I should see it in the backtrace.<br clear="none">> But the backtrace is pointing to libdbus.. <br clear="none"><br clear="none">Very likely because the C++ code is passing some bad structure to<div class="ydpce002f9cyqt7173965380" id="ydpce002f9cyqtfd36144"><br clear="none">libdbus.<br clear="none"></div></div></div>
</div>
</div></body></html>