<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Many thanks Tito,<br>
<br>
Now we know we deal with a pkg_free over an invalid pointer (which
does not point in the pkg mem pool).<br>
<br>
Unfortunately there are a lot of variables not visible due
optimization - could you (and I promise this is the last time to
ask this :D) to recompile everything with "mode=debug make all"
(add the "mode=debug" before make) - this will disable compiling
optimizations and all variables will be visible in GDB.<br>
<br>
After that, a new bt will be more than welcome.<br>
<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 05.07.2016 15:02, Tito Cumpen wrote:<br>
</div>
<blockquote
cite="mid:CANZPVB7L4Sh_WiYava3XBLdRZm6jX7kOicLaSYGZUdNtP+3KZw@mail.gmail.com"
type="cite">
<div dir="ltr">Bogdan,
<div><br>
</div>
<div><br>
</div>
<div>Apologies for not providing a full bt. This is a
development server with very little load.</div>
<div><br>
</div>
<div>
<p class=""><span class="">Reading symbols from
/usr/sbin/opensips...done.</span></p>
<p class=""><span class="">[New LWP 2685]</span></p>
<p class=""><span class="">[Thread debugging using
libthread_db enabled]</span></p>
[...]</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Jul 5, 2016 at 7:58 AM,
Bogdan-Andrei Iancu <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:bogdan@opensips.org"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a></a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> <tt>Hi Tito,<br>
<br>
Could you print the whole backtrace ? <br>
<br>
Thanks,<br>
</tt><span class="">
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
</span>
<div>
<div class="h5">
<div>On 05.07.2016 14:37, Tito Cumpen wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Bogdan,
<div><br>
</div>
<div>Here is the backtrace with those flags
enabled</div>
<div><br>
</div>
<div>
<p><span>gdb /usr/sbin/opensips core.2685</span></p>
<p><span>GNU gdb (GDB) Red Hat Enterprise Linux
7.6.1-80.el7</span></p>
<p><span>Copyright (C) 2013 Free Software
Foundation, Inc.</span></p>
<p><span>License GPLv3+: GNU GPL version 3 or
later <<a moz-do-not-send="true"
href="http://gnu.org/licenses/gpl.html"
target="_blank">http://gnu.org/licenses/gpl.html</a>></span></p>
<p><span>This is free software: you are free to
change and redistribute it.</span></p>
<p><span>There is NO WARRANTY, to the extent
permitted by law. Type "show copying"</span></p>
<p><span>and "show warranty" for details.</span></p>
<p><span>This GDB was configured as
"x86_64-redhat-linux-gnu".</span></p>
<p><span>For bug reporting instructions, please
see:</span></p>
<p><span><<a moz-do-not-send="true"
href="http://www.gnu.org/software/gdb/bugs/"
target="_blank">http://www.gnu.org/software/gdb/bugs/</a>>...</span></p>
<p><span>Reading symbols from
/usr/sbin/opensips...done.</span></p>
<p><span>[New LWP 2685]</span></p>
<p><span>[Thread debugging using libthread_db
enabled]</span></p>
<p><span>Using host libthread_db library
"/lib64/libthread_db.so.1".</span></p>
<p><span>Core was generated by `/sbin/opensips
-P /var/run/opensips.pid -u opensips -g
opensips -M 1024 -f /etc'.</span></p>
<p><span>Program terminated with signal 6,
Aborted.</span></p>
<p><span>#0 0x00007fc95ab1d5f7 in __GI_raise
(sig=sig@entry=6) at
../nptl/sysdeps/unix/sysv/linux/raise.c:56</span></p>
<p><span>56<span> </span> return
INLINE_SYSCALL (tgkill, 3, pid, selftid,
sig);</span></p>
<p><span>(gdb) </span></p>
<p><span><br>
</span></p>
<p>Let me know if you need anything else</p>
<p><br>
</p>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Jul 4, 2016 at
5:54 AM, Bogdan-Andrei Iancu <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:bogdan@opensips.org"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a></a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0
0 0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> <tt>Thank
you Tito,<br>
<br>
It looks like a crash in the memory
manager, while trying to allocate a new
structure. Do debug such problems there is
no other way than enabling debugging for
the memory manager (QM_MALLOC + DBG_MALLOC
flags) - is this a production system with
considerable load on it ?<br>
<br>
Regards,<br>
</tt><span>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
</span>
<div>
<div>
<div>On 01.07.2016 18:44, Tito Cumpen
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Bogdan,
<div><br>
</div>
<div><br>
Correction I was using :</div>
<div><br>
</div>
<div>
<p><span>version: opensips 2.2.0
(x86_64/linux)</span></p>
<p><span>flags: STATS: On,
DISABLE_NAGLE, USE_MCAST,
SHM_MMAP, PKG_MALLOC,
F_MALLOC,
FAST_LOCK-ADAPTIVE_WAIT</span></p>
<p><span>ADAPTIVE_WAIT_LOOPS=1024,
MAX_RECV_BUFFER_SIZE 262144,
MAX_LISTEN 16, MAX_URI_SIZE
1024, BUF_SIZE 65535</span></p>
<p><span>poll method support:
poll, epoll_lt, epoll_et,
sigio_rt, select.</span></p>
<p><span>git revision: d835721</span></p>
<p><span>main.c compiled on
15:24:26 Jun 28 2016 with gcc
4.8.5</span></p>
<p><span><br>
</span></p>
<p><span><br>
</span></p>
<p><span><br>
</span></p>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Jul
1, 2016 at 9:23 AM, Tito Cumpen <span
dir="ltr"><<a
moz-do-not-send="true"
href="mailto:tito@xsvoce.com"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:tito@xsvoce.com">tito@xsvoce.com</a></a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin:0 0 0
.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div dir="ltr">Bogdan,
<div><br>
</div>
<div>Here is the backtrace:</div>
<div><br>
</div>
<div><br>
</div>
<div>
<p><span>Reading symbols
from
/usr/sbin/opensips...done.</span></p>
<p><span>[New LWP 2648]</span></p>
[...]
<p><span><br>
</span></p>
<p><span><br>
</span></p>
<p><span>currently using </span>version:
opensips 2.3.0-dev
(x86_64/linux)</p>
<p><span>flags: STATS: On,
DISABLE_NAGLE,
USE_MCAST, SHM_MMAP,
PKG_MALLOC, QM_MALLOC,
DBG_MALLOC,
FAST_LOCK-ADAPTIVE_WAIT</span></p>
<p><span>ADAPTIVE_WAIT_LOOPS=1024,
MAX_RECV_BUFFER_SIZE
262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024,
BUF_SIZE 65535</span></p>
<p><span>poll method
support: poll, epoll_lt,
epoll_et, sigio_rt,
select.</span></p>
<p><span>git revision:
92434ef</span></p>
<p><span>main.c compiled on
15:05:06 Jun 28 2016
with gcc 4.8.5</span></p>
</div>
</div>
<div>
<div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On
Tue, Jun 28, 2016 at
8:26 AM, Bogdan-Andrei
Iancu <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:bogdan@opensips.org" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a></a>></span>
wrote:<br>
<blockquote
class="gmail_quote"
style="margin:0 0 0
.8ex;border-left:1px
#ccc
solid;padding-left:1ex">
<div text="#000000"
bgcolor="#FFFFFF"> <tt>Hi
Tito,<br>
<br>
If opensips
crashes, were you
able to extract a
backtrace from the
core file(s) ?<br>
<br>
Thanks and
regards,<br>
</tt>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
<div>
<div>
<div>On
27.06.2016
21:20, Tito
Cumpen wrote:<br>
</div>
</div>
</div>
<blockquote
type="cite">
<div>
<div>
<div dir="ltr">Group,
<div><br>
</div>
<div><br>
</div>
<div>I am
experiencing
strange
behavior when
configuring
sip tls on
port 443. At
time opensips
crashes or
stops
accepting new
connections.
Here are the
tcp configs I
am using:</div>
<div><br>
</div>
<p><span>#disable_tcp=no</span></p>
<p><span>tcp_connection_lifetime=3600</span></p>
<p><span>tcp_connect_timeout=3</span></p>
<p><span>tcp_keepidle
= 30</span></p>
<p><span>tcp_keepinterval
= 5</span></p>
<p><span>tcp_keepalive
= 1</span></p>
<p><span>tcp_keepcount
= 5</span></p>
<p>tcp_max_msg_time
= 8<br>
</p>
<div>tcp_children=10</div>
<div><br>
</div>
<div><br>
</div>
<div>Any idea
what would
case this? I
am assuming
there are
probes out in
the internet
that
eventually
make opensips
crash?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Tito </div>
</div>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>