<div dir="ltr">Sure. Thanks Daniel.<div><br></div><div><br></div><div><div>#0 handle_ser_child (p=0x7f1ec3adc1d8, fd_i=fd_i@entry=-1) at tcp_main.c:3579</div><div> tcpconn = <optimized out></div><div> tmp = <optimized out></div>
<div> response = {9034836, 2086}</div><div> cmd = <optimized out></div><div> bytes = <optimized out></div><div> ret = -1</div><div> fd = <optimized out></div><div> flags = <optimized out></div>
<div> t = <optimized out></div><div> con_lifetime = <optimized out></div><div> nxt_timeout = <optimized out></div><div> __FUNCTION__ = "handle_ser_child"</div><div>#1 0x00000000005328da in send2child (tcpconn=0x7f05815ddda8) at tcp_main.c:3979</div>
<div> i = <optimized out></div><div> min_busy = <optimized out></div><div> idx = 0</div><div> wlast = <optimized out></div><div> last = <optimized out></div><div>
crt = 1</div><div> wfirst = <optimized out></div><div>#2 handle_tcpconn_ev (tcpconn=0x7f05815ddda8, ev=<optimized out>, ev@entry=1, fd_i=fd_i@entry=-1) at tcp_main.c:4314</div><div> empty_q = <optimized out></div>
<div> bytes = 0</div><div> __FUNCTION__ = "handle_tcpconn_ev"</div><div>#3 0x000000000053c428 in handle_io (idx=-1, ev=<optimized out>, fm=<optimized out>) at tcp_main.c:4366</div><div>
ret = <optimized out></div><div>#4 io_wait_loop_epoll (repeat=repeat@entry=0, t=5, h=0x89dc40) at io_wait.h:1092</div><div> n = 1</div><div> r = <optimized out></div><div> fm = 0x7f058b9da368</div>
<div> revents = 1</div><div>#5 0x0000000000544577 in tcp_main_loop () at tcp_main.c:4660</div><div> si = <optimized out></div><div> r = <optimized out></div><div> __FUNCTION__ = "tcp_main_loop"</div>
<div>#6 0x00000000004821a8 in main_loop () at main.c:1711</div><div> i = <optimized out></div><div> pid = <optimized out></div><div> si = 0x0</div><div> si_desc = "\t\000\000\000\005\177\000\000\000\000\034\000\000\000\000\000\001\000\000\000\005\177\000\000\310\311\027\206\005\177", '\000' <repeats 18 times>, "pn\233\213\005\177\000\000\002\000\000\000\000\000\000\000\f\b\000\000\000\000\000\000@\333`\000\000\000\000\000\003\000\000\000\377\177\000\000\000!\006\370 \033\340\337\001\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\210ٓ\000\000\000\000\000\200ٓ\000\000\000\000"</div>
<div> nrprocs = <optimized out></div><div> __FUNCTION__ = "main_loop"</div><div><br></div><div>#7 0x0000000000420585 in main (argc=<optimized out>, argv=<optimized out>) at main.c:2533</div>
<div> cfg_stream = <optimized out></div><div> c = <optimized out></div><div> r = <optimized out></div><div> tmp = 0x7fffd40e1f81 ""</div><div> tmp_len = -737279072</div>
<div> port = -163754450</div><div> proto = -1</div><div> options = 0x608ab0 ":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:"</div><div> ret = -1</div><div> seed = 542838069</div>
<div> rfd = 0</div><div>---Type <return> to continue, or q <return> to quit---</div><div> debug_save = <optimized out></div><div> debug_flag = <optimized out></div><div> dont_fork_cnt = <optimized out></div>
<div> n_lst = 0x0</div><div> p = <optimized out></div><div> __FUNCTION__ = "main"</div><div>(gdb) p *p</div><div>Cannot access memory at address 0x7f1ec3adc1d8</div><div>(gdb) </div></div>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 20, 2014 at 4:04 PM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></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">
Hello,<br>
<br>
can you get the output of gdb for 'bt full'?<br>
<br>
As well as 'p *p'?<br>
<br>
Daniel<div><div class="h5"><br>
<br>
<div>On 20/05/14 15:59, Peter Villeneuve
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">Well I ended up dumping the core and this is what
GDB tells me.
<div>How can tcp_main.c be missing if I installed the deb
packages? Weird.</div>
<div><br>
</div>
<div>What do people suggest I do from here? Remove the deb
packages and compile directly from git?</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>Peter</div>
<div><br>
<div><br>
</div>
<div>
<div>me@myhost:/$ sudo gdb /usr/sbin/kamailio
/home/corefiles/core2</div>
<div>GNU gdb (GDB) 7.4.1-debian</div>
<div>Copyright (C) 2012 Free Software Foundation, Inc.</div>
<div>License GPLv3+: GNU GPL version 3 or later <<a href="http://gnu.org/licenses/gpl.html" target="_blank">http://gnu.org/licenses/gpl.html</a>></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><<a href="http://www.gnu.org/software/gdb/bugs/" target="_blank">http://www.gnu.org/software/gdb/bugs/</a>>...</div>
<div>Reading symbols from /usr/sbin/kamailio...Reading
symbols from
/usr/lib/debug/.build-id/dd/9191ec1e595a90e4844b8ccd1c70b3c92037a1.debug...done.</div>
<div>done.</div>
<div>[New LWP 30988]</div>
<div><br>
</div>
<div>warning: Could not load shared library symbols for
linux-vdso.so.1.</div>
<div>Do you need "set solib-search-path" or "set sysroot"?</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 `/usr/sbin/kamailio -f
/etc/kamailio/kamailio.cfg -P
/var/run/kamailio/kamailio.'.</div>
<div>Program terminated with signal 11, Segmentation fault.</div>
<div>#0 handle_ser_child (p=0x7f1ec3adc1d8,
fd_i=fd_i@entry=-1) at tcp_main.c:3579</div>
<div>3579 <b>tcp_main.c: No such file or directory</b>.</div>
<div>
(gdb) backtrace</div>
<div>#0 handle_ser_child (p=0x7f1ec3adc1d8,
fd_i=fd_i@entry=-1) at tcp_main.c:3579</div>
<div>#1 0x00000000005328da in send2child
(tcpconn=0x7f05815ddda8) at tcp_main.c:3979</div>
<div>#2 handle_tcpconn_ev (tcpconn=0x7f05815ddda8,
ev=<optimized out>, ev@entry=1, fd_i=fd_i@entry=-1)
at tcp_main.c:4314</div>
<div>#3 0x000000000053c428 in handle_io (idx=-1,
ev=<optimized out>, fm=<optimized out>) at
tcp_main.c:4366</div>
<div>#4 io_wait_loop_epoll (repeat=repeat@entry=0, t=5,
h=0x89dc40) at io_wait.h:1092</div>
<div>
#5 0x0000000000544577 in tcp_main_loop () at
tcp_main.c:4660</div>
<div>#6 0x00000000004821a8 in main_loop () at main.c:1711</div>
<div>#7 0x0000000000420585 in main (argc=<optimized
out>, argv=<optimized out>) at main.c:2533</div>
<div>(gdb) </div>
</div>
<div><br>
</div>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Tue, May 20, 2014 at 11:33 AM, Peter
Villeneuve <span dir="ltr"><<a href="mailto:petervnv1@gmail.com" target="_blank">petervnv1@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi,
<div><br>
</div>
<div>I posted previously on this issue but never got any
replies.</div>
<div><br>
</div>
<div>Has anyone had this experience with 4.1?</div>
<div>It seems that as soon as a UAC tries to register,
Kamailio segfaults:</div>
<div><br>
</div>
<div>
<div>May 20 09:41:00 vmhost /usr/sbin/kamailio[27806]:
ALERT: <core> [main.c:775]: handle_sigs(): child
process 27813 exited by a signal 11</div>
<div>May 20 09:41:00 vmhost /usr/sbin/kamailio[27806]:
ALERT: <core> [main.c:778]: handle_sigs(): core
was not generated</div>
<div>May 20 09:41:00 vmhost /usr/sbin/kamailio[27806]:
INFO: <core> [main.c:790]: handle_sigs(): INFO:
terminating due to SIGCHLD</div>
<div>May 20 09:41:00 vmhost kernel: [251087.555502]
kamailio[27813]: <b>segfault at</b> 7fa5d1d0a1dc ip
0000000000536104 sp 00007fffaade6c20 error 4 in
kamailio[400000+27a000]</div>
<div>May 20 09:41:00 vmhost /usr/sbin/kamailio[27812]:
INFO: <core> [main.c:841]: sig_usr(): INFO:
signal 15 received</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><div class=""><pre>_______________________________________________
sr-dev mailing list
<a href="mailto:sr-dev@lists.sip-router.org" target="_blank">sr-dev@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a>
</pre>
</div></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<pre cols="72">--
Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
</font></span></div>
<br>_______________________________________________<br>
sr-dev mailing list<br>
<a href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
<br></blockquote></div><br></div>