Bogdan,<div><br></div><div>One more detail that may help - I added another OpenSIPS proxy in parallel with this one (&amp; load balancing between the two) and now both OpenSIPS proxies crash at the same time (within a couple seconds).</div>
<div><br></div><div>I can provide more core dumps if it will help.</div><div><br></div><div>Thanks.</div><div><br><br><div class="gmail_quote">On Tue, Nov 2, 2010 at 9:02 AM, thrillerbee <span dir="ltr">&lt;<a href="mailto:thrillerbee@gmail.com">thrillerbee@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Bogdan,<div><br></div><div>Below is the info requested:<br><div><span style="font-family:&#39;courier new&#39;, monospace"><div>
(gdb) frame 0</div><div>#0  0x00007f51999f221f in flat_db_insert (h=0x7f0978, k=0x7f5198732a60, v=0x7f5198732d20, n=19) at flatstore.c:165</div>
<div>165             f = CON_FILE(h);</div></span></div><div><span style="font-family:&#39;courier new&#39;, monospace">(gdb) print h</span></div><div><div><font face="&#39;courier new&#39;, monospace">$1 = (const db_con_t *) 0x7f0978</font></div>

<div><font face="&#39;courier new&#39;, monospace">(gdb) print h-&gt;tail</font></div><div><font face="&#39;courier new&#39;, monospace">$2 = 0</font></div><div><font face="&#39;courier new&#39;, monospace">(gdb) print ((struct flat_con*)(h-&gt;tail))-&gt;file</font></div>

<div><font face="&#39;courier new&#39;, monospace">Cannot access memory at address 0x10</font></div></div><div><br></div><div>Before each of the crashes yesterday, I saw these in the logs:</div><div>
<div><font face="&#39;courier new&#39;, monospace">Nov  1 14:17:40 core1 kernel: [4287745.452111] opensips[22141]: segfault at 10 ip 7f51999f221f sp 7fffbcd8d510 error 4 in db_flatstore.so[7f51999ef000+5000]</font></div>

<div><font face="&#39;courier new&#39;, monospace">Nov  1 23:52:58 core1 kernel: [4348562.990735] opensips[26978]: segfault at 10 ip 7f726cb9b21f sp 7ffff083f6f0 error 4 in db_flatstore.so[7f726cb98000+5000]</font></div>

</div><div><font face="&#39;courier new&#39;, monospace"><br></font></div><div><font face="arial, helvetica, sans-serif">Are there any compiler flags I should use for debugging?</font></div>
<div><font face="arial, helvetica, sans-serif"><div><font face="&#39;courier new&#39;, monospace">(gdb) info locals</font></div><div><font face="&#39;courier new&#39;, monospace">f = &lt;value optimized out&gt;</font></div>

<div><font face="&#39;courier new&#39;, monospace">i = &lt;value optimized out&gt;</font></div><div><font face="&#39;courier new&#39;, monospace">l = &lt;value optimized out&gt;</font></div>
<div><font face="&#39;courier new&#39;, monospace">p = &lt;value optimized out&gt;</font></div><div><font face="&#39;courier new&#39;, monospace">__FUNCTION__ = &quot;flat_db_insert&quot;</font></div>
</font></div><div><br></div><div>Thanks again.</div><div><div></div><div class="h5"><div><br></div><div><br><div class="gmail_quote">On Tue, Nov 2, 2010 at 4:18 AM, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
in frame 0, could you print:<br>
    h<br>
    h-&gt;tail<br>
    ((struct flat_con*)(h-&gt;tail))-&gt;file<br>
