<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi Vlad,<br>
    <br>
    Thanks again for looking into this issue, you were spot on the mysql
    library was different on each server and it came down to the order
    in which the packages were installed.<br>
    <br>
    Just in case anyone else has this issue you need to installed
    mysql-devel last, due to an issue with error message files I
    reinstalled mysql-libs and mysql again.&nbsp; When I did this it was the
    source of the issue as it over wrote libmysqlclient.&nbsp; So by
    reinstall mysql-devel and recompiling everything (a re-compile was
    required) it now works correctly.<br>
    <br>
    Regards,<br>
    Mark<br>
    <br>
    On 03/30/11 20:22, Mark Carbonaro wrote:
    <blockquote cite="mid:4D92F63B.7010906@iovox.com" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <title></title>
      Thanks, I'll look into the mysql library and see what I can find.<br>
      <br>
      Mark<br>
      <br>
      On 03/29/11 22:22, Vlad Paiu wrote:
      <blockquote cite="mid:4D91C0E4.2020900@opensips.org" type="cite">
        <meta content="text/html; charset=ISO-8859-1"
          http-equiv="Content-Type">
        Hi,<br>
        <br>
        Just took a look at the code and it seems to be a problem
        somehow related with the mysql library on your machine. <br>
        At startup, OpenSIPS tries to fetch all dialog info from DB, and
        it first gets the column names and column types from the dialog
        table. It seems that in your case, the mysql library can only
        succesfully fetch the first column name ( hash_entry ), and then
        returns NULL for the second column name, which causes OpenSIPS
        to crash, because the case where a column name is NULL is bogus
        and should never happen.<br>
        <br>
        Could you maybe try to reinstall your mysql library or double
        check the fact that are no related problems to it ?<br>
        <br>
        <br>
        Regards,<br>
        <pre class="moz-signature" cols="72">-- 
