[sr-dev] [kamailio] segmentation fault when mongodb & tls enabled. ( kamailio 4.3.2) (#360)

jijo2010 notifications at github.com
Tue Nov 3 17:42:58 CET 2015


Program terminated with signal 11, Segmentation fault.
#0  0x00007f7963c9e97e in db_mongodb_query (_h=0x7f7968437cd8, _k=0x0, _op=0x0, _v=0x0, _c=0x7ffc7373ba40, _n=0, _nc=21, _o=0x0, _r=0x7ffc7373ba38) at mongodb_dbase.c:846
846		if(CON_TABLE(_h)->s[CON_TABLE(_h)->len]!='\0') {
Missing separate debuginfos, use: debuginfo-install cyrus-sasl-lib-2.1.23-15.el6_6.2.x86_64 cyrus-sasl-plain-2.1.23-15.el6_6.2.x86_64 db4-4.7.25-20.el6_7.x86_64 glibc-2.12-1.166.el6_7.3.x86_64 keyutils-libs-1.4-5.el6.x86_64 krb5-libs-1.10.3-42.el6.x86_64 libcom_err-1.41.12-22.el6.x86_64 libcurl-7.19.7-46.el6.x86_64 libidn-1.18-2.el6.x86_64 libselinux-2.0.94-5.8.el6.x86_64 libssh2-1.4.2-1.el6_6.1.x86_64 libunistring-0.9.3-5.el6.x86_64 libxml2-2.7.6-20.el6.x86_64 mysql-libs-5.1.73-5.el6_6.x86_64 nspr-4.10.8-1.el6_6.x86_64 nss-3.18.0-5.3.el6_6.x86_64 nss-softokn-freebl-3.14.3-22.el6_6.x86_64 nss-util-3.18.0-1.el6_6.x86_64 openldap-2.4.40-5.el6.x86_64 openssl-1.0.1e-42.el6.x86_64 zlib-1.2.3-29.el6.x86_64
(gdb) bt
#0  0x00007f7963c9e97e in db_mongodb_query (_h=0x7f7968437cd8, _k=0x0, _op=0x0, _v=0x0, _c=0x7ffc7373ba40, _n=0, _nc=21, _o=0x0, _r=0x7ffc7373ba38) at mongodb_dbase.c:846
#1  0x00007f7960ae663c in preload_udomain (_c=0x7f7968437cd8, _d=0x7f7963ef8f20) at udomain.c:432
#2  0x00007f7960af7f87 in child_init (_rank=1) at ul_mod.c:437
#3  0x00000000005940ed in init_mod_child (m=0x7f7968380b18, rank=1) at sr_module.c:898
#4  0x0000000000593e28 in init_mod_child (m=0x7f7968380e00, rank=1) at sr_module.c:895
#5  0x0000000000593e28 in init_mod_child (m=0x7f7968381558, rank=1) at sr_module.c:895
#6  0x0000000000593e28 in init_mod_child (m=0x7f7968382250, rank=1) at sr_module.c:895
#7  0x0000000000593e28 in init_mod_child (m=0x7f7968382b90, rank=1) at sr_module.c:895
#8  0x0000000000593e28 in init_mod_child (m=0x7f79683830c8, rank=1) at sr_module.c:895
#9  0x0000000000593e28 in init_mod_child (m=0x7f7968383458, rank=1) at sr_module.c:895
#10 0x0000000000593e28 in init_mod_child (m=0x7f7968383948, rank=1) at sr_module.c:895
#11 0x0000000000593e28 in init_mod_child (m=0x7f7968384ed8, rank=1) at sr_module.c:895
#12 0x0000000000593e28 in init_mod_child (m=0x7f79683853f0, rank=1) at sr_module.c:895
#13 0x0000000000593e28 in init_mod_child (m=0x7f79683857a0, rank=1) at sr_module.c:895
#14 0x0000000000593e28 in init_mod_child (m=0x7f7968385b50, rank=1) at sr_module.c:895
#15 0x0000000000593e28 in init_mod_child (m=0x7f7968385ee0, rank=1) at sr_module.c:895
#16 0x0000000000593e28 in init_mod_child (m=0x7f7968386550, rank=1) at sr_module.c:895
#17 0x0000000000593e28 in init_mod_child (m=0x7f7968386f40, rank=1) at sr_module.c:895
#18 0x00000000005943f7 in init_child (rank=1) at sr_module.c:924
#19 0x00000000004ebdf5 in fork_tcp_process (child_id=1, desc=0x7ffc7373c8c0 "tcp receiver (generic)", r=0, reader_fd_1=0x7ffc7373c940) at pt.c:465
#20 0x00000000005e20bf in tcp_init_children () at tcp_main.c:4777
#21 0x00000000004a8ba1 in main_loop () at main.c:1658
#22 0x00000000004ae38e in main (argc=15, argv=0x7ffc7373cce8) at main.c:2533
(gdb) info locals
i = 0
mgcon = 0x7f7968437e60
client = 0x1988fb0
seldoc = 0x0
cname = 0x7ffc7373ba80 "\260\374\320`y\177"
b1 = 0 '\000'
jstr = 0xd0e12daad083a4fd <Address 0xd0e12daad083a4fd out of bounds>
__FUNCTION__ = "db_mongodb_query"
(gdb) list
841		}
842	
843		if(_r) *_r = NULL;
844	
845		b1 = '\0';
846		if(CON_TABLE(_h)->s[CON_TABLE(_h)->len]!='\0') {
847			b1 = CON_TABLE(_h)->s[CON_TABLE(_h)->len];
848			CON_TABLE(_h)->s[CON_TABLE(_h)->len] = '\0';
849		}
850		cname = CON_TABLE(_h)->s;
(gdb) p _h
$1 = (const db1_con_t *) 0x7f7968437cd8
(gdb) p *_h
$2 = {table = 0x7f7963ef81c0, tquote = 0x0, tail = 140159417024096}
(gdb) p _h->table
$3 = (const str *) 0x7f7963ef81c0
(gdb) p *_h->table
$4 = {s = 0x7f79ffffffff <Address 0x7f79ffffffff out of bounds>, len = 8}
(gdb) 


---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/360#issuecomment-153410984
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20151103/22334842/attachment.html>


More information about the sr-dev mailing list