When I attempt to enable the siptrace module in my configuration, I am presented with the following error and the core dump:
/usr/sbin/kamailio[9782]: INFO: rr [../outbound/api.h:54]: ob_load_api(): Failed to import bind_ob
/usr/sbin/kamailio[9782]: INFO: rr [rr_mod.c:174]: mod_init(): outbound module not available
/usr/sbin/kamailio[9782]: INFO: path [../outbound/api.h:54]: ob_load_api(): Failed to import bind_ob
/usr/sbin/kamailio[9782]: INFO: path [path_mod.c:147]: mod_init(): outbound module not available
/usr/sbin/kamailio[9782]: INFO: permissions [permissions.c:608]: mod_init(): default allow file (/shared/kamailio/etc/permissions.allow) not found => empty rule set
/usr/sbin/kamailio[9782]: INFO: permissions [permissions.c:617]: mod_init(): default deny file (/shared/kamailio/etc/permissions.deny) not found => empty rule set
/usr/sbin/kamailio[9782]: INFO: pua [pua.c:447]: db_restore(): the query returned no result
/usr/sbin/kamailio[9782]: WARNING: pua_dialoginfo [pua_dialoginfo.c:627]: mod_init(): pubruri_caller_dlg_var is not set - restore on restart disabled
/usr/sbin/kamailio[9782]: WARNING: pua_dialoginfo [pua_dialoginfo.c:630]: mod_init(): pubruri_callee_dlg_var is not set - restore on restart disabled
/usr/sbin/kamailio[9782]: ERROR: dispatcher [dispatcher.c:768]: ds_warn_fixup(): failover functions used, but required AVP parameters are NULL -- feature disabled
/usr/sbin/kamailio[9782]: ERROR: dispatcher [dispatcher.c:768]: ds_warn_fixup(): failover functions used, but required AVP parameters are NULL -- feature disabled
/usr/sbin/kamailio[9782]: INFO: <core> [udp_server.c:150]: probe_max_receive_buffer(): SO_RCVBUF is initially 124928
/usr/sbin/kamailio[9782]: INFO: <core> [udp_server.c:200]: probe_max_receive_buffer(): SO_RCVBUF is finally 249856
/usr/sbin/kamailio[9782]: INFO: <core> [udp_server.c:150]: probe_max_receive_buffer(): SO_RCVBUF is initially 124928
/usr/sbin/kamailio[9782]: INFO: <core> [udp_server.c:200]: probe_max_receive_buffer(): SO_RCVBUF is finally 249856
/usr/sbin/kamailio[9782]: INFO: <core> [udp_server.c:150]: probe_max_receive_buffer(): SO_RCVBUF is initially 124928
/usr/sbin/kamailio[9782]: INFO: <core> [udp_server.c:200]: probe_max_receive_buffer(): SO_RCVBUF is finally 249856
/usr/sbin/kamailio[9790]: INFO: ctl [io_listener.c:214]: io_listen_loop(): io_listen_loop: using epoll_lt io watch method (config)
/usr/sbin/kamailio[9791]: ERROR: <core> [db.c:448]: db_use_table(): invalid parameter value
/usr/sbin/kamailio[9791]: ERROR: <core> [db_query.c:203]: db_do_insert_cmd(): invalid parameter value
/usr/sbin/kamailio[9792]: ERROR: <core> [db.c:448]: db_use_table(): invalid parameter value
/usr/sbin/kamailio[9792]: ERROR: <core> [db_query.c:203]: db_do_insert_cmd(): invalid parameter value
/usr/sbin/kamailio[9793]: ERROR: <core> [db.c:448]: db_use_table(): invalid parameter value
/usr/sbin/kamailio[9793]: ERROR: <core> [db_query.c:203]: db_do_insert_cmd(): invalid parameter value
/usr/sbin/kamailio[9794]: ERROR: <core> [db.c:448]: db_use_table(): invalid parameter value
/usr/sbin/kamailio[9794]: ERROR: <core> [db_query.c:203]: db_do_insert_cmd(): invalid parameter value
/usr/sbin/kamailio[9782]: ALERT: <core> [main.c:728]: handle_sigs(): child process 9792 exited by a signal 11
/usr/sbin/kamailio[9782]: ALERT: <core> [main.c:731]: handle_sigs(): core was generated
/usr/sbin/kamailio[9782]: INFO: <core> [main.c:743]: handle_sigs(): terminating due to SIGCHLD
/usr/sbin/kamailio[9795]: INFO: <core> [main.c:794]: sig_usr(): signal 15 received
/usr/sbin/kamailio[9783]: INFO: <core> [main.c:794]: sig_usr(): signal 15 received
/usr/sbin/kamailio[9789]: INFO: <core> [main.c:794]: sig_usr(): signal 15 received
/usr/sbin/kamailio[9796]: INFO: <core> [main.c:794]: sig_usr(): signal 15 received
/usr/sbin/kamailio[9787]: INFO: <core> [main.c:794]: sig_usr(): signal 15 received
/usr/sbin/kamailio[9790]: INFO: <core> [main.c:794]: sig_usr(): signal 15 received
/usr/sbin/kamailio[9785]: INFO: <core> [main.c:794]: sig_usr(): signal 15 received
/usr/sbin/kamailio[9784]: INFO: <core> [main.c:794]: sig_usr(): signal 15 received
/usr/sbin/kamailio[9788]: INFO: <core> [main.c:794]: sig_usr(): signal 15 received
/usr/sbin/kamailio[9786]: INFO: <core> [main.c:794]: sig_usr(): signal 15 received
The associate "thread apply all bt full" of the core file is as follows:
(gdb) thread apply all bt full
Thread 1 (Thread 0x7fceace32700 (LWP 9792)):
#0 0x00007fcea8237173 in db_postgres_store_result () from /usr/lib64/kamailio/modules/db_postgres.so
No symbol table info available.
#1 0x00007fcea8238898 in db_postgres_insert () from /usr/lib64/kamailio/modules/db_postgres.so
No symbol table info available.
#2 0x00007fce9ebd9ee6 in ?? () from /usr/lib64/kamailio/modules/siptrace.so
No symbol table info available.
#3 0x00007fce9ebd94dd in ?? () from /usr/lib64/kamailio/modules/siptrace.so
No symbol table info available.
#4 0x00007fce9ebe3223 in ?? () from /usr/lib64/kamailio/modules/siptrace.so
No symbol table info available.
#5 0x00007fcea3759735 in sl_run_callbacks () from /usr/lib64/kamailio/modules/sl.so
No symbol table info available.
#6 0x00007fcea3756835 in sl_reply_helper () from /usr/lib64/kamailio/modules/sl.so
No symbol table info available.
#7 0x00007fcea37575d2 in sl_send_reply () from /usr/lib64/kamailio/modules/sl.so
No symbol table info available.
#8 0x00007fcea374e7c5 in send_reply () from /usr/lib64/kamailio/modules/sl.so
No symbol table info available.
#9 0x00007fcea15cfaab in worker_loop () from /usr/lib64/kamailio/modules/dmq.so
No symbol table info available.
#10 0x00007fcea15b432c in ?? () from /usr/lib64/kamailio/modules/dmq.so
No symbol table info available.
#11 0x0000000000594031 in ?? ()
No symbol table info available.
#12 0x0000000000593d6c in ?? ()
No symbol table info available.
#13 0x0000000000593d6c in ?? ()
No symbol table info available.
#14 0x0000000000593d6c in ?? ()
No symbol table info available.
#15 0x0000000000593d6c in ?? ()
No symbol table info available.
#16 0x0000000000593d6c in ?? ()
No symbol table info available.
#17 0x0000000000593d6c in ?? ()
No symbol table info available.
#18 0x0000000000593d6c in ?? ()
No symbol table info available.
#19 0x0000000000593d6c in ?? ()
No symbol table info available.
#20 0x0000000000593d6c in ?? ()
No symbol table info available.
#21 0x0000000000593d6c in ?? ()
No symbol table info available.
#22 0x0000000000593d6c in ?? ()
No symbol table info available.
#23 0x0000000000593d6c in ?? ()
No symbol table info available.
#24 0x0000000000593d6c in ?? ()
No symbol table info available.
#25 0x0000000000593d6c in ?? ()
No symbol table info available.
#26 0x0000000000593d6c in ?? ()
No symbol table info available.
#27 0x0000000000593d6c in ?? ()
No symbol table info available.
#28 0x000000000059433b in init_child ()
No symbol table info available.
#29 0x00000000004a8880 in main_loop ()
No symbol table info available.
#30 0x00000000004ae2d2 in main ()
No symbol table info available.
Kamailio version is 4.3.1:
# kamailio -V
version: kamailio 4.3.1 (x86_64/linux) f38e67
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC, DBG_F_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: f38e67
compiled on 18:15:23 Jul 20 2015 with gcc 4.4.7
Siptrace parameters set are:
modparam("siptrace", "db_url", DBURL)
modparam("siptrace", "hep_mode_on", 1)
modparam("siptrace", "trace_to_database", 1)
modparam("siptrace", "trace_flag", 22)
modparam("siptrace", "trace_on", 1)
I came accross the following archive mail thread where it mentioned that there may be some issues with the mi module when loading siptrace:
http://lists.sip-router.org/pipermail/sr-dev/2011-June/011417.html
I'm not sure if it is in any way related, but if it is, I am loading the mi_rpc module as well, however, I did not issue any commands over rpc to activate the above crash.
Let me know if you need any additional info from me to debug this further.
—
Reply to this email directly or view it on GitHub.