<br>
Also, before crash, do you see in the logs any errors from the<br>
db_flatstore module ?<br>
<br>
Regards,<br>
Bogdan<br>
<div><br>
thrillerbee wrote:<br>
&gt; Bogdan,<br>
&gt;<br>
&gt; It crashed again tonight.  I&#39;ve attached the backtrace.<br>
&gt;<br>
&gt; Thanks.<br>
&gt;<br>
&gt; On Mon, Nov 1, 2010 at 9:32 AM, thrillerbee &lt;<a href="mailto:thrillerbee@gmail.com" target="_blank">thrillerbee@gmail.com</a><br>
</div><div>&gt; &lt;mailto:<a href="mailto:thrillerbee@gmail.com" target="_blank">thrillerbee@gmail.com</a>&gt;&gt; wrote:<br>
&gt;<br>
</div><div>&gt;     Bogdan,<br>
&gt;<br>
&gt;     Yes,  I&#39;ve attached 2 to my response - one was a crash from 10/29.<br>
&gt;      The other occurred a few minutes ago.<br>
&gt;<br>
&gt;     Thanks.<br>
&gt;<br>
&gt;     On Fri, Oct 22, 2010 at 11:41 AM, Bogdan-Andrei Iancu<br>
</div><div>&gt;     &lt;<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a> &lt;mailto:<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;         Any chance with the backtraces ?<br>
&gt;<br>
&gt;         Regards,<br>
&gt;         Bogdan<br>
&gt;<br>
&gt;         Anca Vamanu wrote:<br>
&gt;         &gt; Hi,<br>
&gt;         &gt;<br>
&gt;         &gt; You need to inspect them with gdb, run: gdb<br>
&gt;         &gt; path_to_opensips_executable path_to_corefile, and then run<br>
&gt;         &#39;bt full&#39;<br>
&gt;         &gt; and send the output.<br>
&gt;         &gt;<br>
&gt;         &gt; Regards,<br>
&gt;         &gt; --<br>
&gt;         &gt; Anca Vamanu<br>
</div>&gt;         &gt; <a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a> &lt;<a href="http://www.voice-system.ro" target="_blank">http://www.voice-system.ro</a>&gt;<br>
<div>&gt;         &gt;<br>
&gt;         &gt;<br>
&gt;         &gt; On 10/14/2010 10:12 PM, thrillerbee wrote:<br>
&gt;         &gt;&gt; I have this info from dmesg:<br>
&gt;         &gt;&gt;<br>
&gt;         &gt;&gt; [1985853.285221] opensips[30865]: segfault at 10 ip<br>
&gt;         7f43899ce21f sp<br>
&gt;         &gt;&gt; 7fff8de1cf40 error 4 in db_flatstore.so[7f43899cb000+5000]<br>
&gt;         &gt;&gt; [1985856.379671] opensips[30858]: segfault at 10 ip<br>
&gt;         7f43899ce21f sp<br>
&gt;         &gt;&gt; 7fff8de1cf40 error 4 in db_flatstore.so[7f43899cb000+5000]<br>
&gt;         &gt;&gt; [1985896.961279] opensips[30868]: segfault at 10 ip<br>
&gt;         7f43899ce21f sp<br>
&gt;         &gt;&gt; 7fff8de1cf40 error 4 in db_flatstore.so[7f43899cb000+5000]<br>
&gt;         &gt;&gt;<br>
&gt;         &gt;&gt; [2000131.245512] opensips[17672]: segfault at 10 ip<br>
&gt;         7fd0f21fb21f sp<br>
&gt;         &gt;&gt; 7fff3a3b4f00 error 4 in db_flatstore.so[7fd0f21f8000+5000]<br>
&gt;         &gt;&gt; [2000161.735962] opensips[17668]: segfault at 10 ip<br>
&gt;         7fd0f21fb21f sp<br>
&gt;         &gt;&gt; 7fff3a3b4e40 error 4 in db_flatstore.so[7fd0f21f8000+5000]<br>
&gt;         &gt;&gt; [2000167.299402] opensips[17670]: segfault at 10 ip<br>
&gt;         7fd0f21fb21f sp<br>
&gt;         &gt;&gt; 7fff3a3b4f00 error 4 in db_flatstore.so[7fd0f21f8000+5000]<br>
&gt;         &gt;&gt;<br>
&gt;         &gt;&gt; On Thu, Oct 14, 2010 at 1:57 PM, thrillerbee<br>
&gt;         &lt;<a href="mailto:thrillerbee@gmail.com" target="_blank">thrillerbee@gmail.com</a> &lt;mailto:<a href="mailto:thrillerbee@gmail.com" target="_blank">thrillerbee@gmail.com</a>&gt;<br>
</div>&gt;         &gt;&gt; &lt;mailto:<a href="mailto:thrillerbee@gmail.com" target="_blank">thrillerbee@gmail.com</a><br>
<div>&gt;         &lt;mailto:<a href="mailto:thrillerbee@gmail.com" target="_blank">thrillerbee@gmail.com</a>&gt;&gt;&gt; wrote:<br>
&gt;         &gt;&gt;<br>
&gt;         &gt;&gt;     When OpenSIPS crashes, three corefiles are generated<br>
&gt;         that are<br>
&gt;         &gt;&gt;     2.1GB in size.  How do I use these files to understand<br>
&gt;         what&#39;s<br>
&gt;         &gt;&gt;     causing the crash?<br>
&gt;         &gt;&gt;<br>
&gt;         &gt;&gt;     Thanks.<br>
&gt;         &gt;&gt;<br>
&gt;         &gt;&gt;<br>
&gt;         &gt;<br>
&gt;         ------------------------------------------------------------------------<br>
&gt;         &gt;<br>
&gt;         &gt; _______________________________________________<br>
&gt;         &gt; Users mailing list<br>
</div>&gt;         &gt; <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a> &lt;mailto:<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>&gt;<br>
<div>&gt;         &gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;         &gt;<br>
&gt;<br>
&gt;<br>
&gt;         --<br>
&gt;         Bogdan-Andrei Iancu<br>
&gt;         OpenSIPS Bootcamp<br>
&gt;         15 - 19 November 2010, Edison, New Jersey, USA<br>
</div>&gt;         <a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a> &lt;<a href="http://www.voice-system.ro" target="_blank">http://www.voice-system.ro</a>&gt;<br>
&gt;<br>
&gt;<br>
&gt;         _______________________________________________<br>
&gt;         Users mailing list<br>
&gt;         <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a> &lt;mailto:<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>&gt;<br>
<div><div></div><div>&gt;         <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
--<br>
Bogdan-Andrei Iancu<br>
OpenSIPS Bootcamp<br>
15 - 19 November 2010, Edison, New Jersey, USA<br>
<a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div>