Vlad Paiu
OpenSIPS Developer</pre>
        <br>
        <br>
        On 03/29/2011 12:53 PM, Mark Carbonaro wrote:
        <blockquote cite="mid:4D91ABFE.6020908@iovox.com" type="cite">
          <meta content="text/html; charset=ISO-8859-1"
            http-equiv="Content-Type">
          Hi Vlad,<br>
          <br>
          Thanks for the reply, below is the output of "bt full".<br>
          <br>
          Mark<br>
          <br>
          #0&nbsp; 0x00007fb9cd8cde57 in db_mysql_get_columns (_h=&lt;value
          optimized out&gt;, <br>
          &nbsp;&nbsp;&nbsp; _r=0x796490) at res.c:71<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; col = 1<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fields = &lt;value optimized out&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; __FUNCTION__ = "db_mysql_get_columns"<br>
          #1&nbsp; 0x00007fb9cd8c7e36 in db_mysql_fetch_result (_h=0x7962c8,
          <br>
          &nbsp;&nbsp;&nbsp; _r=0x7fff2a4a3e68, nrows=128) at dbase.c:849<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rows = &lt;value optimized out&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; i = &lt;value optimized out&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; __FUNCTION__ = "db_mysql_fetch_result"<br>
          #2&nbsp; 0x00007fb9cbf94889 in select_entire_dialog_table (<br>
          &nbsp;&nbsp;&nbsp; dlg_hash_size=&lt;value optimized out&gt;) at
          dlg_db_handler.c:232<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; __FUNCTION__ = "select_entire_dialog_table"<br>
          #3&nbsp; load_dialog_info_from_db (dlg_hash_size=&lt;value
          optimized out&gt;)<br>
          &nbsp;&nbsp;&nbsp; at dlg_db_handler.c:385<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; res = 0x796490<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; values = &lt;value optimized out&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rows = &lt;value optimized out&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; i = &lt;value optimized out&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nr_rows = &lt;value optimized out&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dlg = &lt;value optimized out&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; callid = {s = 0x3c &lt;Address 0x3c out of bounds&gt;,
          len = -870573728}<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from_uri = {s = 0xb &lt;Address 0xb out of bounds&gt;,
          len = 5153101}<br>
          ---Type &lt;return&gt; to continue, or q &lt;return&gt; to
          quit---<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; to_uri = {s = 0x1000 &lt;Address 0x1000 out of
          bounds&gt;, len = 1}<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from_tag = {s = 0x4 &lt;Address 0x4 out of bounds&gt;,
          len = -870574432}<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; to_tag = {s = 0x7fb9cc1c1960 "\264S\005\315\271\177",
          len = -870574432}<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cseq1 = {s = 0x7fff2a4a3dc0 "\270*S", len =
          -846407113}<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cseq2 = {s = 0x7fff2a4a3db0 "\303*S", len =
          -870577568}<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; contact1 = {s = 0x7962c8 "\240\026\034&#65533;&#65533;\177", len =
          7955600}<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; contact2 = {s = 0x532ac9 "version", len = 7}<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rroute1 = {s = 0x532ab8 "table_name", len = 10}<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rroute2 = {s = 0x532ac3 "table_version", len = 13}<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; next_id = &lt;value optimized out&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; __FUNCTION__ = "load_dialog_info_from_db"<br>
          #4&nbsp; 0x00007fb9cbf961a8 in init_dlg_db (db_url=&lt;value
          optimized out&gt;, <br>
          &nbsp;&nbsp;&nbsp; dlg_hash_size=4096, db_update_period=60) at
          dlg_db_handler.c:182<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; __FUNCTION__ = "init_dlg_db"<br>
          #5&nbsp; 0x00007fb9cbf9046e in mod_init () at dialog.c:696<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; __FUNCTION__ = "mod_init"<br>
          #6&nbsp; 0x000000000047b242 in init_mod (m=0x797788) at
          sr_module.c:457<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; __FUNCTION__ = "init_mod"<br>
          #7&nbsp; 0x000000000047b1bf in init_mod (m=0x797ac8) at
          sr_module.c:452<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; __FUNCTION__ = "init_mod"<br>
          #8&nbsp; 0x000000000047b1bf in init_mod (m=0x797b98) at
          sr_module.c:452<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; __FUNCTION__ = "init_mod"<br>
          #9&nbsp; 0x000000000042b0c1 in main (argc=&lt;value optimized
          out&gt;, <br>
          ---Type &lt;return&gt; to continue, or q &lt;return&gt; to
          quit---<br>
          &nbsp;&nbsp;&nbsp; argv=0x7fff2a4a4168) at main.c:1356<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cfg_log_stderr = 0<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cfg_stream = 0x1a09010<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; c = &lt;value optimized out&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; r = &lt;value optimized out&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tmp = 0x50bd87 "H\215\005.\365#"<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tmp_len = &lt;value optimized out&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; port = &lt;value optimized out&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; proto = &lt;value optimized out&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ret = &lt;value optimized out&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; seed = 4201309582<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rfd = &lt;value optimized out&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; __FUNCTION__ = "main"<br>
          <br>
          <br>
          On 03/29/11 20:39, Vlad Paiu wrote:
          <blockquote cite="mid:4D91A8D4.4030201@opensips.org"
            type="cite">
            <meta content="text/html; charset=ISO-8859-1"
              http-equiv="Content-Type">
            Hello Mark,<br>
            <br>
            If you still have the core dump, could you please do <br>
            &nbsp;&nbsp;&nbsp; gdb <i>path_to_opensips_binary path_to_core_file<br>
              <br>
            </i>and reply with the output of <br>
            &nbsp;&nbsp;&nbsp; bt full<br>
            <br>
            Thanks. <br>
            <br>
            <br>
            Regards,<br>
            <pre class="moz-signature" cols="72">-- 
Vlad Paiu
OpenSIPS Developer</pre>
          </blockquote>
        </blockquote>
        <br>
        <pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
      </blockquote>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
  </body>
</html>