Hello,
Is the patch has been ported within 4.1.x?
We were studying the opportunity to move on 4.1 branches.
Regards,
Igor.
De : Igor Potjevlesch [mailto:igor.potjevlesch@gmail.com]
Envoyé : dimanche 30 mars 2014 16:52
À : miconda(a)gmail.com; 'Kamailio (SER) - Users Mailing List'
Objet : RE: [SR-Users] Crash on REGISTER
Hello Daniel,
Looks that GDB works after all. Here is the result of a BT:
#0 0x00000030f2230f30 in escape_string_for_mysql () from
/usr/lib64/mysql/libmysqlclient.so.16
#1 0x00000030f22269c1 in mysql_real_escape_string () from
/usr/lib64/mysql/libmysqlclient.so.16
#2 0x00007f3eac7000e5 in db_mysql_val2str (_c=0x7f3eaca8a6d0, _v=0x7f3ea9489e40,
_s=0x2170beb
"sip.fr','**********','s','172.16.*.***')",
_len=0x7fffee8bdddc) at km_val.c:95
#3 0x00007f3eac2dd141 in db_print_values (_c=0x7f3eaca8a6d0,
_b=0x2170b0c
"'INVITE','95ffcd055e0f78f7d5d397020e89288d3a0fe8be','1695671811','69de-4a5-2272014164728-******-0-91.***.***.***','200','OK','2014-03-27
17:47:29','**********','**********@**.***.***.***','**.***.***."...,
_l=65379, _v=<value optimized out>, _n=15, val2str=0x7f3eac6fffa0
<db_mysql_val2str>) at db_ut.c:318
#4 0x00007f3eac2d8a90 in db_do_insert_cmd (_h=0x7f3eaca8a6d0, _k=<value optimized
out>, _v=0x7f3ea9489ce0, _n=15, val2str=0x7f3eac6fffa0 <db_mysql_val2str>,
submit_query=0x7f3eac6faed0 <db_mysql_submit_query>, mode=0)
at db_query.c:224
#5 0x00007f3eac2d8e00 in db_do_insert (_h=<value optimized out>, _k=<value
optimized out>, _v=<value optimized out>, _n=<value optimized out>,
val2str=<value optimized out>, submit_query=<value optimized out>)
at db_query.c:249
#6 0x00007f3ea92696a9 in acc_db_request (rq=0x7f3e9d2f5ab0) at acc.c:407
#7 0x00007f3ea9271472 in acc_onreply (t=<value optimized out>, type=<value
optimized out>, ps=<value optimized out>) at acc_logic.c:453
#8 tmcb_func (t=<value optimized out>, type=<value optimized out>,
ps=<value optimized out>) at acc_logic.c:541
#9 0x00007f3eab4288ad in run_trans_callbacks_internal (cb_lst=<value optimized
out>, type=512, trans=0x7f3e9852f350, params=0x7fffee8be030) at t_hooks.c:290
#10 0x00007f3eab428a94 in run_trans_callbacks_with_buf (type=<value optimized out>,
rbuf=0x7f3e9852f410, req=<value optimized out>, repl=<value optimized out>,
flags=<value optimized out>) at t_hooks.c:336
#11 0x00007f3eab45a01a in relay_reply (t=<value optimized out>, p_msg=<value
optimized out>, branch=0, msg_status=200, cancel_data=0x7fffee8be3d0, do_put_on_wait=1)
at t_reply.c:1884
#12 0x00007f3eab45ad86 in reply_received (p_msg=0x7f3eaca45940) at t_reply.c:2374
#13 0x0000000000456d54 in do_forward_reply (msg=0x7f3eaca45940, mode=<value optimized
out>) at forward.c:799
#14 0x000000000049f4be in receive_msg (
buf=0x8d9e80 "SIP/2.0 200 OK\r\nVia: SIP/2.0/UDP
***.**.*.*;branch=z9hG4bKfd8f.a6cf4dd7.0\r\nVia: SIP/2.0/UDP
**.***.***.***:5060;rport=5060;branch=z9hG4bK-884-1395938848-3723-175\r\nFrom:
\"**********\"<sip:**********@91.
<sip:**********@91.%22...,%20len=%3cvalue%20optimized%20out> "...,
len=<value optimized out>, rcv_info=0x7fffee8be690) at receive.c:272
#15 0x0000000000532326 in udp_rcv_loop () at udp_server.c:557
#16 0x0000000000467a7a in main_loop () at main.c:1638
#17 0x000000000046a912 in main (argc=<value optimized out>, argv=<value optimized
out>) at main.c:2566
Regards,
Igor.
De : Igor Potjevlesch [ <mailto:igor.potjevlesch@gmail.com>
mailto:igor.potjevlesch@gmail.com]
Envoyé : samedi 29 mars 2014 14:28
À : <mailto:miconda@gmail.com> miconda(a)gmail.com; 'Kamailio (SER) - Users
Mailing List'
Objet : RE: [SR-Users] Crash on REGISTER
Hello Daniel,
Thank you for your answer.
I still not understand why I got the following output when I try to launch GDB:
[…]
Reading symbols from /usr/local/sbin/kamailio...done.
[New Thread 28294]
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/db_mysql.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/f9/f94a798d840b8956b6972d3be7dcd92dae5087
Missing separate debuginfo for /usr/local/lib64/kamailio/libsrdb2.so.1
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/78/5a53c27df430a7875621f7089560958eb5d2cb
Missing separate debuginfo for /usr/local/lib64/kamailio/libsrdb1.so.1
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/65/74d76438ee2576d6aaa449f75ec7d6450ac559
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/mi_fifo.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/6b/6850df300ce539377de8ab2af64b3000a5ab74
Missing separate debuginfo for /usr/local/lib64/kamailio/libkmi.so.1
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/98/e264222ea1a4a713f63513ce7c397fd8e4bedf
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/kex.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/f4/bec7e2c6007bb0efd68c99a84417b2197c320d
Missing separate debuginfo for /usr/local/lib64/kamailio/libkcore.so.1
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/9b/627ac3a6c1c44e20e719deabe84e39e1468765
Missing separate debuginfo for /usr/local/lib64/kamailio/libsrutils.so.1
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/a6/8fa172f0c0b5b97a2fe6885d801370fb89e117
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/corex.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/76/5a1e313d85ba61a74c012341b73807f59b89bf
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/tm.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/2c/3f3f1094a3c35ce6954443300212c2b9efb451
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/tmx.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/2d/4f8243f194fa8a1063b41654c8886b3b1d5a7e
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/sl.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/6f/d6ace1b8ffbc1286d12cbf09c4eea4eb5d2b01
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/rr.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/ab/bb45487abe9e0cf6c260ca8537f5255d371ff8
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/pv.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/8f/5cf186f49cfa5271a85ca58e80ef136d170577
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/maxfwd.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/5f/af21abd98e3ca547997812692bfb6272d809e6
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/usrloc.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/f0/7f53999b3b013bd6a616a2e2d4cc3b47e9a928
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/registrar.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/3a/f0c8124aec2fb0159744aa73c3f7113d228eb6
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/textops.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/61/2e8b3bbab757306390e6d49f3b21a7c00abc17
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/siputils.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/17/4bd4d8ce91bd6c771d367219d69fb5562719bc
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/xlog.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/87/4b54e90716f64f24a17c922ed18083b634cccb
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/sanity.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/63/2b7d4655c887f420f16aa5925a2b2e95cc4dbd
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/ctl.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/41/e2c79915f69dd54d62628fc6417f5acc1620e3
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/cfg_rpc.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/4e/3880373e838a62a10be608e82977c2eaf3b276
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/mi_rpc.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/5f/f873ca84eff68f2315ad624581c744ea902a3d
Missing separate debuginfo for /usr/local/lib64/kamailio/libbinrpc.so.0
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/4c/4d114463bd547a445e0db7d869ed0752fa488e
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/acc.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/d5/7ceb6fd1c1ffa20fbd7aab33ca50f847eb890b
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/carrierroute.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/d8/238971e9cb2f2b1b3fb60db91d108eefd59502
Missing separate debuginfo for /usr/local/lib64/kamailio/libtrie.so.1
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/7f/00c5048fd670cf0330dafa33bfd7603250e416
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/exec.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/f7/23bb68b67a3c3e5a241e45ec452cb54f3e9783
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/userblacklist.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/5b/3301014781cf0a7bc56f4ebf0c470225ce0c6e
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/sqlops.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/38/a0106b49be571e852ca9ec1e042dc711ae805f
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/auth.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/99/a7a3d4e156be10224b9fc053e76e2d8f9ff809
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/auth_db.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/55/8e3539fcdb2aa57308ab96417f5de7cc749b31
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/permissions.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/4a/b7e6b16143276c415691d48fb7df64d39dca09
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/alias_db.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/5c/79f2557110461e082abcb5bae95330c1a4a76d
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/domain.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/a2/6f7d1f6a60ee44c30297e0713d427215e76bc8
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/nathelper.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/63/a7efa969f3c854159b55f7c854839b22d901af
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/rtpproxy.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/ec/cfe9baae971b9b2f11b5942f315ad1581ab19b
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/group.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/b7/b1046f47b7074e91aea5b68e1682310b6dbe2c
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/avpops.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/28/cb10a07dfe4223217b9cbfa574f8d719e50b3c
Missing separate debuginfo for /usr/local/lib64/kamailio/modules/uri_db.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/a0/51e3de366ad40570889b61235d1d953f013e93
Missing separate debuginfo for
Try: yum --disablerepo='*' --enablerepo='*-debug*' install
/usr/lib/debug/.build-id/80/1b9608daa2cd5f7035ad415e9c7dd06ebdb0a2
[…]
Loaded symbols for /usr/local/lib64/kamailio/modules/uri_db.so
Reading symbols from /lib64/libnss_files.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/libnss_files.so.2
Core was generated by `/usr/local/sbin/kamailio -P /var/run/kamailio.pid -m 256 -M
64'.
Program terminated with signal 11, Segmentation fault.
#0 0x00000030f2230f30 in escape_string_for_mysql () from
/usr/lib64/mysql/libmysqlclient.so.16
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.80.el6.x86_64
keyutils-libs-1.4-4.el6.x86_64 krb5-libs-1.9-33.el6.x86_64
libcom_err-1.41.12-12.el6.x86_64 libconfuse-2.6-2.el6.rf.x86_64
libselinux-2.0.94-5.3.el6.x86_64 mysql-libs-5.1.61-4.el6.x86_64
nss-softokn-freebl-3.12.9-11.el6.x86_64 openssl-1.0.0-20.el6_2.5.x86_64
zlib-1.2.3-27.el6.x86_64
Is that make sense for you?
Regards,
Igor.
De : sr-users-bounces(a)lists.sip-router.org
<mailto:sr-users-bounces@lists.sip-router.org>
[mailto:sr-users-bounces@lists.sip-router.org] De la part de Daniel-Constantin Mierla
Envoyé : vendredi 28 mars 2014 19:22
À : Kamailio (SER) - Users Mailing List
Objet : Re: [SR-Users] Crash on REGISTER
Hello,
it is recommended to use the latest 4.0.x, which is 4.0.6 at this moment. There was a fix
to registrar module that might be the reason of the issue you faced.
On the other hand, the backtrace is important, send the output of:
bt full
Cheers,
Daniel
On 28/03/14 19:10, Igor Potjevlesch wrote:
Hello,
I experienced an issue yesterday.
I move a customer to Kamailio 4.0.4 (previously he was on an old SER instance without
issue).
He uses the same SIP account for connecting two IPBX (same platform, same firmware).
When the second REGISTER came on Kamailio and, may be 500ms/1s after (I have sufficient
time to see 200 OK (2 bindings) on Wireshark), Kamailio crash with coredump generated.
I know that I must analyse the coredump but I hope that could be a known issue.
In addition, when I try to run “gdb” on the core files, I got the following:
Core was generated by `/usr/local/sbin/kamailio -P /var/run/kamailio.pid -m 256 -M
64'.
Program terminated with signal 11, Segmentation fault.
#0 0x00000030f2230f30 in escape_string_for_mysql () from
/usr/lib64/mysql/libmysqlclient.so.16
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.80.el6.x86_64
keyutils-libs-1.4-4.el6.x86_64 krb5-libs-1.9-33.el6.x86_64
libcom_err-1.41.12-12.el6.x86_64 libconfuse-2.6-2.el6.rf.x86_64
libselinux-2.0.94-5.3.el6.x86_64 mysql-libs-5.1.61-4.el6.x86_64
nss-softokn-freebl-3.12.9-11.el6.x86_64 openssl-1.0.0-20.el6_2.5.x86_64
zlib-1.2.3-27.el6.x86_64
I guess that I’m missing packages to troubleshoot.
Many thanks.
Regards,
Igor.
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<mailto:sr-users@lists.sip-router.org> sr-users(a)lists.sip-router.org
<http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>
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
Kamailio World Conference - April 2-4, 2014, Berlin, Germany
http://www.kamailioworld.com