Hello,
it seems that either callid parameter was not provided or couldn't be
read from the mi command? Have you got any error message in syslog
before the crash?
I pushed a patch that does a safety check in order to be sure that
callid parameter has a value. You have to take the latest version of the
branch.
Cheers,
Daniel
On 11/22/12 5:01 PM, Ricardo Martinez wrote:
Daniel.
The information :
Core was generated by `/usr/local/sbin/kamailio -m 1024'.
Program terminated with signal 11, Segmentation fault.
#0 core_hash (cmd_tree=<value optimized out>, param=<value optimized
out>) at ../../lib/kcore/hash_func.h:56
56 v=(*p<<24)+(p[1]<<16)+(p[2]<<8)+p[3];
Missing separate debuginfos, use: debuginfo-install
filesystem-2.4.30-2.1.el6.x86_64 glibc-2.12-1.25.el6_1.3.x86_64
keyutils-libs-1.4-1.el6.x86_64 krb5-libs-1.9-9.el6_1.2.x86_64
libcom_err-1.41.12-7.el6.x86_64 libselinux-2.0.94-5.el6.x86_64
mysql-libs-5.1.52-1.el6_0.1.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
openssl-1.0.0-20.el6_2.1.x86_64 pcre-7.8-3.1.el6.x86_64
zlib-1.2.3-26.el6.x86_64
(gdb) frame 1
#1 process_mi_params (cmd_tree=<value optimized out>, param=<value
optimized out>) at dlg_hash.c:1057
1057 h_entry = core_hash( callid, 0, d_table->size);
(gdb) p callid
$1 = (str *) 0x28afc20
(gdb) p *callid
$2 = {s = 0x0, len = 0}
(gdb)
Thanks
Ricardo.-
*De:*Daniel-Constantin Mierla [mailto:miconda@gmail.com
<mailto:miconda@gmail.com>]
*Enviado el:* jueves, 22 de noviembre de 2012 11:57
*Para:* Ricardo Martinez
*CC:* SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -
Users Mailing List
*Asunto:* Re: [SR-Users] Kamailio crash
Hello,
ahh, my mistake - the frame number is 1, do:
frame 1
p callid
p *callid
Cheers,
Daniel
On 11/22/12 3:06 PM, Ricardo Martinez wrote:
Hi Daniel.
This is the output :
Core was generated by `/usr/local/sbin/kamailio -m 1024'.
Program terminated with signal 11, Segmentation fault.
#0 core_hash (cmd_tree=<value optimized out>, param=<value
optimized out>) at ../../lib/kcore/hash_func.h:56
56 v=(*p<<24)+(p[1]<<16)+(p[2]<<8)+p[3];
Missing separate debuginfos, use: debuginfo-install
filesystem-2.4.30-2.1.el6.x86_64 glibc-2.12-1.25.el6_1.3.x86_64
keyutils-libs-1.4-1.el6.x86_64 krb5-libs-1.9-9.el6_1.2.x86_64
libcom_err-1.41.12-7.el6.x86_64 libselinux-2.0.94-5.el6.x86_64
mysql-libs-5.1.52-1.el6_0.1.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
openssl-1.0.0-20.el6_2.1.x86_64 pcre-7.8-3.1.el6.x86_64
zlib-1.2.3-26.el6.x86_64
(gdb) bt
#0 core_hash (cmd_tree=<value optimized out>, param=<value
optimized out>) at ../../lib/kcore/hash_func.h:56
#1 process_mi_params (cmd_tree=<value optimized out>, param=<value
optimized out>) at dlg_hash.c:1057
#2 mi_terminate_dlgs (cmd_tree=<value optimized out>, param=<value
optimized out>) at dlg_hash.c:1165
#3 0x00007fc789996370 in run_mi_cmd (rx_sock=11, tx_sock=12) at
../../lib/kmi/mi.h:77
#4 mi_datagram_server (rx_sock=11, tx_sock=12) at datagram_fnc.c:525
#5 0x00007fc789998509 in datagram_process (rank=<value optimized
out>) at mi_datagram.c:346
#6 0x00007fc78999a09c in mi_child_init (rank=<value optimized
out>) at mi_datagram.c:296
#7 0x00000000004dbd61 in ?? ()
#8 0x00007fc78d99aab8 in ?? ()
#9 0x00007fc78d0181cd in pkg_proc_update_real_used (data=<value
optimized out>) at pkg_stats.c:141
#10 0x000000000052b423 in ?? ()
#11 0x00007fc78d8a2830 in ?? ()
#12 0x0000000000000000 in ?? ()
(gdb) frame 2
#2 mi_terminate_dlgs (cmd_tree=<value optimized out>, param=<value
optimized out>) at dlg_hash.c:1165
1165 rpl_tree = process_mi_params( cmd_tree, &dlg);
(gdb) p callid
No symbol "callid" in current context.
(gdb) p *callid
No symbol "callid" in current context.
(gdb)
Regards,
Ricardo.-
*De:*Daniel-Constantin Mierla [mailto:miconda@gmail.com
<mailto:miconda@gmail.com>]
*Enviado el:* miércoles, 21 de noviembre de 2012 19:01
*Para:* Ricardo Martinez
*CC:* SIP Router - Kamailio (OpenSER) and SIP Express Router (SER)
- Users Mailing List
*Asunto:* Re: [SR-Users] Kamailio crash
On 11/21/12 10:40 PM, Ricardo Martinez wrote:
Yes.
Every 5 minutes we run a script to drop calls in state “3”.
Could be this the problem?
Could be cause, but should not be a problem.
In gdb, can you do:
frame 2
p callid
p *callid
and send the output?
The crash seem to happen when processing the callid value given
via MI command.
Cheers,
Daniel
Regards,
Ricardo.-
*De:*Daniel-Constantin Mierla [mailto:miconda@gmail.com
<mailto:miconda@gmail.com>]
*Enviado el:* miércoles, 21 de noviembre de 2012 18:36
*Para:* SIP Router - Kamailio (OpenSER) and SIP Express Router
(SER) - Users Mailing List
*CC:* Ricardo Martinez
*Asunto:* Re: [SR-Users] Kamailio crash
Hello,
do you have any external application sending MI commands to
terminate active calls?
Just checking to be sure it is not a core file overwrite situation.
Cheers,
Daniel
On 11/21/12 10:20 PM, Ricardo Martinez wrote:
Hello
In the last three days my kamailio process has crashed two
times. I obtained the core file and see it, this is the
output. Can someone check what is the problem?
Core was generated by `/usr/local/sbin/kamailio -m 1024'.
Program terminated with signal 11, Segmentation fault.
#0 core_hash (cmd_tree=<value optimized out>, param=<value
optimized out>) at ../../lib/kcore/hash_func.h:56
56 v=(*p<<24)+(p[1]<<16)+(p[2]<<8)+p[3];
Missing separate debuginfos, use: debuginfo-install
filesystem-2.4.30-2.1.el6.x86_64
glibc-2.12-1.25.el6_1.3.x86_64 keyutils-libs-1.4-1.el6.x86_64
krb5-libs-1.9-9.el6_1.2.x86_64 libcom_err-1.41.12-7.el6.x86_64
libselinux-2.0.94-5.el6.x86_64
mysql-libs-5.1.52-1.el6_0.1.x86_64
nss-softokn-freebl-3.12.7-1.1.el6.x86_64
openssl-1.0.0-20.el6_2.1.x86_64 pcre-7.8-3.1.el6.x86_64
zlib-1.2.3-26.el6.x86_64
(gdb) bt
#0 core_hash (cmd_tree=<value optimized out>, param=<value
optimized out>) at ../../lib/kcore/hash_func.h:56
#1 process_mi_params (cmd_tree=<value optimized out>,
param=<value optimized out>) at dlg_hash.c:1057
#2 mi_terminate_dlgs (cmd_tree=<value optimized out>,
param=<value optimized out>) at dlg_hash.c:1165
#3 0x00007fc789996370 in run_mi_cmd (rx_sock=11, tx_sock=12)
at ../../lib/kmi/mi.h:77
#4 mi_datagram_server (rx_sock=11, tx_sock=12) at
datagram_fnc.c:525
#5 0x00007fc789998509 in datagram_process (rank=<value
optimized out>) at mi_datagram.c:346
#6 0x00007fc78999a09c in mi_child_init (rank=<value optimized
out>) at mi_datagram.c:296
#7 0x00000000004dbd61 in ?? ()
#8 0x00007fc78d99aab8 in ?? ()
#9 0x00007fc78d0181cd in pkg_proc_update_real_used
(data=<value optimized out>) at pkg_stats.c:141
#10 0x000000000052b423 in ?? ()
#11 0x00007fc78d8a2830 in ?? ()
#12 0x0000000000000000 in ?? ()
(gdb)
I’m using kamailio
[root@pxh ~]# kamailio -V
version: kamailio 3.2.3 (x86_64/linux) 2a00c6-dirty
with dialog module, hash tables, radius authorization.
Hope someone could help me.
Regards,
Ricardo.-
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org <mailto:sr-users@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://twitter.com/#%21/miconda>
-http://www.linkedin.com/in/miconda
--
Daniel-Constantin Mierla -http://www.asipto.com
http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda>
-http://www.linkedin.com/in/miconda
--
Daniel-Constantin Mierla -http://www.asipto.com
http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda>
-http://www.linkedin.com/in/miconda