<div dir="ltr">Greetings,<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-family:arial,sans-serif;font-size:13px">Could you send me more coredumps privately with fuly updated ubuntu 14.04?<br>


</span><span style="font-family:arial,sans-serif;font-size:13px">Because it really strange that sssd crashed in syscal fdatasync.</span></blockquote><div>Lukas, not a problem. Stand by for an email with a 7zip archive of a core dump and back trace. The debugging symbols for lib{tdb,ldb}1 were installed for this.</div>


<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-family:arial,sans-serif;font-size:13px">I have another idea which could help us to to find a problem.<br>


</span><span style="font-family:arial,sans-serif;font-size:13px">We can try to run sssd_be with valgrind.</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">1) we need to find out arguments for process sssd_be<br>


</span><span style="font-family:arial,sans-serif;font-size:13px">sh-4.2$ pgrep -af sssd_be<br></span><span style="font-family:arial,sans-serif;font-size:13px">1191 /usr/libexec/sssd/sssd_be --domain </span><a href="http://idm.example.com/" style="font-family:arial,sans-serif;font-size:13px" target="_blank">idm.example.com</a><span style="font-family:arial,sans-serif;font-size:13px"> --debug-to-files<br>


</span><span style="font-family:arial,sans-serif;font-size:13px">     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</span><span style="font-family:arial,sans-serif;font-size:13px">^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</span><span style="font-family:arial,sans-serif;font-size:13px">^^^^^^^<br>


</span><span style="font-family:arial,sans-serif;font-size:13px">     this output will be used in sssd.conf</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">2) add new option to domain section in sssd.conf<br>


</span><span style="font-family:arial,sans-serif;font-size:13px">command = valgrind -v --show-reachable=yes --log-file=/var/log/sssd/</span><span style="font-family:arial,sans-serif;font-size:13px">valgrind_idm.example.com.log /usr/libexec/sssd/sssd_be --domain </span><a href="http://idm.example.com/" style="font-family:arial,sans-serif;font-size:13px" target="_blank">idm.example.com</a><span style="font-family:arial,sans-serif;font-size:13px"> --debug-to-files</span><br style="font-family:arial,sans-serif;font-size:13px">


<span style="font-family:arial,sans-serif;font-size:13px">    # do not forget to replace output from previous step.</span><br style="font-family:arial,sans-serif;font-size:13px"><br style="font-family:arial,sans-serif;font-size:13px">


<span style="font-family:arial,sans-serif;font-size:13px">3) It would be good to install debug symbols for libraries libtdb1 and libldb1</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">4) reproduce problem<br>


</span><span style="font-family:arial,sans-serif;font-size:13px">    some interesting output can be in log file from valgrind.</span></blockquote><div> I did this with interesting(?) results. The sssd_be process never actually crashed but there is some erroneous output in the valgrind log. Removing the special command option results in a crash as expected. I&#39;ve sanitized and attached the log to this email. Let me know if that reveals anything.</div>

</div><div class="gmail_extra"><br clear="all"><div><div><br></div>-Chris</div>
<br><br><div class="gmail_quote">On Tue, Aug 12, 2014 at 9:29 AM, Lukas Slebodnik <span dir="ltr">&lt;<a href="mailto:lslebodn@redhat.com" target="_blank">lslebodn@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="">On (08/08/14 14:48), Chris Hartman wrote:<br>
</div><div class="">&gt;Hi guys,<br>
&gt;<br>
&gt;If it is a easy to reproduce could you try to mount tmpfs to the directory<br>
&gt;&gt; /var/lib/sss/db/. It can be filesystem issue.<br>
&gt;<br>
&gt;Mounting with a tmpfs has no effect on the crash.<br>
&gt;<br>
&gt;Do you know if Ubuntu uses the latest tdb and ldb versions?<br>
&gt;<br>
&gt;libtdb1 version in Ubuntu 14.04: 1.2.12-1<br>
&gt;libldb1 version in Ubuntu 14.04: 1.1.16-1<br>
&gt;<br>
&gt;According to <a href="http://www.samba.org/ftp/tdb/" target="_blank">http://www.samba.org/ftp/tdb/</a> the latest tbd version is 1.3.0<br>
&gt;and <a href="http://www.samba.org/ftp/ldb/" target="_blank">http://www.samba.org/ftp/ldb/</a> says the latest ldb version is 1.1.17<br>
&gt;<br>
&gt;For full disclosure, I already told this to Jakub in case it matters:<br>
&gt;<br>
&gt;I ran into a little trouble because the sssd_be was the binary that was<br>
&gt;&gt; actually crashing, but it was spawned automatically by the root sssd<br>
&gt;&gt; process. In order to generate the coredump and backtrace, I came up with<br>
&gt;&gt; this inelegant solution:<br>
&gt;&gt;<br>
&gt;&gt; service sssd start; sleep 3; gdb -p $(ps ax|grep sssd_be|grep -v grep|cut<br>
&gt;&gt; -f1 -d&quot; &quot;) -ex generate-core-file<br>
&gt;&gt;<br>
&gt;<br>
&gt;Hope this helps.<br>
&gt;<br>
</div>I have another idea which could help us to to find a problem.<br>
We can try to run sssd_be with valgrind.<br>
<br>
1) we need to find out arguments for process sssd_be<br>
sh-4.2$ pgrep -af sssd_be<br>
1191 /usr/libexec/sssd/sssd_be --domain <a href="http://idm.example.com" target="_blank">idm.example.com</a> --debug-to-files<br>
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
     this output will be used in sssd.conf<br>
<br>
2) add new option to domain section in sssd.conf<br>
command = valgrind -v --show-reachable=yes --log-file=/var/log/sssd/valgrind_idm.example.com.log /usr/libexec/sssd/sssd_be --domain <a href="http://idm.example.com" target="_blank">idm.example.com</a> --debug-to-files<br>


<br>
    # do not forget to replace output from previous step.<br>
<br>
<br>
3) It would be good to install debug symbols for libraries libtdb1 and libldb1<br>
<br>
4) reproduce problem<br>
    some interesting output can be in log file from valgrind.<br>
<span class="HOEnZb"><font color="#888888"><br>
LS<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
sssd-users mailing list<br>
<a href="mailto:sssd-users@lists.fedorahosted.org">sssd-users@lists.fedorahosted.org</a><br>
<a href="https://lists.fedorahosted.org/mailman/listinfo/sssd-users" target="_blank">https://lists.fedorahosted.org/mailman/listinfo/sssd-users</a><br>
</div></div></blockquote></div><br></div>