<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Aug 8, 2016, at 4:16 PM, Burton, Ross &lt;<a href="mailto:ross.burton@intel.com" class="">ross.burton@intel.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On 8 August 2016 at 16:59, Richard Purdie <span dir="ltr" class="">&lt;<a href="mailto:richard.purdie@linuxfoundation.org" target="_blank" class="">richard.purdie@linuxfoundation.org</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":37i" class="a3s aXjCH m1566ae22eb3a0c11">FWIW, I think the connmand segfault on mips and powerpc is hinted at<br class="">
with this bug:<br class="">
<br class="">
<a href="https://bugs.launchpad.net/ubuntu/+source/lua5.3/+bug/1570055" rel="noreferrer" target="_blank" class="">https://bugs.launchpad.net/<wbr class="">ubuntu/+source/lua5.3/+bug/<wbr class="">1570055</a><br class="">
<br class="">
connmand is a binary linked with a linker version-script. If I build<br class="">
connmand without that option, it doesn't segfault, at least on mips.<br class="">
<br class="">
The binutils manuals say you shouldn't build binaries with version<br class="">
scripts:<br class="">
<br class="">
<a href="http://ftp.gnu.org/old-gnu/Manuals/ld-2.9.1/html_node/ld_25.html" rel="noreferrer" target="_blank" class="">http://ftp.gnu.org/old-gnu/<wbr class="">Manuals/ld-2.9.1/html_node/ld_<wbr class="">25.html</a><br class="">
<br class="">
Its suspected connman might do this to limit the function exposure to<br class="">
its plugins.<br class="">
<br class="">
Now sure exactly what needs to happen here without more research but it<br class="">
certainly hits at where the problem is. I suspect its the same issue on<br class="">
ppc.</div></blockquote></div><br class="">I've verified that with binutils 2.26 on x86-64, a minimal test case for an executable using a version script to limit exported symbols to dlopen()d modules does in fact work.&nbsp; A toolchain is building now to see what happens in different environments.</div></div></div></blockquote><div><br class=""></div><div>I could also see it on ppc. backtrace, shows the segfault is in exit path and happens in libc</div><div>at this point, I think the problem is how libc is compiled with binutils 2.27, connman itself</div><div>is ok.&nbsp;</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_extra"><br class=""></div><div class="gmail_extra">Ross</div></div>
</div></blockquote></div><br class=""></body></html>