<br><br><div class="gmail_quote">On 25 November 2010 11:00, marius zbihlei <span dir="ltr">&lt;<a href="mailto:marius.zbihlei@1and1.ro">marius.zbihlei@1and1.ro</a>&gt;</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"><div><div></div><div class="h5">
On 11/25/2010 12:07 PM, marius zbihlei wrote:
<blockquote type="cite">
  
On 11/25/2010 12:00 PM, dotnetdub wrote:
  <blockquote type="cite"><br>
    <br>
    <div class="gmail_quote">On 24 November 2010 07:10,
Daniel-Constantin
Mierla <span dir="ltr">&lt;<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>&gt;</span>
wrote:<br>
    <blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">If
you
don&#39;t have the mask ip to your host ip (kamailio listening ip) like
Alex pointed, do you have a core dump from where you can send the
backtrace?<br>
      <br>
Cheers,<br>
Daniel
      <div>
      <div><br>
      </div>
      </div>
    </blockquote>
    <div><br>
    </div>
    <div><br>
    </div>
    <div>Hi Alex/Daniel,</div>
    <div><br>
    </div>
    <div>so THe IP of this SIP proxy is x.x.x.11 and I am using
x.x.x.10
for the Mask IP.</div>
    <div><br>
    </div>
    <div>I see the coredump in the root of the server..</div>
    <div><br>
    </div>
    <div>
    <div>ls /core -lah</div>
    <div>-rw------- 1 root root 134M 2010-11-20 19:48 /core</div>
    </div>
    <div><br>
    </div>
    <div>which is the date it crashed.</div>
    <div><br>
    </div>
    <div>
    <div>gdb /sbin/kamailio /core</div>
    </div>
    <div><br>
    </div>
    <div>
    <div>This GDB was configured as &quot;i486-linux-gnu&quot;...</div>
    <div>Cannot access memory at address 0xb75f3fb0</div>
    </div>
    <div><br>
    </div>
    <div><br>
    </div>
    <div>I am running gdb from debian repo on 5.04 maybe I need to
compile gdb?</div>
    <div><br>
    </div>
    </div>
  </blockquote>
Hello, <br>
  <br>
No, the problem is with the coredump AFAIK. Try looking thru
/var/log/messages and dmesg for any indication of a coredump and the
module that generated it. Please email those lines as well.<br>
</blockquote>
<br></div></div>
Hello<br>
I see that the interesting line is already in the first mail . Please
try this<br>
<br>
readelf -S /path/to/topoh.so<br></div></blockquote><div><br></div><div><br></div><div><div>There are 36 section headers, starting at offset 0x17b34:</div><div><br></div><div>Section Headers:</div><div>  [Nr] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al</div>

<div>  [ 0]                   NULL            00000000 000000 000000 00      0   0  0</div><div>  [ 1] .hash             HASH            000000b4 0000b4 000498 04   A  3   0  4</div><div>  [ 2] .gnu.hash         GNU_HASH        0000054c 00054c 0002d8 04   A  3   0  4</div>

<div>  [ 3] .dynsym           DYNSYM          00000824 000824 000650 10   A  4   1  4</div><div>  [ 4] .dynstr           STRTAB          00000e74 000e74 000581 00   A  0   0  1</div><div>  [ 5] .gnu.version      VERSYM          000013f6 0013f6 0000ca 02   A  3   0  2</div>

<div>  [ 6] .gnu.version_r    VERNEED         000014c0 0014c0 000030 00   A  4   1  4</div><div>  [ 7] .rel.dyn          REL             000014f0 0014f0 0001d0 08   A  3   0  4</div><div>  [ 8] .rel.plt          REL             000016c0 0016c0 000210 08   A  3  10  4</div>

<div>  [ 9] .init             PROGBITS        000018d0 0018d0 000030 00  AX  0   0  4</div><div>  [10] .plt              PROGBITS        00001900 001900 000430 04  AX  0   0  4</div><div>  [11] .text             PROGBITS        00001d30 001d30 0080d8 00  AX  0   0 16</div>

<div>  [12] .fini             PROGBITS        00009e08 009e08 00001c 00  AX  0   0  4</div><div>  [13] .rodata           PROGBITS        00009e24 009e24 001618 01 AMS  0   0  4</div><div>  [14] .eh_frame         PROGBITS        0000b43c 00b43c 000004 00   A  0   0  4</div>

<div>  [15] .ctors            PROGBITS        0000c440 00b440 000008 00  WA  0   0  4</div><div>  [16] .dtors            PROGBITS        0000c448 00b448 000008 00  WA  0   0  4</div><div>  [17] .jcr              PROGBITS        0000c450 00b450 000004 00  WA  0   0  4</div>

<div>  [18] .dynamic          DYNAMIC         0000c454 00b454 0000c8 08  WA  4   0  4</div><div>  [19] .got              PROGBITS        0000c51c 00b51c 00006c 04  WA  0   0  4</div><div>  [20] .got.plt          PROGBITS        0000c588 00b588 000114 04  WA  0   0  4</div>

