<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.emailquote, li.emailquote, div.emailquote
        {mso-style-name:emailquote;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:1.0pt;
        border:none;
        padding:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Although I have not sparked any interest in this so far, I was able to get more information with DEBUG turned on.<o:p></o:p></p>
<p class="MsoNormal">This looks like it is an issue connecting to mysql, the mysql logs are turned on with no additional information shown pertaining to this.  The query log shows normal dispatcher updates right up to the crash<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Oct  1 20:53:18 [7833] DBG:core:do_workers_auto_scaling: group 1 (with 5 procs) has average load of 100<o:p></o:p></p>
<p class="MsoNormal">Oct  1 20:53:18 [7833] NOTICE:core:do_workers_auto_scaling: score 5/5 -> forking new proc in group 1 (with 5 procs)<o:p></o:p></p>
<p class="MsoNormal">Oct  1 20:53:18 [7833] DBG:core:internal_fork: forking new process "UDP receiver" on slot 13<o:p></o:p></p>
<p class="MsoNormal">Oct  1 20:53:18 [8083] DBG:core:io_watch_add: [UDP_worker] io_watch_add op (5 on 71) (0xa5b9e0, 5, 1, (nil),1), fd_no=0/1024<o:p></o:p></p>
<p class="MsoNormal">Oct  1 20:53:18 [8083] DBG:core:io_watch_add: [UDP_worker] io_watch_add op (38 on 71) (0xa5b9e0, 38, 4, (nil),1), fd_no=1/1024<o:p></o:p></p>
<p class="MsoNormal">Oct  1 20:53:18 [8083] DBG:core:io_watch_add: [UDP_worker] io_watch_add op (7 on 71) (0xa5b9e0, 7, 4, (nil),1), fd_no=2/1024<o:p></o:p></p>
<p class="MsoNormal">Oct  1 20:53:18 [8083] DBG:core:io_watch_add: [UDP_worker] io_watch_add op (68 on 71) (0xa5b9e0, 68, 17, 0x7f1d8c848f78,1), fd_no=3/1024<o:p></o:p></p>
<p class="MsoNormal">Oct  1 20:53:18 [8083] DBG:core:init_mod_child: type=CHILD, rank=10000, module=event_jsonrpc<o:p></o:p></p>
<p class="MsoNormal">Oct  1 20:53:18 [8083] DBG:core:init_mod_child: type=CHILD, rank=10000, module=tm<o:p></o:p></p>
<p class="MsoNormal">Oct  1 20:53:18 [8083] DBG:tm:child_init_callid: callid: '089b59c7452bb9fd-8083@xxx.xxx.xxx.xxx’<o:p></o:p></p>
<p class="MsoNormal">Oct  1 20:53:18 [8083] DBG:core:init_mod_child: type=CHILD, rank=10000, module=domain<o:p></o:p></p>
<p class="MsoNormal">Oct  1 20:53:18 [8083] DBG:core:init_mod_child: type=CHILD, rank=10000, module=dispatcher<o:p></o:p></p>
<p class="MsoNormal">Oct  1 20:53:18 [8083] CRITICAL:dispatcher:ds_connect_db: BUG - db connection found already open<o:p></o:p></p>
<p class="MsoNormal">Oct  1 20:53:18 [8083] ERROR:dispatcher:ds_child_init: failed to do DB connect<o:p></o:p></p>
<p class="MsoNormal">Oct  1 20:53:18 [8083] ERROR:core:init_mod_child: failed to initializing module dispatcher, rank 10000<o:p></o:p></p>
<p class="MsoNormal">Oct  1 20:53:18 [8083] DBG:core:send_status_code: sent code -1 (1 byte)<o:p></o:p></p>
<p class="MsoNormal">Oct  1 20:53:18 [8083] ERROR:core:fork_dynamic_udp_process: Initializing new process failed, exiting with error<o:p></o:p></p>
<p class="MsoNormal">Oct  1 20:53:18 [7833] DBG:core:wait_status_code: read code -1 (1 byte)<o:p></o:p></p>
<p class="MsoNormal">Oct  1 20:53:18 [7833] ERROR:core:do_workers_auto_scaling: failed to fork new process for group 1 (current 5 procs)<o:p></o:p></p>
<p class="MsoNormal">Oct  1 20:53:18 [7833] DBG:core:handle_sigs: OpenSIPS exit status = 139<o:p></o:p></p>
<p class="MsoNormal">Oct  1 20:53:18 [7833] INFO:core:handle_sigs: child process 7847 exited by a signal 11<o:p></o:p></p>
<p class="MsoNormal">Oct  1 20:53:18 [7833] INFO:core:handle_sigs: core was generated<o:p></o:p></p>
<p class="MsoNormal">Oct  1 20:53:18 [7833] INFO:core:handle_sigs: terminating due to SIGCHLD<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Users <users-bounces@lists.opensips.org> <b>On Behalf Of
</b>CARTWRIGHT, CORY C<br>
<b>Sent:</b> Monday, September 21, 2020 10:53<br>
<b>To:</b> users@lists.opensips.org<br>
<b>Subject:</b> [OpenSIPS-Users] segfault at 7f4c471852 ip 00007f4dc4a0ccc0 sp 00007ffc74776350 error 4 in libc-2.23.so[7f4dc49be000+1c0000]<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">***<b><span style="color:red">Security Advisory:</span></b> This Message Originated Outside of AT&T ***<br>
Reference <a href="http://cso.att.com/EmailSecurity/IDSP.html">http://cso.att.com/EmailSecurity/IDSP.html</a> for more information.<o:p></o:p></p>
<p class="MsoNormal">Hello,   Intermittently opensips is crashing  “segfault at 7f4c471852 ip 00007f4dc4a0ccc0 sp 00007ffc74776350 error 4 in libc-2.23.so[7f4dc49be000+1c0000]” showing in the syslog.  I have been unable to duplicate in LAB or determine any
 reason for the crash.<o:p></o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Searched the  archives and was unable to find anything related to libc-2.23.so, google has a many hits but all seem to eventually point back to the application. 
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Any help would be greatly appreciated <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">version: opensips 3.0.2 (x86_64/linux)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">poll method support: poll, epoll, sigio_rt, select.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">git revision: 7e8167853<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">main.c compiled on 15:39:14 Jun  2 2020 with gcc 5.4.0<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"># gcc -v<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Using built-in specs.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">COLLECT_GCC=gcc<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Target: x86_64-linux-gnu<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.12' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5
 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new
 --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64
 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32
 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Thread model: posix<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Cory<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
</body>
</html>