<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hello,<br>
      <br>
      thanks for troubleshooting further -- as I expected, it is a
      memalign problem, but some confusing reports by not using always
      the patches I made to registrar module to align the structure,
      made thinking is something else. Now is no longer in registrar,
      but in another module.<br>
      <br>
      There might be many of these, can you try to compile first without
      strict alignment to 8 bytes? Checking quickly to gcc, the option
      should be <code>-mno-faster-structs<br>
        <br>
        So try:<br>
        <br>
        make proper<br>
        make FLAVOUR=kamailio cfg</code><br>
      make Q=0 CC_EXTRA_OPTS<span class="sy0">=</span><code>-mno-faster-structs
        all</code><br>
      ...<br>
      <br>
      By providing Q=0, you will see all compile flags, verify that </tt>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    <code><tt>-mno-faster-structs is there.<br>
        <br>
        Cheers,<br>
        Daniel</tt><br>
    </code><br>
    <div class="moz-cite-prefix">On 6/22/12 3:26 PM, Akan wrote:<br>
    </div>
    <blockquote cite="mid:4FE47283.9090700@akan.net" type="cite">Hello,
      <br>
      <br>
      After doing some research, this is what I found out. On Solaris
      Sparc 64bit system, there is a mandatory alignment of memory
      accesses and also for data types. I went thru the core dump,
      disassembled the code and located the instruction that produced
      the error. The registers addresses in questioned are on a 4 byte
      alignment but not an 8 byte or 16 byte alignment. .The earlier
      patch must have forced the alignment which is why the error did
      not occur in the program common.c. It looks like there is a
      similar situation in t_funcs.c.
      <br>
      <br>
      Here is a link that I found that can better explain:
      <br>
<a class="moz-txt-link-freetext" href="http://blog.jgc.org/2007/04/debugging-solaris-bus-error-caused-by.html">http://blog.jgc.org/2007/04/debugging-solaris-bus-error-caused-by.html</a>
      <br>
      <br>
      Core was generated by `/opt/kamailio-3.2/sbin/kamailio'.
      <br>
      Program terminated with signal 10, Bus error.
      <br>
      #0&nbsp; 0xffffffff7bd2b7bc in t_relay_to (p_msg=0x10047c698,
      proxy=0x0, proto=0, replicate=0) at t_funcs.c:352
      <br>
      352&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!t_reply( t, p_msg , 100 ,
      <br>
      <br>
      &nbsp; 0xffffffff7bd2b7b0 &lt;+976&gt;:&nbsp;&nbsp; ldx&nbsp; [ %l7 + %g1 ], %g1
      <br>
      &nbsp;&nbsp; 0xffffffff7bd2b7b4 &lt;+980&gt;:&nbsp;&nbsp; ldx&nbsp; [ %g1 ], %g1
      <br>
      &nbsp;&nbsp; 0xffffffff7bd2b7b8 &lt;+984&gt;:&nbsp;&nbsp; call&nbsp; 0xffffffff7be9bc80
      &lt;t_reply@plt&gt;
      <br>
      *=&gt; 0xffffffff7bd2b7bc &lt;+988&gt;:&nbsp;&nbsp; ldx&nbsp; [ %g1 + 0x38 ],
      %o3*
      <br>
      &nbsp;&nbsp; 0xffffffff7bd2b7c0 &lt;+992&gt;:&nbsp;&nbsp; cmp&nbsp; %o0, 0
      <br>
      &nbsp;&nbsp; 0xffffffff7bd2b7c4 &lt;+996&gt;:&nbsp;&nbsp; be,pn&nbsp;&nbsp; %icc,
      0xffffffff7bd2bb14 &lt;t_relay_to+1844&gt;
      <br>
      &nbsp;&nbsp; 0xffffffff7bd2b7c8 &lt;+1000&gt;:&nbsp; ldx&nbsp; [ %fp + 0x7f7 ], %o0
      <br>
      &nbsp;&nbsp; 0xffffffff7bd2b7cc &lt;+1004&gt;:&nbsp; b&nbsp; %xcc, 0xffffffff7bd2b460
      &lt;t_relay_to+128&gt;
      <br>
      <br>
      End of assembler dump.
      <br>
      (gdb) info registers g1
      <br>
      g1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0xffffffff7666c3e4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -2308520988
      <br>
      (gdb) info registers o3
      <br>
      o3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0x18f3d0 1635280
      <br>
      <br>
      I hope this helps in trying to resolve this problem and to find a
      solution. Also, if you need a sparc system to test with, just let
      me know. We can help from a sparc perspective.
      <br>
      <br>
      Thanks
      <br>
      <br>
      Nathaniel
      <br>
      <br>
      <br>
    </blockquote>
    <br>
    <blockquote cite="mid:4FE47283.9090700@akan.net" type="cite">
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 - <a class="moz-txt-link-freetext" href="http://asipto.com/u/katu">http://asipto.com/u/katu</a>
Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 - <a class="moz-txt-link-freetext" href="http://asipto.com/u/kpw">http://asipto.com/u/kpw</a></pre>
  </body>
</html>