<div>  [21] .data             PROGBITS        0000c6a0 00b6a0 00012c 00  WA  0   0 32</div><div>  [22] .bss              NOBITS          0000c7e0 00b7cc 0004a0 00  WA  0   0 32</div><div>  [23] .comment          PROGBITS        00000000 00b7cc 0000d9 00      0   0  1</div>

<div>  [24] .debug_aranges    PROGBITS        00000000 00b8a8 0000b0 00      0   0  8</div><div>  [25] .debug_pubnames   PROGBITS        00000000 00b958 000448 00      0   0  1</div><div>  [26] .debug_info       PROGBITS        00000000 00bda0 005dd1 00      0   0  1</div>

<div>  [27] .debug_abbrev     PROGBITS        00000000 011b71 0007a8 00      0   0  1</div><div>  [28] .debug_line       PROGBITS        00000000 012319 0014b9 00      0   0  1</div><div>  [29] .debug_frame      PROGBITS        00000000 0137d4 0004b0 00      0   0  4</div>

<div>  [30] .debug_str        PROGBITS        00000000 013c84 001d76 01  MS  0   0  1</div><div>  [31] .debug_loc        PROGBITS        00000000 0159fa 001ebe 00      0   0  1</div><div>  [32] .debug_ranges     PROGBITS        00000000 0178b8 000140 00      0   0  8</div>

<div>  [33] .shstrtab         STRTAB          00000000 0179f8 00013b 00      0   0  1</div><div>  [34] .symtab           SYMTAB          00000000 0180d4 0009e0 10     35  58  4</div><div>  [35] .strtab           STRTAB          00000000 018ab4 0006ec 00      0   0  1</div>

<div>Key to Flags:</div><div>  W (write), A (alloc), X (execute), M (merge), S (strings)</div><div>  I (info), L (link order), G (group), x (unknown)</div><div>  O (extra OS processing required) o (OS specific), p (processor specific)</div>

</div><div><br></div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div text="#000000" bgcolor="#ffffff">You should have somethink like this<br>


<br>
  [Nr] Name              Type            Addr     Off    Size   ES Flg
Lk Inf Al<br>
  [ 0]                   NULL            00000000 000000 000000 00     
0   0  0<br>
.....<br>
  [10] .init             PROGBITS        00001914 001914 000030 00  AX 
0   0  4<br>
  [11] .plt              PROGBITS        00001944 001944 000430 04  AX 
0   0  4<br>
  [12] .text             PROGBITS        00001d80 001d80 008008 00  AX 
0   0 16<br>
<br>
Note the address of the .text segment (in my case is 0x00001d80) <br>
<br>
Then<br>
<br>
gdb /path/to/kamailio core.dump<br>
<br></div></blockquote><div><br></div><div>All ok</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div text="#000000" bgcolor="#ffffff">


in the gdb console load the topoh.so<br>
<br>
add-symbol-file /path/to/topoh.so 0xb7004000 + 0x&lt;offset of .text
segment found as above&gt; <br>
<br></div></blockquote><div><br></div><div>Ok.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div text="#000000" bgcolor="#ffffff">


then check the value of the Instruction pointer IP (0xb70070d9) Still
in the gdb console <br>
<br>
x/s 0xb70070d9<br>
<br></div></blockquote><div><br></div><div><br></div><div><div>x/s 0xb70070d9</div><div>0xb70070d9:<span class="Apple-tab-span" style="white-space:pre">        </span> &lt;Address 0xb70070d9 out of bounds&gt;</div></div><div><br>

</div><div><br></div><div><div>(gdb) x/s 0x00001d30</div><div>0x1d30 &lt;__do_global_dtors_aux&gt;:<span class="Apple-tab-span" style="white-space:pre">        </span> &lt;Address 0x1d30 out of bounds&gt;</div><div>(gdb) x/s 0xb700400</div>

<div>0xb700400 &lt;__do_global_dtors_aux&gt;:<span class="Apple-tab-span" style="white-space:pre">        </span> &lt;Address 0xb700400 out of bounds&gt;</div></div><div><br></div><div><br></div><div><br></div><div><br></div><div>

Brian</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div text="#000000" bgcolor="#ffffff">


You will get an offset relative to a function where the crashed
happened. This would be very helpful so please share the finding. Also
do a info registers (in the gdb console) and paste the content of the
registers as well.<br>
<br>
Marius <br>
<blockquote type="cite"><br>
Marius<br>
  <blockquote type="cite">
    <div class="gmail_quote">
    <div>Thanks</div>
    <div>Brian</div>
    <div><br>
    </div>
    <div><br>
    </div>
    <div><br>
    </div>
    <div><br>
    </div>
    <div><br>
    </div>
    </div>
  </blockquote>
  <br>
</blockquote>
<br>
</div>

<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br>