<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I just pushed a patch on master branch to allow listening on tls
without tcp sockets. Maybe you can test it and report if works ok
(doing some traffic over tls as well). Next is the link to the
commit:<br>
<br>
-
<a class="moz-txt-link-freetext" href="http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=eea7f9d04090a736c8a0f2b2a350c08635cc8e39">http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=eea7f9d04090a736c8a0f2b2a350c08635cc8e39</a><br>
<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 20/05/14 20:55, Peter Villeneuve
wrote:<br>
</div>
<blockquote
cite="mid:CAEiJqQPSOYTsCbPYmV0g0iQh4JMkhakFOxdwqdxRRyzQx69fdw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_quote">
<div dir="ltr">Ah, that would explain it then.
<div><br>
</div>
<div>Thanks, working now.</div>
<div><br>
</div>
<div>Mystery solved.</div>
</div>
<div class="HOEnZb">
<div class="h5">
<div class="gmail_extra">
<br>
<br>
<div class="gmail_quote">On Tue, May 20, 2014 at 6:26
PM, Daniel-Constantin Mierla <span dir="ltr"><<a
moz-do-not-send="true"
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"> This is
related to:<br>
<br>
<a moz-do-not-send="true"
href="http://sip-router.org/tracker/index.php?do=details&task_id=425&project=1&order=id&sort=desc"
target="_blank">http://sip-router.org/tracker/index.php?do=details&task_id=425&project=1&order=id&sort=desc</a><br>
<br>
For now, can you add?<br>
<br>
listen=tcp:<a moz-do-not-send="true"
href="http://127.0.0.1:5060" target="_blank">127.0.0.1:5060</a><br>
<br>
This will not expose any tcp to outside world.<br>
<br>
Cheers,<br>
Daniel
<div>
<div><br>
<br>
<div>On 20/05/14 19:08, Peter Villeneuve
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">I'm listening on TLS
only, listen=tls:my-public.ip:5071
<div>I don't see any tcp_children in
kamailio.cfg at all. I have fork=yes and
children=4</div>
<div><br>
</div>
<div>
<div>(gdb) frame 1</div>
<div>#1 0x00000000005328da in
send2child (tcpconn=0x7f05815ddda8) at
tcp_main.c:3979</div>
<div>3979 in tcp_main.c</div>
<div>(gdb) p tcp_children[0]</div>
<div>$1 = {pid = 775369265, proc_no =
774909488, unix_sock = 926351409, busy
= 12851, mysocket = 0xc0c0c0c0, n_reqs
= -1412567058}</div>
<div><br>
</div>
<div> Thanks</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Tue, May 20,
2014 at 5:37 PM, Daniel-Constantin
Mierla <span dir="ltr"><<a
moz-do-not-send="true"
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">
What is the value of tcp_children on
your config? Do you listen on a tcp
socket?<br>
<br>
I need also more from gdb:<br>
<br>
frame 1<br>
p tcp_children[0]<span><font
color="#888888"><br>
<br>
Daniel</font></span>
<div>
<div><br>
<br>
<div>On 20/05/14 17:44, Peter
Villeneuve wrote:<br>
</div>
<blockquote type="cite">
<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
moz-do-not-send="true"
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><br>
<br>
<div>On 20/05/14
15:59, Peter
Villeneuve
wrote:<br>
</div>
</div>
</div>
<blockquote
type="cite">
<div>
<div>
<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
moz-do-not-send="true" 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
moz-do-not-send="true"
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
moz-do-not-send="true" 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>
<pre>_______________________________________________
sr-dev mailing list
<a moz-do-not-send="true" href="mailto:sr-dev@lists.sip-router.org" target="_blank">sr-dev@lists.sip-router.org</a>
<a moz-do-not-send="true" 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><font
color="#888888"> <br>
<pre cols="72">--
Daniel-Constantin Mierla - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" 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
moz-do-not-send="true"
href="mailto:sr-dev@lists.sip-router.org" target="_blank">sr-dev@lists.sip-router.org</a><br>
<a
moz-do-not-send="true"
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>
</blockquote>
<br>
<pre cols="72">--
Daniel-Constantin Mierla - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<pre cols="72">--
Daniel-Constantin Mierla - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
sr-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a>
</pre>
</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></pre>
</body>
</html>