<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Sasmita,<br>
      <br>
      Thanks for all the info. Right now, the only step forward is to
      try to reproduce it on my side (so I can debug and investigate).
      Of course, unless getting access to your machine where the crash
      setup is in place is an option.<br>
      <br>
      Regards,<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 06.01.2016 15:53, Sasmita Panda
      wrote:<br>
    </div>
    <blockquote
cite="mid:CALf-Q44_6JCQAJ2Cx=nb-KDvZg1_rr_JzKnVfO=kQ9Cr07Cecg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi Andrei ,
        <div><br>
        </div>
        <div>   Opensips version is : 1.11.2-notls</div>
        <div>   </div>
        <div>     Bellow is the back trace .</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>
          <div>GNU gdb (GDB) 7.6.1-ubuntu</div>
          <div>Copyright (C) 2013 Free Software Foundation, Inc.</div>
          <div>License GPLv3+: GNU GPL version 3 or later &lt;<a
              moz-do-not-send="true"
              href="http://gnu.org/licenses/gpl.html"><a class="moz-txt-link-freetext" href="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</a></a>&gt;</div>
          <div>This is free software: you are free to change and
            redistribute it.</div>
          <div>There is NO WARRANTY, to the extent permitted by law. 
            Type "show copying"</div>
          <div>and "show warranty" for details.</div>
          <div>This GDB was configured as "x86_64-linux-gnu".</div>
          <div>For bug reporting instructions, please see:</div>
          <div>&lt;<a moz-do-not-send="true"
              href="http://www.gnu.org/software/gdb/bugs/">http://www.gnu.org/software/gdb/bugs/</a>&gt;...</div>
          <div>Reading symbols from
            /root/opensips-1.11/sbin/opensips...done.</div>
          <div>[New LWP 16965]</div>
          <div><br>
          </div>
          <div>warning: Can't read pathname for load map: Input/output
            error.</div>
          <div>[Thread debugging using libthread_db enabled]</div>
          <div>Using host libthread_db library
            "/lib/x86_64-linux-gnu/libthread_db.so.1".</div>
          <div>Core was generated by `/root/opensips-1.11//sbin/opensips
            -m 1024 -f /root/opensips-1.11//etc/opensips'.</div>
          <div>Program terminated with signal 11, Segmentation fault.</div>
          <div>#0  bson_iterator_next (i=i@entry=0x7ffff0fca8d0) at
            src/bson.c:346</div>
          <div>346             return ( bson_type )( *i-&gt;cur );</div>
          <div>(gdb) bt</div>
          <div>#0  bson_iterator_next (i=i@entry=0x7ffff0fca8d0) at
            src/bson.c:346</div>
          <div>#1  0x00007f077dd56244 in mongo_db_insert_trans
            (con=&lt;optimized out&gt;, table=&lt;optimized out&gt;,
            _k=&lt;optimized out&gt;, _v=&lt;optimized out&gt;,
            _n=&lt;optimized out&gt;)</div>
          <div>    at cachedb_mongodb_dbase.c:1704</div>
          <div>#2  0x00007f077d722e60 in db_cachedb_insert
            (_h=&lt;optimized out&gt;, _k=&lt;optimized out&gt;,
            _v=&lt;optimized out&gt;, _n=&lt;optimized out&gt;) at
            dbase.c:149</div>
          <div>#3  0x00007f077aef3407 in insert_siptrace_flag
            (keys=0x7f077b10bd20 &lt;db_keys&gt;, vals=0x7f077b10be20
            &lt;db_vals&gt;, msg=0x7f077b10b710 &lt;db_con&gt;) at
            siptrace.c:468</div>
          <div>#4  save_siptrace (avp=avp@entry=0x0,
            first_val=first_val@entry=0x7ffff0fcacc0,
            msg=0x7f0739db73d0, vals=0x7f077b10be20 &lt;db_vals&gt;,
            keys=0x7f077b10bd20 &lt;db_keys&gt;)</div>
          <div>    at siptrace.c:560</div>
          <div>#5  0x00007f077aef97af in trace_onreply_in
            (t=&lt;optimized out&gt;, type=&lt;optimized out&gt;,
            ps=&lt;optimized out&gt;) at siptrace.c:1212</div>
          <div>#6  0x00007f077d2cabbd in run_trans_callbacks
            (type=type@entry=2, trans=0x7f073a1606d8, req=&lt;optimized
            out&gt;, rpl=rpl@entry=0x7f077ee222c0, code=&lt;optimized
            out&gt;)</div>
          <div>    at t_hooks.c:212</div>
          <div>#7  0x00007f077d2d1e2c in t_reply_matching
            (p_msg=p_msg@entry=0x7f077ee222c0, p_branch=&lt;optimized
            out&gt;) at t_lookup.c:827</div>
          <div>#8  0x00007f077d2d25bf in t_check
            (p_msg=p_msg@entry=0x7f077ee222c0,
            param_branch=param_branch@entry=0x7ffff0fcaee0) at
            t_lookup.c:898</div>
          <div>#9  0x00007f077d2f1ec6 in reply_received
            (p_msg=0x7f077ee222c0) at t_reply.c:1525</div>
          <div>#10 0x0000000000437af6 in forward_reply
            (msg=msg@entry=0x7f077ee222c0) at forward.c:575</div>
          <div>#11 0x0000000000486da6 in receive_msg (buf=&lt;optimized
            out&gt;, len=&lt;optimized out&gt;,
            rcv_info=rcv_info@entry=0x7ffff0fcb0b0) at receive.c:214</div>
          <div>#12 0x0000000000501f8d in udp_rcv_loop () at
            udp_server.c:424</div>
          <div>#13 0x0000000000414b01 in main_loop () at main.c:942</div>
          <div>#14 main (argc=&lt;optimized out&gt;, argv=&lt;optimized
            out&gt;) at main.c:1634</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Actually , I am not getting anything from this . What else
          you want to find the problem let me know .</div>
      </div>
      <div class="gmail_extra"><br clear="all">
        <div>
          <div class="gmail_signature">
            <div dir="ltr"><b><i>Thanks &amp; Regards</i></b>
              <div><i>Sasmita Panda</i></div>
              <div><i>Network Testing and Software Engineer</i></div>
              <div><i>3CLogic , ph:07827611765</i></div>
            </div>
          </div>
        </div>
        <br>
        <div class="gmail_quote">On Wed, Jan 6, 2016 at 2:49 PM,
          Bogdan-Andrei Iancu <span dir="ltr">&lt;<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>&gt;</span> wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> <tt>Hi Sasmita,<br>
                <br>
                If mysql server is down, opensips will continue to work,
                failing to perform any DB operation (of course) -
                definitely it will not stop or so.<br>
                <br>
                Now, back to the mongo issue - you have siptrace
                configured to insert into mongo via db_cachedb ; and if
                you stop the mondo daemon, the next insert it will crash
                opensips.<br>
                I see in your logs that a core file was generated - can
                you extract and post here the backtrace ?<br>
                <br>
                Also, what is the exact version of opensips (do opensips
                -V) <br>
                <br>
                Best regards,<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 06.01.2016 07:59, Sasmita Panda wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">Hi ,
                      <div><br>
                      </div>
                      <div>    Yes , it seems like this .</div>
                      <div><br>
                      </div>
                      <div>          My concern is , If I am stopping
                        mysql of the machine and my opensips is using
                        mysql , then also opensips is not getting
                        stopped . But why this is happening with mongodb
                         ?</div>
                      <div><br>
                      </div>
                      <div>This is the logs I am getting during opensips
                        get stopped .</div>
                      <div><br>
                      </div>
                      <div>
                        <div><font color="#351c75"> translated to  2</font></div>
                        <div><font color="#351c75"> request
                            domain,&lt;null&gt;</font></div>
                        <div><font color="#351c75"> translated to  2</font></div>
                        <div><font color="#351c75"> ACC: transaction
                            answered:
timestamp=1452059689;method=BYE;from_tag=as2a07e122;to_tag=85d3d0e795bb4a57ab6a76dd95d7ec4e;call_id=8f01c197bf4f498ab9379a4f589a4d6b;code=200;reason=OK</font></div>
                        <div><font color="#351c75"> ERROR:cachedb_mongodb:mongo_db_insert_trans:

                            Failed to run query. Err = 2, 32 , 0</font></div>
                        <div><font color="#351c75"> opensips segfault at
                            4 ip 00007fb1eb1c3fbc sp 00007fff267b0660
                            error 4 in
                            libmongoc.so.0.6.0[7fb1eb1bd000+13000]</font></div>
                        <div><font color="#351c75"> ACC: transaction
                            answered:
timestamp=1452059690;method=BYE;from_tag=as45b598fe;to_tag=988c2c314cc545cabb60b0c7c09c1aed;call_id=751c426ebacc4a03aba5ea3e326dcb91;code=200;reason=OK</font></div>
                        <div><font color="#351c75"> ERROR:cachedb_mongodb:mongo_db_insert_trans:

                            Failed to run query. Err = 2, 32 , 0</font></div>
                        <div><font color="#351c75"> segfault at 4 ip
                            00007fb1eb1c3fbc sp 00007fff267b0660 error 4
                            in libmongoc.so.0.6.0[7fb1eb1bd000+13000]</font></div>
                        <div><font color="#351c75"> CRITICAL:core:receive_fd:
                            EOF on 15</font></div>
                        <div><font color="#351c75"> <a
                              moz-do-not-send="true"><a class="moz-txt-link-freetext" href="INFO:core:handle_sigs">INFO:core:handle_sigs</a></a>:
                            child process 20023 exited by a signal 11</font></div>
                        <div><font color="#351c75"> <a
                              moz-do-not-send="true"><a class="moz-txt-link-freetext" href="INFO:core:handle_sigs">INFO:core:handle_sigs</a></a>:
                            core was generated</font></div>
                        <div><font color="#351c75"> <a
                              moz-do-not-send="true"><a class="moz-txt-link-freetext" href="INFO:core:handle_sigs">INFO:core:handle_sigs</a></a>:
                            terminating due to SIGCHLD</font></div>
                        <div><font color="#351c75"> <a
                              moz-do-not-send="true"><a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a></a>:
                            signal 15 received</font></div>
                        <div><font color="#351c75"> <a
                              moz-do-not-send="true"><a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a></a>:
                            signal 15 received</font></div>
                        <div><font color="#351c75"> <a
                              moz-do-not-send="true"><a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a></a>:
                            signal 15 received</font></div>
                        <div><font color="#351c75"> <a
                              moz-do-not-send="true"><a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a></a>:
                            signal 15 received</font></div>
                        <div><font color="#351c75"> <a
                              moz-do-not-send="true"><a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a></a>:
                            signal 15 received</font></div>
                        <div><font color="#351c75"> <a
                              moz-do-not-send="true"><a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a></a>:
                            signal 15 received</font></div>
                        <div><font color="#351c75"> <a
                              moz-do-not-send="true"><a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a></a>:
                            signal 15 received</font></div>
                        <div><font color="#351c75"> <a
                              moz-do-not-send="true"><a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a></a>:
                            signal 15 received</font></div>
                        <div><font color="#351c75"> <a
                              moz-do-not-send="true"><a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a></a>:
                            signal 15 received</font></div>
                        <div><font color="#351c75"> <a
                              moz-do-not-send="true"><a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a></a>:
                            signal 15 received</font></div>
                        <div><font color="#351c75"> <a
                              moz-do-not-send="true"><a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a></a>:
                            signal 15 received</font></div>
                        <div><font color="#351c75"> <a
                              moz-do-not-send="true"><a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a></a>:
                            signal 15 received</font></div>
                        <div><font color="#351c75"> <a
                              moz-do-not-send="true"><a class="moz-txt-link-freetext" href="INFO:core:cleanup">INFO:core:cleanup</a></a>:
                            cleanup</font></div>
                        <div><font color="#351c75"> NOTICE:db_cachedb:destroy:
                            destroy module db_cachedb ...</font></div>
                        <div><font color="#351c75"> NOTICE:cachedb_mongodb:destroy:

                            destroy module cachedb_mongodb ...</font></div>
                      </div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                      <div> Please help me if I am doing something wrong
                        . Thank you in advance .</div>
                      <div><br>
                      </div>
                    </div>
                    <div class="gmail_extra"><br clear="all">
                      <div>
                        <div>
                          <div dir="ltr"><b><i>Thanks &amp; Regards</i></b>
                            <div><i>Sasmita Panda</i></div>
                            <div><i>Network Testing and Software
                                Engineer</i></div>
                            <div><i>3CLogic , ph:07827611765</i></div>
                          </div>
                        </div>
                      </div>
                      <br>
                      <div class="gmail_quote">On Tue, Jan 5, 2016 at
                        7:22 PM, Bogdan-Andrei Iancu <span dir="ltr">&lt;<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>&gt;</span>
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">
                          <div bgcolor="#FFFFFF" text="#000000"> <tt>Hi
                              Sasmita,<br>
                              <br>
                              you say when your mongos daemon is stopped
                              then opensips is crashing (on the next
                              attempt of a db query) ?<br>
                              <br>
                              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 30.12.2015 14:28, Sasmita Panda
                                  wrote:<br>
                                </div>
                              </div>
                            </div>
                            <blockquote type="cite">
                              <div>
                                <div>
                                  <div dir="ltr">Hi All,
                                    <div><br>
                                    </div>
                                    <div>          I am using
                                      opensips-1.11 with cachedb_mongodb
                                      and db_cachedb integrated on it . 
                                      Mongodb and Opensips is running in
                                      different machines .</div>
                                    <div><br>
                                    </div>
                                    <div>          Whenever mongodb is
                                      getting stopped opensips used to
                                      crash . Is this a drawback or I am
                                      doing any mistake in my
                                      configuration .</div>
                                    <div><font color="#351c75"><br>
                                      </font></div>
                                    <div><font color="#351c75">Bellow is
                                        the configuration I have done :</font></div>
                                    <div><font color="#351c75">loadmodule

                                        "cachedb_mongodb.so"</font></div>
                                    <div><font color="#351c75">loadmodule

                                        "db_cachedb.so" </font></div>
                                    <div><font color="#351c75"><br>
                                      </font></div>
                                    <div>
                                      <div><font color="#351c75">modparam("cachedb_mongodb",

                                          "cachedb_url",<a
                                            moz-do-not-send="true"
href="mailto:mongodb:instance1://opensips:opensipsmongo@x.x.x.x:27017/db.CCinfo"
                                            target="_blank"><a class="moz-txt-link-rfc2396E" href="mailto:mongodb:instance1://opensips:opensipsmongo@x.x.x.x:27017/db.CCinfo">"mongodb:instance1://opensips:opensipsmongo@x.x.x.x:27017/db.CCinfo"</a></a>)</font></div>
                                      <div><font color="#351c75"><br>
                                        </font></div>
                                      <div><font color="#351c75">modparam("db_cachedb","cachedb_url",<a
                                            moz-do-not-send="true"
href="mailto:mongodb:instance1://opensips:opensipsmongo@x.x.x.x:27017/db.db"
                                            target="_blank"><a class="moz-txt-link-rfc2396E" href="mailto:mongodb:instance1://opensips:opensipsmongo@x.x.x.x:27017/db.db">"mongodb:instance1://opensips:opensipsmongo@x.x.x.x:27017/db.db"</a></a>)</font></div>
                                    </div>
                                    <div><font color="#351c75"><br>
                                      </font></div>
                                    <div><font color="#351c75">modparam("siptrace","db_url","cachedb://mongodb:instance1")</font><br>
                                    </div>
                                    <div><br>
                                    </div>
                                    <div><br>
                                    </div>
                                    <div>       I am using it for
                                      siptrace module and storing some
                                      data through cache_store function
                                      . Please let me know if I can
                                      overcome this problem or also let
                                      me know if connection with
                                       mongodb is always needed for
                                      successful running of opensips or
                                      what .</div>
                                    <div><br>
                                    </div>
                                    <div><br>
                                    </div>
                                    <div>        Any kind of information
                                      is really appreciated . </div>
                                    <div><br clear="all">
                                      <div>
                                        <div>
                                          <div dir="ltr"><b><i>Thanks
                                                &amp; Regards</i></b>
                                            <div><i>Sasmita Panda</i></div>
                                            <div><i>Network Testing and
                                                Software Engineer</i></div>
                                            <div><i>3CLogic ,
                                                ph:07827611765</i></div>
                                          </div>
                                        </div>
                                      </div>
                                    </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>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>