Hi All,
I am trying to send two Rx_AAR after Kamailio receive 200 OK with SDP:
The first one for termination part is worked well, but in MT_aar_reply route block, it's not works. The one I marked with red color, is there anyone know how configure Kamailio to send two Rx_AAR after receive 200 OK SDP?
Thanks a lot!! Victor +++++++++++++++++++++++++++++++++++++++++++++++++++++++
if (t_check_status("200")){ xlog("L_DBG", "IMS: Received 200 nside orig_initial_reply\n");
$var(aarret) = Rx_AAR("MT_aar_reply", "term","",2); xlog("L_DBG", "AAR return code is $var(aarret)\n"); } on MT_aar_reply block:
route[MT_aar_reply] { #this is async so to know status we have to check the reply avp switch ($avp(s:aar_return_code)) { case 1: xlog("L_DBG", "Diameter: Term AAR success on media authorization\n"); break; default: xlog("L_ERR", "IMS: AAR failed Term\n"); xlog("L_ERR", "IMS: ttag: "+ "$avp(TTAG_CUSTOM_AVP)"); xlog("L_ERR", "IMS: ftag: "+ "$avp(FTAG_CUSTOM_AVP)"); xlog("L_ERR", "IMS: callid: "+ "$avp(CALLID_CUSTOM_AVP)"); #comment this if you want to allow even if Rx fails if(dlg_get("$avp(CALLID_CUSTOM_AVP)","$avp(FTAG_CUSTOM_AVP)","$avp(TTAG_CUSTOM_AVP)")){ dlg_terminate("all", "Sorry no QoS available"); exit; } $var(aarret) = Rx_AAR("MO_aar_reply", "term","",2); xlog("L_DBG", "AAR return code is $var(aarret)\n");
Hi,
the IMS_QOS Module has not been designed to be used twice on a single session. As it was designed to work on a Proxy-CSCF, you should have an originating and one terminating leg, which are two different sessions on the same server (after going through the IMS-Core).
Thanks, Carsten
2018-02-12 4:27 GMT+01:00 Lv, Victor (NSB - CN/Qingdao) victor.lv@nokia-sbell.com:
Hi All,
I am trying to send two Rx_AAR after Kamailio receive 200 OK with SDP:
The first one for termination part is worked well, but in MT_aar_reply route block, it’s not works.
The one I marked with red color, is there anyone know how configure Kamailio to send two Rx_AAR after receive 200 OK SDP?
Thanks a lot!!
Victor
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
if (t_check_status("200")){
xlog("L_DBG", "IMS: Received 200 nside
orig_initial_reply\n");
$var(aarret) = Rx_AAR("MT_aar_reply", "term","",2); xlog("L_DBG", "AAR return code is $var(aarret)\n");
}
on MT_aar_reply block:
route[MT_aar_reply]
{
#this is async so to know status we have to check the reply avp switch ($avp(s:aar_return_code)) { case 1: xlog("L_DBG", "Diameter: Term AAR success on media
authorization\n");
break; default: xlog("L_ERR", "IMS: AAR failed Term\n"); xlog("L_ERR", "IMS: ttag: "+
"$avp(TTAG_CUSTOM_AVP)");
xlog("L_ERR", "IMS: ftag: "+
"$avp(FTAG_CUSTOM_AVP)");
xlog("L_ERR", "IMS: callid: "+
"$avp(CALLID_CUSTOM_AVP)");
#comment this if you want to allow even if Rx fails
if(dlg_get("$avp(CALLID_CUSTOM_AVP)","$avp(FTAG_CUSTOM_AVP)","$avp(TTAG_CUSTOM_AVP)")){
dlg_terminate("all", "Sorry no QoS
available");
exit; } $var(aarret) = Rx_AAR("MO_aar_reply", "term","",2); xlog("L_DBG", "AAR return code is $var(aarret)\n");
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hi all,
i'm using kamailio 4.4.6 , and when I call the rpc dialog "profile_list_dlgs" , sometimes I have a segmentation fault.
Can you help me to understand why it happened ?
Thanks to all.
This is the dump:
Program terminated with signal 11, Segmentation fault.
#0 0x00007f49ee062e07 in internal_rpc_print_dlg (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960, dlg=0x7f49ef89ba38, with_context=0) at dialog.c:1548
1548 if (pl->profile->has_value) {
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.192.el6.x86_64 keyutils-libs-1.4-5.el6.x86_64 krb5-libs-1.10.3-57.el6.x86_64 libcom_err-1.41.12-22.el6.x86_64 libselinux-2.0.94-7.el6.x86_64 libxml2-2.7.6-21.el6_8.1.x86_64 lua-5.1.4-4.1.el6.x86_64 mysql-libs-5.1.73-7.el6.x86_64 nss-softokn-freebl-3.14.3-23.3.el6_8.x86_64 openssl-1.0.1e-48.el6_8.3.x86_64 zlib-1.2.3-29.el6.x86_64
(gdb) bt full
#0 0x00007f49ee062e07 in internal_rpc_print_dlg (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960, dlg=0x7f49ef89ba38, with_context=0) at dialog.c:1548
rpc_cb = {rpc = 0x3031ea0, c = 0x400}
h = 0x2d21e60
sh = 0x2d1db70
ssh = 0x2d20050
pl = 0x7f49ef18c588
var = 0x0
__FUNCTION__ = "internal_rpc_print_dlg"
#1 0x00007f49ee0637b3 in internal_rpc_profile_print_dlgs (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960, profile_name=0x7fff65fcb1a0, value=0x0)
at dialog.c:1681
profile = 0x7f49ee5aca88
ph = 0x7f49eeb5b670
i = 2
#2 0x00007f49ee063e64 in rpc_profile_print_dlgs (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960) at dialog.c:1785
profile_name = {s = 0x3031e80 "outbound", len = 8}
value = {s = 0x0, len = 0}
#3 0x00007f49ed78960f in jsonrpc_dispatch (msg=0x7fff65fcc5a0, s1=0x0, s2=0x0) at jsonrpc-s_mod.c:1098
rpce = 0x7f4a13212d30
ctx = 0x7f49ed99e960
ret = 0
nj = 0x3031ab0
val = {s = 0x3032030 "dlg.profile_list", len = 16}
__FUNCTION__ = "jsonrpc_dispatch"
#4 0x000000000041f75d in do_action (h=0x7fff65fcc4c0, a=0x7f4a13189e28, msg=0x7fff65fcc5a0) at action.c:1054
Hello,
can you get from gdb the output of next commands:
p *pl
p *pl->profile
Cheers, Daniel
On 01.03.18 10:52, pars3c wrote:
Hi all,
i’m using kamailio 4.4.6 , and when I call the rpc dialog “*profile_list_dlgs” , sometimes *I have a segmentation fault.
Can you help me to understand why it happened ?
Thanks to all.
This is the dump:
Program terminated with signal 11, Segmentation fault.
#0 0x00007f49ee062e07 in internal_rpc_print_dlg (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960, dlg=0x7f49ef89ba38, with_context=0) at dialog.c:1548
1548 if (pl->profile->has_value) {
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.192.el6.x86_64 keyutils-libs-1.4-5.el6.x86_64 krb5-libs-1.10.3-57.el6.x86_64 libcom_err-1.41.12-22.el6.x86_64 libselinux-2.0.94-7.el6.x86_64 libxml2-2.7.6-21.el6_8.1.x86_64 lua-5.1.4-4.1.el6.x86_64 mysql-libs-5.1.73-7.el6.x86_64 nss-softokn-freebl-3.14.3-23.3.el6_8.x86_64 openssl-1.0.1e-48.el6_8.3.x86_64 zlib-1.2.3-29.el6.x86_64
(gdb) bt full
#0 0x00007f49ee062e07 in internal_rpc_print_dlg (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960, dlg=0x7f49ef89ba38, with_context=0) at dialog.c:1548
rpc_cb = {rpc = 0x3031ea0, c = 0x400}
h = 0x2d21e60
sh = 0x2d1db70
ssh = 0x2d20050
pl = 0x7f49ef18c588
var = 0x0
__FUNCTION__ = "internal_rpc_print_dlg"
#1 0x00007f49ee0637b3 in internal_rpc_profile_print_dlgs (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960, profile_name=0x7fff65fcb1a0, value=0x0)
at dialog.c:1681
profile = 0x7f49ee5aca88
ph = 0x7f49eeb5b670
i = 2
#2 0x00007f49ee063e64 in rpc_profile_print_dlgs (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960) at dialog.c:1785
profile_name = {s = 0x3031e80 "outbound", len = 8}
value = {s = 0x0, len = 0}
#3 0x00007f49ed78960f in jsonrpc_dispatch (msg=0x7fff65fcc5a0, s1=0x0, s2=0x0) at jsonrpc-s_mod.c:1098
rpce = 0x7f4a13212d30
ctx = 0x7f49ed99e960
ret = 0
nj = 0x3031ab0
val = {s = 0x3032030 "dlg.profile_list", len = 16}
__FUNCTION__ = "jsonrpc_dispatch"
#4 0x000000000041f75d in do_action (h=0x7fff65fcc4c0, a=0x7f4a13189e28, msg=0x7fff65fcc5a0) at action.c:1054
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hi,
tanks for your support, this is the result :
#0 0x00007f49ee062e07 in internal_rpc_print_dlg (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960, dlg=0x7f49ef89ba38, with_context=0) at dialog.c:1548
1548 if (pl->profile->has_value) {
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.192.el6.x86_64 keyutils-libs-1.4-5.el6.x86_64 krb5-libs-1.10.3-57.el6.x86_64 libcom_err-1.41.12-22.el6.x86_64 libselinux-2.0.94-7.el6.x86_64 libxml2-2.7.6-21.el6_8.1.x86_64 lua-5.1.4-4.1.el6.x86_64 mysql-libs-5.1.73-7.el6.x86_64 nss-softokn-freebl-3.14.3-23.3.el6_8.x86_64 openssl-1.0.1e-48.el6_8.3.x86_64 zlib-1.2.3-29.el6.x86_64
(gdb) p *pl
$1 = {hash_linker = {value = {s = 0x113ef180024 <Address 0x113ef180024 out of bounds>, len = -277948848}, dlg = 0x7f49ef18c5b8,
puid = "\n\000\000\000-5a9\303\305\030\357I\177\000\000S\000\000\000\060\062\060\06 3in_routing\000CR=6@", puid_len = 1598313555,
expires = 3977578104333875508, flags = 876097589, linker = 0x422d30263936313d, next = 0x3d50542c36343d4f, prev = 0x52542c3634303730,
hash = 1028345429}, next = 0x50542c36343d4f42, profile = 0x542c36343037303d}
(gdb) p *pl->profile
Cannot access memory at address 0x542c36343037303d
Regards
Da: Daniel-Constantin Mierla [mailto:miconda@gmail.com] Inviato: giovedì 1 marzo 2018 14:36 A: Kamailio (SER) - Users Mailing List; pars3c Oggetto: Re: [SR-Users] Segmentation fault Dialog RPC
Hello,
can you get from gdb the output of next commands:
p *pl
p *pl->profile
Cheers, Daniel
On 01.03.18 10:52, pars3c wrote:
Hi all,
im using kamailio 4.4.6 , and when I call the rpc dialog profile_list_dlgs , sometimes I have a segmentation fault.
Can you help me to understand why it happened ?
Thanks to all.
This is the dump:
Program terminated with signal 11, Segmentation fault.
#0 0x00007f49ee062e07 in internal_rpc_print_dlg (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960, dlg=0x7f49ef89ba38, with_context=0) at dialog.c:1548
1548 if (pl->profile->has_value) {
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.192.el6.x86_64 keyutils-libs-1.4-5.el6.x86_64 krb5-libs-1.10.3-57.el6.x86_64 libcom_err-1.41.12-22.el6.x86_64 libselinux-2.0.94-7.el6.x86_64 libxml2-2.7.6-21.el6_8.1.x86_64 lua-5.1.4-4.1.el6.x86_64 mysql-libs-5.1.73-7.el6.x86_64 nss-softokn-freebl-3.14.3-23.3.el6_8.x86_64 openssl-1.0.1e-48.el6_8.3.x86_64 zlib-1.2.3-29.el6.x86_64
(gdb) bt full
#0 0x00007f49ee062e07 in internal_rpc_print_dlg (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960, dlg=0x7f49ef89ba38, with_context=0) at dialog.c:1548
rpc_cb = {rpc = 0x3031ea0, c = 0x400}
h = 0x2d21e60
sh = 0x2d1db70
ssh = 0x2d20050
pl = 0x7f49ef18c588
var = 0x0
__FUNCTION__ = "internal_rpc_print_dlg"
#1 0x00007f49ee0637b3 in internal_rpc_profile_print_dlgs (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960, profile_name=0x7fff65fcb1a0, value=0x0)
at dialog.c:1681
profile = 0x7f49ee5aca88
ph = 0x7f49eeb5b670
i = 2
#2 0x00007f49ee063e64 in rpc_profile_print_dlgs (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960) at dialog.c:1785
profile_name = {s = 0x3031e80 "outbound", len = 8}
value = {s = 0x0, len = 0}
#3 0x00007f49ed78960f in jsonrpc_dispatch (msg=0x7fff65fcc5a0, s1=0x0, s2=0x0) at jsonrpc-s_mod.c:1098
rpce = 0x7f4a13212d30
ctx = 0x7f49ed99e960
ret = 0
nj = 0x3031ab0
val = {s = 0x3032030 "dlg.profile_list", len = 16}
__FUNCTION__ = "jsonrpc_dispatch"
#4 0x000000000041f75d in do_action (h=0x7fff65fcc4c0, a=0x7f4a13189e28, msg=0x7fff65fcc5a0) at action.c:1054
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hi,
tanks for your support, this is the result to the commands p *pl and p *pl->profile
#0 0x00007f49ee062e07 in internal_rpc_print_dlg (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960, dlg=0x7f49ef89ba38, with_context=0) at dialog.c:1548
1548 if (pl->profile->has_value) {
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.192.el6.x86_64 keyutils-libs-1.4-5.el6.x86_64 krb5-libs-1.10.3-57.el6.x86_64 libcom_err-1.41.12-22.el6.x86_64 libselinux-2.0.94-7.el6.x86_64 libxml2-2.7.6-21.el6_8.1.x86_64 lua-5.1.4-4.1.el6.x86_64 mysql-libs-5.1.73-7.el6.x86_64 nss-softokn-freebl-3.14.3-23.3.el6_8.x86_64 openssl-1.0.1e-48.el6_8.3.x86_64 zlib-1.2.3-29.el6.x86_64
(gdb) p *pl
$1 = {hash_linker = {value = {s = 0x113ef180024 <Address 0x113ef180024 out of bounds>, len = -277948848}, dlg = 0x7f49ef18c5b8,
puid = "\n\000\000\000-5a9\303\305\030\357I\177\000\000S\000\000\000\060\062\060\06 3in_routing\000CR=6@", puid_len = 1598313555,
expires = 3977578104333875508, flags = 876097589, linker = 0x422d30263936313d, next = 0x3d50542c36343d4f, prev = 0x52542c3634303730,
hash = 1028345429}, next = 0x50542c36343d4f42, profile = 0x542c36343037303d}
(gdb) p *pl->profile
Cannot access memory at address 0x542c36343037303d
Regards
Da: Daniel-Constantin Mierla [mailto:miconda@gmail.com] Inviato: giovedì 1 marzo 2018 14:36 A: Kamailio (SER) - Users Mailing List; pars3c Oggetto: Re: [SR-Users] Segmentation fault Dialog RPC
Hello,
can you get from gdb the output of next commands:
p *pl
p *pl->profile
Cheers, Daniel
On 01.03.18 10:52, pars3c wrote:
Hi all,
im using kamailio 4.4.6 , and when I call the rpc dialog profile_list_dlgs , sometimes I have a segmentation fault.
Can you help me to understand why it happened ?
Thanks to all.
This is the dump:
Program terminated with signal 11, Segmentation fault.
#0 0x00007f49ee062e07 in internal_rpc_print_dlg (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960, dlg=0x7f49ef89ba38, with_context=0) at dialog.c:1548
1548 if (pl->profile->has_value) {
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.192.el6.x86_64 keyutils-libs-1.4-5.el6.x86_64 krb5-libs-1.10.3-57.el6.x86_64 libcom_err-1.41.12-22.el6.x86_64 libselinux-2.0.94-7.el6.x86_64 libxml2-2.7.6-21.el6_8.1.x86_64 lua-5.1.4-4.1.el6.x86_64 mysql-libs-5.1.73-7.el6.x86_64 nss-softokn-freebl-3.14.3-23.3.el6_8.x86_64 openssl-1.0.1e-48.el6_8.3.x86_64 zlib-1.2.3-29.el6.x86_64
(gdb) bt full
#0 0x00007f49ee062e07 in internal_rpc_print_dlg (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960, dlg=0x7f49ef89ba38, with_context=0) at dialog.c:1548
rpc_cb = {rpc = 0x3031ea0, c = 0x400}
h = 0x2d21e60
sh = 0x2d1db70
ssh = 0x2d20050
pl = 0x7f49ef18c588
var = 0x0
__FUNCTION__ = "internal_rpc_print_dlg"
#1 0x00007f49ee0637b3 in internal_rpc_profile_print_dlgs (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960, profile_name=0x7fff65fcb1a0, value=0x0)
at dialog.c:1681
profile = 0x7f49ee5aca88
ph = 0x7f49eeb5b670
i = 2
#2 0x00007f49ee063e64 in rpc_profile_print_dlgs (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960) at dialog.c:1785
profile_name = {s = 0x3031e80 "outbound", len = 8}
value = {s = 0x0, len = 0}
#3 0x00007f49ed78960f in jsonrpc_dispatch (msg=0x7fff65fcc5a0, s1=0x0, s2=0x0) at jsonrpc-s_mod.c:1098
rpce = 0x7f4a13212d30
ctx = 0x7f49ed99e960
ret = 0
nj = 0x3031ab0
val = {s = 0x3032030 "dlg.profile_list", len = 16}
__FUNCTION__ = "jsonrpc_dispatch"
#4 0x000000000041f75d in do_action (h=0x7fff65fcc4c0, a=0x7f4a13189e28, msg=0x7fff65fcc5a0) at action.c:1054
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hello,
Is there any chance that you can test with 5.0 or 5.5? Just to rule out if there is an issue that was already fixed. These are the two stable series maintained at this moment.
Otherwise, open an issue on tracker at github.com/kamailio/kamailio, I was rather busy lately and this can end up being forgotten.
Cheers, Daniel
On 05.03.18 14:25, pars3c wrote:
Hi,
tanks for your support, this is the result to the commands p *pl and p *pl->profile
#0 0x00007f49ee062e07 in internal_rpc_print_dlg (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960, dlg=0x7f49ef89ba38, with_context=0) at dialog.c:1548
1548 if (pl->profile->has_value) {
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.192.el6.x86_64 keyutils-libs-1.4-5.el6.x86_64 krb5-libs-1.10.3-57.el6.x86_64 libcom_err-1.41.12-22.el6.x86_64 libselinux-2.0.94-7.el6.x86_64 libxml2-2.7.6-21.el6_8.1.x86_64 lua-5.1.4-4.1.el6.x86_64 mysql-libs-5.1.73-7.el6.x86_64 nss-softokn-freebl-3.14.3-23.3.el6_8.x86_64 openssl-1.0.1e-48.el6_8.3.x86_64 zlib-1.2.3-29.el6.x86_64
(gdb) p *pl
$1 = {hash_linker = {value = {s = 0x113ef180024 <Address 0x113ef180024 out of bounds>, len = -277948848}, dlg = 0x7f49ef18c5b8,
puid = "\n\000\000\000-5a9\303\305\030\357I\177\000\000S\000\000\000\060\062\060\063in_routing\000CR=6@", puid_len = 1598313555,
expires = 3977578104333875508, flags = 876097589, linker = 0x422d30263936313d, next = 0x3d50542c36343d4f, prev = 0x52542c3634303730,
hash = 1028345429}, next = 0x50542c36343d4f42, profile = 0x542c36343037303d}
(gdb) p *pl->profile
Cannot access memory at address 0x542c36343037303d
Regards
*Da:*Daniel-Constantin Mierla [mailto:miconda@gmail.com] *Inviato:* giovedì 1 marzo 2018 14:36 *A:* Kamailio (SER) - Users Mailing List; pars3c *Oggetto:* Re: [SR-Users] Segmentation fault Dialog RPC
Hello,
can you get from gdb the output of next commands:
p *pl
p *pl->profile
Cheers, Daniel
On 01.03.18 10:52, pars3c wrote:
Hi all, i’m using kamailio 4.4.6 , and when I call the rpc dialog “*profile_list_dlgs” , sometimes *I have a segmentation fault. Can you help me to understand why it happened ? Thanks to all. This is the dump: Program terminated with signal 11, Segmentation fault. #0 0x00007f49ee062e07 in internal_rpc_print_dlg (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960, dlg=0x7f49ef89ba38, with_context=0) at dialog.c:1548 1548 if (pl->profile->has_value) { Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.192.el6.x86_64 keyutils-libs-1.4-5.el6.x86_64 krb5-libs-1.10.3-57.el6.x86_64 libcom_err-1.41.12-22.el6.x86_64 libselinux-2.0.94-7.el6.x86_64 libxml2-2.7.6-21.el6_8.1.x86_64 lua-5.1.4-4.1.el6.x86_64 mysql-libs-5.1.73-7.el6.x86_64 nss-softokn-freebl-3.14.3-23.3.el6_8.x86_64 openssl-1.0.1e-48.el6_8.3.x86_64 zlib-1.2.3-29.el6.x86_64 (gdb) bt full #0 0x00007f49ee062e07 in internal_rpc_print_dlg (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960, dlg=0x7f49ef89ba38, with_context=0) at dialog.c:1548 rpc_cb = {rpc = 0x3031ea0, c = 0x400} h = 0x2d21e60 sh = 0x2d1db70 ssh = 0x2d20050 pl = 0x7f49ef18c588 var = 0x0 __FUNCTION__ = "internal_rpc_print_dlg" #1 0x00007f49ee0637b3 in internal_rpc_profile_print_dlgs (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960, profile_name=0x7fff65fcb1a0, value=0x0) at dialog.c:1681 profile = 0x7f49ee5aca88 ph = 0x7f49eeb5b670 i = 2 #2 0x00007f49ee063e64 in rpc_profile_print_dlgs (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960) at dialog.c:1785 profile_name = {s = 0x3031e80 "outbound", len = 8} value = {s = 0x0, len = 0} #3 0x00007f49ed78960f in jsonrpc_dispatch (msg=0x7fff65fcc5a0, s1=0x0, s2=0x0) at jsonrpc-s_mod.c:1098 rpce = 0x7f4a13212d30 ctx = 0x7f49ed99e960 ret = 0 nj = 0x3031ab0 val = {s = 0x3032030 "dlg.profile_list", len = 16} __FUNCTION__ = "jsonrpc_dispatch" #4 0x000000000041f75d in do_action (h=0x7fff65fcc4c0, a=0x7f4a13189e28, msg=0x7fff65fcc5a0) at action.c:1054 _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org <mailto:sr-users@lists.kamailio.org> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla www.twitter.com/miconda http://www.twitter.com/miconda -- www.linkedin.com/in/miconda http://www.linkedin.com/in/miconda Kamailio Advanced Training - March 5-7, 2018, Berlin - www.asipto.com http://www.asipto.com Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com http://www.kamailioworld.com
Hi,
in this moment , i cant upgrade to the new version, I should make too many changes and tests, Im working for this upgrade.
In the meanwhile, Ive opened an issue on github.
Many thanks
Reagrds
Da: Daniel-Constantin Mierla [mailto:miconda@gmail.com] Inviato: lunedì 12 marzo 2018 18:03 A: pars3c; 'Kamailio (SER) - Users Mailing List' Oggetto: Re: R: [SR-Users] Segmentation fault Dialog RPC
Hello,
Is there any chance that you can test with 5.0 or 5.5? Just to rule out if there is an issue that was already fixed. These are the two stable series maintained at this moment.
Otherwise, open an issue on tracker at github.com/kamailio/kamailio, I was rather busy lately and this can end up being forgotten.
Cheers, Daniel
On 05.03.18 14:25, pars3c wrote:
Hi,
tanks for your support, this is the result to the commands p *pl and p *pl->profile
#0 0x00007f49ee062e07 in internal_rpc_print_dlg (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960, dlg=0x7f49ef89ba38, with_context=0) at dialog.c:1548
1548 if (pl->profile->has_value) {
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.192.el6.x86_64 keyutils-libs-1.4-5.el6.x86_64 krb5-libs-1.10.3-57.el6.x86_64 libcom_err-1.41.12-22.el6.x86_64 libselinux-2.0.94-7.el6.x86_64 libxml2-2.7.6-21.el6_8.1.x86_64 lua-5.1.4-4.1.el6.x86_64 mysql-libs-5.1.73-7.el6.x86_64 nss-softokn-freebl-3.14.3-23.3.el6_8.x86_64 openssl-1.0.1e-48.el6_8.3.x86_64 zlib-1.2.3-29.el6.x86_64
(gdb) p *pl
$1 = {hash_linker = {value = {s = 0x113ef180024 <Address 0x113ef180024 out of bounds>, len = -277948848}, dlg = 0x7f49ef18c5b8,
puid = "\n\000\000\000-5a9\303\305\030\357I\177\000\000S\000\000\000\060\062\060\06 3in_routing\000CR=6@", puid_len = 1598313555,
expires = 3977578104333875508, flags = 876097589, linker = 0x422d30263936313d, next = 0x3d50542c36343d4f, prev = 0x52542c3634303730,
hash = 1028345429}, next = 0x50542c36343d4f42, profile = 0x542c36343037303d}
(gdb) p *pl->profile
Cannot access memory at address 0x542c36343037303d
Regards
Da: Daniel-Constantin Mierla [mailto:miconda@gmail.com] Inviato: giovedì 1 marzo 2018 14:36 A: Kamailio (SER) - Users Mailing List; pars3c Oggetto: Re: [SR-Users] Segmentation fault Dialog RPC
Hello,
can you get from gdb the output of next commands:
p *pl
p *pl->profile
Cheers, Daniel
On 01.03.18 10:52, pars3c wrote:
Hi all,
im using kamailio 4.4.6 , and when I call the rpc dialog profile_list_dlgs , sometimes I have a segmentation fault.
Can you help me to understand why it happened ?
Thanks to all.
This is the dump:
Program terminated with signal 11, Segmentation fault.
#0 0x00007f49ee062e07 in internal_rpc_print_dlg (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960, dlg=0x7f49ef89ba38, with_context=0) at dialog.c:1548
1548 if (pl->profile->has_value) {
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.192.el6.x86_64 keyutils-libs-1.4-5.el6.x86_64 krb5-libs-1.10.3-57.el6.x86_64 libcom_err-1.41.12-22.el6.x86_64 libselinux-2.0.94-7.el6.x86_64 libxml2-2.7.6-21.el6_8.1.x86_64 lua-5.1.4-4.1.el6.x86_64 mysql-libs-5.1.73-7.el6.x86_64 nss-softokn-freebl-3.14.3-23.3.el6_8.x86_64 openssl-1.0.1e-48.el6_8.3.x86_64 zlib-1.2.3-29.el6.x86_64
(gdb) bt full
#0 0x00007f49ee062e07 in internal_rpc_print_dlg (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960, dlg=0x7f49ef89ba38, with_context=0) at dialog.c:1548
rpc_cb = {rpc = 0x3031ea0, c = 0x400}
h = 0x2d21e60
sh = 0x2d1db70
ssh = 0x2d20050
pl = 0x7f49ef18c588
var = 0x0
__FUNCTION__ = "internal_rpc_print_dlg"
#1 0x00007f49ee0637b3 in internal_rpc_profile_print_dlgs (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960, profile_name=0x7fff65fcb1a0, value=0x0)
at dialog.c:1681
profile = 0x7f49ee5aca88
ph = 0x7f49eeb5b670
i = 2
#2 0x00007f49ee063e64 in rpc_profile_print_dlgs (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960) at dialog.c:1785
profile_name = {s = 0x3031e80 "outbound", len = 8}
value = {s = 0x0, len = 0}
#3 0x00007f49ed78960f in jsonrpc_dispatch (msg=0x7fff65fcc5a0, s1=0x0, s2=0x0) at jsonrpc-s_mod.c:1098
rpce = 0x7f4a13212d30
ctx = 0x7f49ed99e960
ret = 0
nj = 0x3031ab0
val = {s = 0x3032030 "dlg.profile_list", len = 16}
__FUNCTION__ = "jsonrpc_dispatch"
#4 0x000000000041f75d in do_action (h=0x7fff65fcc4c0, a=0x7f4a13189e28, msg=0x7fff65fcc5a0) at action.c:1054
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Hello,
the question about testing with 5.1 was more like doing it on a separate instance, a testing server, just to see if you can reproduce it. I understand that upgrading the production can take time, but having a second server just for testing could be feasable (e.g., running inside a virtual machine like virtualbox or via docker).
Cheers, Daniel
On 13.03.18 18:05, pars3c wrote:
Hi,
in this moment , i can’t upgrade to the new version, I should make too many changes and tests, I’m working for this upgrade.
In the meanwhile, I’ve opened an issue on github.
Many thanks
Reagrds
*Da:*Daniel-Constantin Mierla [mailto:miconda@gmail.com] *Inviato:* lunedì 12 marzo 2018 18:03 *A:* pars3c; 'Kamailio (SER) - Users Mailing List' *Oggetto:* Re: R: [SR-Users] Segmentation fault Dialog RPC
Hello,
Is there any chance that you can test with 5.0 or 5.5? Just to rule out if there is an issue that was already fixed. These are the two stable series maintained at this moment.
Otherwise, open an issue on tracker at github.com/kamailio/kamailio, I was rather busy lately and this can end up being forgotten.
Cheers, Daniel
On 05.03.18 14:25, pars3c wrote:
Hi, tanks for your support, this is the result to the commands p *pl and p *pl->profile #0 0x00007f49ee062e07 in internal_rpc_print_dlg (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960, dlg=0x7f49ef89ba38, with_context=0) at dialog.c:1548 1548 if (pl->profile->has_value) { Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.192.el6.x86_64 keyutils-libs-1.4-5.el6.x86_64 krb5-libs-1.10.3-57.el6.x86_64 libcom_err-1.41.12-22.el6.x86_64 libselinux-2.0.94-7.el6.x86_64 libxml2-2.7.6-21.el6_8.1.x86_64 lua-5.1.4-4.1.el6.x86_64 mysql-libs-5.1.73-7.el6.x86_64 nss-softokn-freebl-3.14.3-23.3.el6_8.x86_64 openssl-1.0.1e-48.el6_8.3.x86_64 zlib-1.2.3-29.el6.x86_64 (gdb) p *pl $1 = {hash_linker = {value = {s = 0x113ef180024 <Address 0x113ef180024 out of bounds>, len = -277948848}, dlg = 0x7f49ef18c5b8, puid = "\n\000\000\000-5a9\303\305\030\357I\177\000\000S\000\000\000\060\062\060\063in_routing\000CR=6@", puid_len = 1598313555, expires = 3977578104333875508, flags = 876097589, linker = 0x422d30263936313d, next = 0x3d50542c36343d4f, prev = 0x52542c3634303730, hash = 1028345429}, next = 0x50542c36343d4f42, profile = 0x542c36343037303d} (gdb) p *pl->profile Cannot access memory at address 0x542c36343037303d Regards *Da:*Daniel-Constantin Mierla [mailto:miconda@gmail.com] *Inviato:* giovedì 1 marzo 2018 14:36 *A:* Kamailio (SER) - Users Mailing List; pars3c *Oggetto:* Re: [SR-Users] Segmentation fault Dialog RPC Hello, can you get from gdb the output of next commands: p *pl p *pl->profile Cheers, Daniel On 01.03.18 10:52, pars3c wrote: Hi all, i’m using kamailio 4.4.6 , and when I call the rpc dialog “*profile_list_dlgs” , sometimes *I have a segmentation fault. Can you help me to understand why it happened ? Thanks to all. This is the dump: Program terminated with signal 11, Segmentation fault. #0 0x00007f49ee062e07 in internal_rpc_print_dlg (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960, dlg=0x7f49ef89ba38, with_context=0) at dialog.c:1548 1548 if (pl->profile->has_value) { Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.192.el6.x86_64 keyutils-libs-1.4-5.el6.x86_64 krb5-libs-1.10.3-57.el6.x86_64 libcom_err-1.41.12-22.el6.x86_64 libselinux-2.0.94-7.el6.x86_64 libxml2-2.7.6-21.el6_8.1.x86_64 lua-5.1.4-4.1.el6.x86_64 mysql-libs-5.1.73-7.el6.x86_64 nss-softokn-freebl-3.14.3-23.3.el6_8.x86_64 openssl-1.0.1e-48.el6_8.3.x86_64 zlib-1.2.3-29.el6.x86_64 (gdb) bt full #0 0x00007f49ee062e07 in internal_rpc_print_dlg (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960, dlg=0x7f49ef89ba38, with_context=0) at dialog.c:1548 rpc_cb = {rpc = 0x3031ea0, c = 0x400} h = 0x2d21e60 sh = 0x2d1db70 ssh = 0x2d20050 pl = 0x7f49ef18c588 var = 0x0 __FUNCTION__ = "internal_rpc_print_dlg" #1 0x00007f49ee0637b3 in internal_rpc_profile_print_dlgs (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960, profile_name=0x7fff65fcb1a0, value=0x0) at dialog.c:1681 profile = 0x7f49ee5aca88 ph = 0x7f49eeb5b670 i = 2 #2 0x00007f49ee063e64 in rpc_profile_print_dlgs (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960) at dialog.c:1785 profile_name = {s = 0x3031e80 "outbound", len = 8} value = {s = 0x0, len = 0} #3 0x00007f49ed78960f in jsonrpc_dispatch (msg=0x7fff65fcc5a0, s1=0x0, s2=0x0) at jsonrpc-s_mod.c:1098 rpce = 0x7f4a13212d30 ctx = 0x7f49ed99e960 ret = 0 nj = 0x3031ab0 val = {s = 0x3032030 "dlg.profile_list", len = 16} __FUNCTION__ = "jsonrpc_dispatch" #4 0x000000000041f75d in do_action (h=0x7fff65fcc4c0, a=0x7f4a13189e28, msg=0x7fff65fcc5a0) at action.c:1054 _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org <mailto:sr-users@lists.kamailio.org> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla www.twitter.com/miconda <http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda <http://www.linkedin.com/in/miconda> Kamailio Advanced Training - March 5-7, 2018, Berlin - www.asipto.com <http://www.asipto.com> Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com <http://www.kamailioworld.com>
-- Daniel-Constantin Mierla www.twitter.com/miconda http://www.twitter.com/miconda -- www.linkedin.com/in/miconda http://www.linkedin.com/in/miconda Kamailio Advanced Training - April 16-18, 2018, Berlin - www.asipto.com http://www.asipto.com Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com http://www.kamailioworld.com