[SR-Users] segfault when phone registers on TLS

Denis denisnikulin at gmail.com
Thu Nov 15 10:52:45 CET 2012


Hi Daniel,

Thanks for your reply.


> - what is the ssl lib version?
OpenSSL 0.9.8o
> - it is happening all the time you try?
as soon as the phone send package on port 5061 the server crashes.

openssl s_client -debug -connect HOSTNAME:5061 -tls1
crashes Kamailio as well.
> - what are the log messages printed in syslog before the crash?

/opt/kamailio/sbin/kamailio[30278]: ALERT: <core> [main.c:785]: child 
process 30293 exited by a signal 11
/opt/kamailio/sbin/kamailio[30278]: ALERT: <core> [main.c:788]: core was 
not generated
/opt/kamailio/sbin/kamailio[30278]: INFO: <core> [main.c:800]: INFO: 
terminating due to SIGCHLD
/opt/kamailio/sbin/kamailio[30289]: INFO: <core> [main.c:851]: INFO: 
signal 15 received
...
  kernel: [4198986.968458] kamailio[30293]: segfault at 7fdca1334ba4 ip 
0000000000519856 sp 00007fffe7b6fbf0 error 4 in kamailio[400000+236000]

> - can you enable core dumping per process, just to be sure this core 
> is not caused by a kill or children processes?
Can you please advise how I can do that?
>
> Can you try with the default configuration file? Kamailio comes with 
> tls support you just have to enable it -- in kamailio.cfg just add 
> after the first line:
>
> #!define WITH_TLS
I tried and the result is the same.

I just added:
listen=tls:IP.ADDRESS:5061

> I am trying to isolate the situation and the cause of the issue. Few 
> hours ago I used tls on ubuntu 12.04 and all went fine.
I think of trying on the newer OS in the evening.

Thanks,
Den

>
> Cheers,
> Daniel
>
> On 11/14/12 3:00 PM, Denis wrote:
>> Hi,
>> I am using kamailio-3.3.2 on Ubuntu 11.04 x64 and when trying to 
>> connect via TLS from my Yealink phone kamailio crashes with the 
>> following backtrace:
>>
>> Loaded symbols for /lib/x86_64-linux-gnu/libnss_files.so.2
>> Core was generated by `/opt/kamailio/sbin/kamailio'.
>> Program terminated with signal 11, Segmentation fault.
>> #0  handle_ser_child (p=0x7fcbaea2eba0, fd_i=-1) at tcp_main.c:3575
>> 3575        if (unlikely(p->unix_sock<=0)){
>> (gdb) bt
>> #0  handle_ser_child (p=0x7fcbaea2eba0, fd_i=-1) at tcp_main.c:3575
>> #1  0x000000000051e5bc in send2child (tcpconn=0x7f8c001597d8, 
>> ev=<value optimized out>, fd_i=-1) at tcp_main.c:3975
>> #2  handle_tcpconn_ev (tcpconn=0x7f8c001597d8, ev=<value optimized 
>> out>, fd_i=-1) at tcp_main.c:4310
>> #3  0x0000000000527dbc in io_wait_loop_epoll () at io_wait.h:1092
>> #4  tcp_main_loop () at tcp_main.c:4656
>> #5  0x00000000004726f5 in main_loop () at main.c:1727
>> #6  0x000000000047402e in main (argc=<value optimized out>, 
>> argv=<value optimized out>) at main.c:2546
>> (gdb)
>>
>> The manual I am following is 
>> http://www.kamailio.org/dokuwiki/doku.php/tls:create-certificates
>>
>> Thanks,
>> Den
>>
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users at lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
> -- 
> Daniel-Constantin Mierla -http://www.asipto.com
> http://twitter.com/#!/miconda  -http://www.linkedin.com/in/miconda

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20121115/f7466541/attachment-0001.htm>


More information about the sr-users mailing list