Hello,
can you install the debugging symbols to get the lines that trigger the
crash? Resend the gdb backtrace to investigate it. Also, the output for
'bt full' will be useful to see the values of variables.
Cheers,
Daniel
On 04/03/15 17:54, Lucas Wals Ochoa wrote:
Hello, this is the first time I send a question here,
hope my english
is good enough to explain my problem.
I have a Kamailio 4.1.8+RTPProxy setup working, but recently I saw RTP
Engine proxy, so I decided to give a try. I installed the latest
kamailio stable version (4.2.3) and adapt the configuration I
have(that uses a MariaDB database), to try the rtpengine module, but I
couldn't even start kamailio process, cause I received a segfault
problem at unixodbc module. The version of unixodbc that I installed
is 2.3.1-10
That was the first time I encounter this error. I thought that maybe
the database I have created with the version 4.1.8 wasn't compatible,
so I decided to create a new database, but the problem persisted.
So I'm here to know if someone know something about this, or have had
a similar problem.
I attached the system log for Kamailio, and a backtrace I made using
"gdb" with the corefile that Kamailio creates when it crash.
Log:
Mar 4 12:46:35 localhost systemd: Starting SYSV: Kamailio is a fast,
reliable and flexible SIP Server....
Mar 4 12:46:35 localhost kamailio: WARNING: <core>
[socket_info.c:1392]: fix_hostname(): could not rev. resolve 10.0.0.70
Mar 4 12:46:35 localhost /usr/sbin/kamailio[2369]: WARNING: tm
[tm.c:845]: mod_init(): WARNING: mod_init: reparse_on_dns_failover is
enabled on a multihomed host -- check the readme of tm module!
Mar 4 12:46:35 localhost /usr/sbin/kamailio[2369]: INFO: rr
[../outbound/api.h:54]: ob_load_api(): Failed to import bind_ob
Mar 4 12:46:35 localhost /usr/sbin/kamailio[2369]: INFO: rr
[rr_mod.c:160]: mod_init(): outbound module not available
Mar 4 12:46:35 localhost /usr/sbin/kamailio[2369]: INFO: usrloc
[hslot.c:53]: ul_init_locks(): locks array size 1024
Mar 4 12:46:35 localhost /usr/sbin/kamailio[2369]: INFO: auth
[auth_mod.c:350]: mod_init(): auth: qop set, but nonce-count
(nc_enabled) support disabled
Mar 4 12:46:35 localhost kernel: kamailio[2369]: segfault at 10070 ip
00007fc3d554df7e sp 00007fff89556450 error 4 in
libmyodbc5w.so[7fc3d5527000+47000]
Mar 4 12:46:35 localhost kamailio: ERROR: <core> [daemonize.c:315]:
daemonize(): Main process exited before writing to pipe
Mar 4 12:46:35 localhost kamailio: Starting kamailio:
Mar 4 12:46:35 localhost systemd: kamailio.service: control process
exited, code=exited status=1
Mar 4 12:46:35 localhost systemd: Failed to start SYSV: Kamailio is a
fast, reliable and flexible SIP Server..
Mar 4 12:46:35 localhost systemd: Unit kamailio.service entered
failed state.
Backtrace of gdb:
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/sbin/kamailio -P /var/run/kamailio.pid -m
64 -M 8 -u kamailio -g kamailio'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007fc3d554df7e in get_ctype () from /usr/lib64/libmyodbc5.so
Missing separate debuginfos, use: debuginfo-install
kamailio-4.2.3-3.1.x86_64
(gdb) backtrace
#0 0x00007fc3d554df7e in get_ctype () from /usr/lib64/libmyodbc5.so
#1 0x00007fc3d554dfac in init_parser () from /usr/lib64/libmyodbc5.so
#2 0x00007fc3d554ec41 in parse () from /usr/lib64/libmyodbc5.so
#3 0x00007fc3d5553484 in prepare () from /usr/lib64/libmyodbc5.so
#4 0x00007fc3d5559e9c in SQLPrepareWImpl () from /usr/lib64/libmyodbc5.so
#5 0x00007fc3d5559eb9 in SQLExecDirectW () from /usr/lib64/libmyodbc5.so
#6 0x00007fc3de43b05f in SQLExecDirect () from /lib64/libodbc.so.2
#7 0x00007fc3de695302 in db_unixodbc_submit_query () from
/usr/lib64/kamailio/modules/db_unixodbc.so
#8 0x00007fc3de21522e in db_do_submit_query () from
/usr/lib64/kamailio/libsrdb1.so.1
#9 0x00007fc3de215cf7 in db_do_query_internal () from
/usr/lib64/kamailio/libsrdb1.so.1
#10 0x00007fc3de21661a in db_do_query () from
/usr/lib64/kamailio/libsrdb1.so.1
#11 0x00007fc3de696d90 in db_unixodbc_query () from
/usr/lib64/kamailio/modules/db_unixodbc.so
#12 0x00007fc3de20ce90 in db_table_version () from
/usr/lib64/kamailio/libsrdb1.so.1
#13 0x00007fc3da209693 in init_ds_db () from
/usr/lib64/kamailio/modules/dispatcher.so
#14 0x00007fc3da1f4f1a in mod_init () from
/usr/lib64/kamailio/modules/dispatcher.so
#15 0x0000000000520e8d in init_mod ()
#16 0x0000000000520be8 in init_mod ()
#17 0x000000000052119a in init_modules ()
#18 0x0000000000517951 in main ()
Hope someone can help me. Thanks in advance.
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda
Kamailio World Conference, May 27-29, 2015
Berlin, Germany -
http://www.kamailioworld.com