[SR-Users] RTPEngine disable/enable crash kamailio

Sergey Basov sergey.v.basov at gmail.com
Thu Feb 2 12:54:43 CET 2017


Hello Daniel,

You can find backtrace in attaced file

Thank you.
--
Best regards,
Sergey Basov                     e-mail: sergey.v.basov at gmail.com

tel: (+38067) 403-62-54


2017-02-02 11:39 GMT+02:00 Daniel-Constantin Mierla <miconda at gmail.com>:
> Hello,
>
> did you get a coredump and can send the backtrace? It is very useful to
> debug, as I don't have same scearios like you.
>
> Cheers,
> Daniel
>
>
> On 02/02/2017 08:11, Ján Füri wrote:
>> Hi,
>> I have the same experience with enabling end disabling rtpengines
>> using commands like kamctl fifo nh_enable_rtpp udp:xyz.
>> I tested in on kamailio 4.4.3
>>
>> Currently I have my rtpengines' IPs in MySQL table. Here I can disable
>> or enable them. After changing parameters in rtpengine's table, I just
>> need to reload it using kamctl fifo nh_reload_rtpp
>>
>> so I use only :
>> kamctl fifo nh_show_rtpp all - for showing active rtpengines
>> kamctl fifo nh_reload_rtpp - for reloading my configuration
>>
>> this works reliably
>>
>> BR,
>> Jan
>>> Hi All.
>>>
>>> I ave just try to temporary disable 1 of 2 RTPEngines.
>>> It was disabled successfully all media dialogs was finished.
>>> But when I have try to enable it I have kamailio crashed with error:
>>> CRITICAL: <core> [pass_fd.c:277]: receive_fd(): EOF on 121
>>>
>>> Does anyone have such issue?
>>>
>>> kamailio 4.4.5 on RHEL 7.2 x86_64
>>> rtpengine 4.4.0 on RHEL 7.2 x86_64
>>>
>>> # kamctl fifo nh_show_rtpp all
>>> which: no gdb in
>>> (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/)
>>>
>>> udp:10.1.23.24:2223::  set=0
>>>          index:: 0
>>>          disabled:: 0
>>>          weight:: 1
>>>          recheck_ticks:: 0
>>> udp:10.1.23.25:2223::  set=0
>>>          index:: 1
>>>          disabled:: 0
>>>          weight:: 1
>>>          recheck_ticks:: 0
>>>
>>> after
>>> # kamctl fifo nh_enable_rtpp udp:10.1.23.25:2223 0
>>> it was successfully disabled with media going on
>>>
>>> after
>>> # kamctl fifo nh_enable_rtpp udp:10.1.23.25:2223 1
>>> I got kamailio crash with error
>>> CRITICAL: <core> [pass_fd.c:277]: receive_fd(): EOF on 121
>>>
>>> sorry I does not have coredump, it is production system.
>>>
>>> my config regarding rtpengine:
>>>
>>> modparam("rtpengine", "rtpengine_allow_op", 1)
>>> modparam("rtpengine", "rtpengine_sock", "udp:10.1.23.24:2223
>>> udp:10.1.23.25:2223")
>>>
>>> Thank you.
>>>
>>> --
>>> Best regards,
>>> Sergey Basov                     e-mail: sergey.v.basov at gmail.com
>>>
>>> _______________________________________________
>>> 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
>>
>>
>> _______________________________________________
>> 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
> www.twitter.com/miconda -- www.linkedin.com/in/miconda
> Kamailio Advanced Training - Mar 6-8 (Europe) and Mar 20-22 (USA) - www.asipto.com
> Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com
>
>
> _______________________________________________
> 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
-------------- next part --------------
Core was generated by `/usr/sbin/kamailio -P /var/run/kamailio.pid -m 256 -M 32 -u kamailio -g kamaili'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007f6f9a6a6a1f in send_rtpp_command (node=0x7f6f88a181a0, dict=0x7f6f9fc8fcb0, outlen=0x7ffd34947b2c) at rtpengine.c:2619
2619                    fds[0].fd = rtpp_socks[node->idx];
Missing separate debuginfos, use: debuginfo-install glibc-2.17-157.el7.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.14.1-26.el7.x86_64 libcom_err-1.42.9-9.el7.x86_64 libgcc-4.8.5-11.el7.x86_64 libselinux-2.5-6.el7.x86_64 libxml2-2.9.1-6.el7_2.3.x86_64 openssl-libs-1.0.1e-60.el7.x86_64 pcre-8.32-15.el7_2.1.x86_64 xz-libs-5.2.2-1.el7.x86_64 zlib-1.2.7-17.el7.x86_64
(gdb) 
(gdb) 
(gdb) 
(gdb) 
(gdb) 
(gdb) 
(gdb) 
(gdb) 
(gdb) 
(gdb) 
(gdb) 
(gdb) 
(gdb) 
(gdb) 
(gdb) backtrace
#0  0x00007f6f9a6a6a1f in send_rtpp_command (node=0x7f6f88a181a0, dict=0x7f6f9fc8fcb0, outlen=0x7ffd34947b2c) at rtpengine.c:2619
#1  0x00007f6f9a690f40 in rtpp_test_ping (node=0x7f6f88a181a0) at rtpengine.c:1041
#2  0x00007f6f9a691227 in mi_enable_rtp_proxy (cmd_tree=0x18b5bf0, param=0x0) at rtpengine.c:1137
#3  0x00007f6f9e26d2b1 in run_mi_cmd (cmd=0x1884030, t=0x18b5bf0) at ../../lib/kmi/mi.h:77
#4  0x00007f6f9e277de9 in mi_fifo_server (fifo_stream=0x18b6560) at fifo_fnc.c:517
#5  0x00007f6f9e26aab7 in fifo_process (rank=1) at mi_fifo.c:270
#6  0x00007f6f9e269b3d in mi_child_init (rank=0) at mi_fifo.c:234
#7  0x0000000000515dbd in init_mod_child (m=0x7f6f9f9d40e8, rank=0) at sr_module.c:921
#8  0x0000000000515ada in init_mod_child (m=0x7f6f9f9d4350, rank=0) at sr_module.c:918
#9  0x0000000000515ada in init_mod_child (m=0x7f6f9f9d4a88, rank=0) at sr_module.c:918
#10 0x0000000000515ada in init_mod_child (m=0x7f6f9f9d6418, rank=0) at sr_module.c:918
#11 0x0000000000515ada in init_mod_child (m=0x7f6f9f9d7048, rank=0) at sr_module.c:918
#12 0x0000000000515ada in init_mod_child (m=0x7f6f9f9d75b8, rank=0) at sr_module.c:918
#13 0x0000000000515ada in init_mod_child (m=0x7f6f9f9d8020, rank=0) at sr_module.c:918
#14 0x0000000000515ada in init_mod_child (m=0x7f6f9f9ddcb8, rank=0) at sr_module.c:918
#15 0x0000000000515ada in init_mod_child (m=0x7f6f9f9de128, rank=0) at sr_module.c:918
#16 0x0000000000515ada in init_mod_child (m=0x7f6f9f9de450, rank=0) at sr_module.c:918
#17 0x0000000000515ada in init_mod_child (m=0x7f6f9f9dec38, rank=0) at sr_module.c:918
#18 0x0000000000515ada in init_mod_child (m=0x7f6f9f9df9e0, rank=0) at sr_module.c:918
#19 0x0000000000515ada in init_mod_child (m=0x7f6f9f9e0430, rank=0) at sr_module.c:918
#20 0x0000000000515ada in init_mod_child (m=0x7f6f9f9e0b38, rank=0) at sr_module.c:918
#21 0x0000000000515ada in init_mod_child (m=0x7f6f9f9e0f00, rank=0) at sr_module.c:918
#22 0x0000000000515ada in init_mod_child (m=0x7f6f9f9e1458, rank=0) at sr_module.c:918
#23 0x0000000000515ada in init_mod_child (m=0x7f6f9f9e2b20, rank=0) at sr_module.c:918
#24 0x0000000000515ada in init_mod_child (m=0x7f6f9f9e30a0, rank=0) at sr_module.c:918
#25 0x0000000000515ada in init_mod_child (m=0x7f6f9f9e3430, rank=0) at sr_module.c:918
#26 0x0000000000515ada in init_mod_child (m=0x7f6f9f9e3a98, rank=0) at sr_module.c:918
#27 0x0000000000515ada in init_mod_child (m=0x7f6f9f9e4130, rank=0) at sr_module.c:918
#28 0x0000000000515ada in init_mod_child (m=0x7f6f9f9e4450, rank=0) at sr_module.c:918
#29 0x0000000000515ada in init_mod_child (m=0x7f6f9f9e4a10, rank=0) at sr_module.c:918
#30 0x0000000000515ada in init_mod_child (m=0x7f6f9f9e4ec0, rank=0) at sr_module.c:918
#31 0x0000000000515ada in init_mod_child (m=0x7f6f9f9e5590, rank=0) at sr_module.c:918
#32 0x0000000000515ada in init_mod_child (m=0x7f6f9f9e5b80, rank=0) at sr_module.c:918
#33 0x0000000000515ada in init_mod_child (m=0x7f6f9f9e7e78, rank=0) at sr_module.c:918
#34 0x0000000000515ada in init_mod_child (m=0x7f6f9f9e8930, rank=0) at sr_module.c:918
#35 0x0000000000515ada in init_mod_child (m=0x7f6f9f9e8c50, rank=0) at sr_module.c:918
#36 0x0000000000515ada in init_mod_child (m=0x7f6f9f9e8fa8, rank=0) at sr_module.c:918
#37 0x0000000000515ada in init_mod_child (m=0x7f6f9f9e9590, rank=0) at sr_module.c:918
#38 0x0000000000515ada in init_mod_child (m=0x7f6f9f9ea178, rank=0) at sr_module.c:918
#39 0x0000000000515ada in init_mod_child (m=0x7f6f9f9ea740, rank=0) at sr_module.c:918
#40 0x0000000000515ada in init_mod_child (m=0x7f6f9f9eaa98, rank=0) at sr_module.c:918
#41 0x0000000000515ada in init_mod_child (m=0x7f6f9f9eb290, rank=0) at sr_module.c:918
#42 0x00000000005160f5 in init_child (rank=0) at sr_module.c:947
#43 0x00000000005065b7 in main_loop () at main.c:1696
#44 0x000000000050ce9d in main (argc=15, argv=0x7ffd349496e8) at main.c:2631
(gdb)


More information about the sr-users mailing list