[OpenSIPS-Users] Opensips 1.6.3 Crashing: db_mysql_val2bind bug?

osiris123d duane.larson at gmail.com
Mon Aug 9 20:25:39 CEST 2010


I just upgraded to 1.6.3 to fix a bug I was noticing with pua_dialoginfo. 
1.6.3 appears to have fixed that issue but I am noticing that it is now
randomly crashing.  Here is a core dump

Proxy01:/usr/local/sbin# gdb opensips core
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux-x86-64.so.2...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /usr/local/lib64/opensips/modules/db_mysql.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/db_mysql.so
Reading symbols from /usr/lib/libmysqlclient.so.15...done.
Loaded symbols for /usr/lib/libmysqlclient.so.15
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/local/lib64/opensips/modules/signaling.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/signaling.so
Reading symbols from /usr/local/lib64/opensips/modules/sl.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/sl.so
Reading symbols from /usr/local/lib64/opensips/modules/tm.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/tm.so
Reading symbols from /usr/local/lib64/opensips/modules/rr.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/rr.so
Reading symbols from /usr/local/lib64/opensips/modules/uac.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/uac.so
Reading symbols from /usr/local/lib64/opensips/modules/maxfwd.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/maxfwd.so
Reading symbols from /usr/local/lib64/opensips/modules/usrloc.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/usrloc.so
Reading symbols from /usr/local/lib64/opensips/modules/registrar.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/registrar.so
Reading symbols from /usr/local/lib64/opensips/modules/textops.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/textops.so
Reading symbols from /usr/local/lib64/opensips/modules/mi_fifo.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/mi_fifo.so
Reading symbols from
/usr/local/lib64/opensips/modules/mi_datagram.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/mi_datagram.so
Reading symbols from /usr/local/lib64/opensips/modules/uri.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/uri.so
Reading symbols from /usr/local/lib64/opensips/modules/acc.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/acc.so
Reading symbols from /usr/local/lib64/opensips/modules/avpops.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/avpops.so
Reading symbols from /usr/local/lib64/opensips/modules/auth.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/auth.so
Reading symbols from /usr/local/lib64/opensips/modules/auth_db.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/auth_db.so
Reading symbols from /usr/local/lib64/opensips/modules/alias_db.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/alias_db.so
Reading symbols from /usr/local/lib64/opensips/modules/domain.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/domain.so
Reading symbols from /usr/local/lib64/opensips/modules/group.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/group.so
Reading symbols from /usr/local/lib64/opensips/modules/presence.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/presence.so
Reading symbols from /usr/lib/libxml2.so.2...done.
Loaded symbols for /usr/lib/libxml2.so.2
Reading symbols from
/usr/local/lib64/opensips/modules/presence_mwi.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/presence_mwi.so
Reading symbols from
/usr/local/lib64/opensips/modules/presence_xml.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/presence_xml.so
Reading symbols from
/usr/local/lib64/opensips/modules/presence_dialoginfo.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/presence_dialoginfo.so
Reading symbols from /usr/local/lib64/opensips/modules/pua.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/pua.so
Reading symbols from
/usr/local/lib64/opensips/modules/pua_dialoginfo.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/pua_dialoginfo.so
Reading symbols from /usr/local/lib64/opensips/modules/pua_usrloc.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/pua_usrloc.so
Reading symbols from /usr/local/lib64/opensips/modules/pua_mi.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/pua_mi.so
Reading symbols from /usr/local/lib64/opensips/modules/pua_bla.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/pua_bla.so
Reading symbols from
/usr/local/lib64/opensips/modules/presence_xcapdiff.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/presence_xcapdiff.so
Reading symbols from /usr/local/lib64/opensips/modules/dialog.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/dialog.so
Reading symbols from /usr/local/lib64/opensips/modules/pdt.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/pdt.so
Reading symbols from
/usr/local/lib64/opensips/modules/nat_traversal.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/nat_traversal.so
Reading symbols from /usr/local/lib64/opensips/modules/nathelper.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/nathelper.so
Reading symbols from /usr/local/lib64/opensips/modules/mediaproxy.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/mediaproxy.so
Reading symbols from /usr/local/lib64/opensips/modules/cfgutils.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/cfgutils.so
Reading symbols from /usr/local/lib64/opensips/modules/siptrace.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/siptrace.so
Reading symbols from /usr/local/lib64/opensips/modules/aaa_radius.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/aaa_radius.so
Reading symbols from /usr/lib/libradiusclient-ng.so.2...done.
Loaded symbols for /usr/lib/libradiusclient-ng.so.2
Reading symbols from /usr/local/lib64/opensips/modules/exec.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/exec.so
Reading symbols from /usr/local/lib64/opensips/modules/pike.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/pike.so
Reading symbols from /usr/local/lib64/opensips/modules/localcache.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/localcache.so
Reading symbols from /usr/local/lib64/opensips/modules/rls.so...done.
Loaded symbols for /usr/local/lib64/opensips/modules/rls.so
Reading symbols from /lib/libnss_compat.so.2...done.
Loaded symbols for /lib/libnss_compat.so.2
Reading symbols from /lib/libnss_nis.so.2...done.
Loaded symbols for /lib/libnss_nis.so.2
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
Core was generated by `./opensips -f /usr/local/etc/opensips/opensips.cfg'.
Program terminated with signal 11, Segmentation fault.
[New process 9187]
#0  0x00007fda2dd51afd in db_mysql_val2bind (v=0x7fffe0a34470,
binds=0x81bf70, i=112) at val.c:274
274                     *(binds[i].is_null) = 0;


(gdb) backtrace
#0  0x00007fda2dd51afd in db_mysql_val2bind (v=0x7fffe0a34470,
binds=0x81bf70, i=112) at val.c:274
#1  0x00007fda2dd4c07a in db_mysql_do_prepared_query (conn=0x81b580,
query=0x7fda2df646d0, v=0x7fffe0a34450, n=2, uv=0x0, un=0) at dbase.c:443
#2  0x00007fda2dd4e305 in db_mysql_delete (_h=0x81b580, _k=0x7fffe0a344d0,
_o=0x7fffe0a344b0, _v=0x7fffe0a34450, _n=2) at dbase.c:893
#3  0x00007fda2a4cab40 in msg_watchers_clean (ticks=<value optimized out>,
param=<value optimized out>) at subscribe.c:484
#4  0x000000000049e3da in start_timer_processes () at timer.c:325
#5  0x000000000042be57 in main (argc=<value optimized out>,
argv=0x7fffe0a346b8) at main.c:867
-- 
View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Opensips-1-6-3-Crashing-db-mysql-val2bind-bug-tp5390068p5390068.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.



More information about the Users mailing list