[SR-Users] Unable to start Kamailio with acc_json
Joonas Kamailio
kamailio at joonake.fi
Mon Jan 7 15:22:26 CET 2019
Dear List,
I have a problem with initializing acc_json. As soon as I try to load
acc_json module, Kamailio fails to start. I get the following messages
to log with debug 4 (non-related messages omitted):
Jan 7 16:17:42 labkam2 kamailio[51089]: INFO: acc_json
[acc_json_mod.c:99]: mod_init(): janson version : 2.9
Jan 7 16:17:43 labkam2 kamailio: ERROR: <core> [core/daemonize.c:303]:
daemonize(): Main process exited before writing to pipe
Running 'bt full' on coredump tells following:
(gdb) bt full
#0 strlen () at ../sysdeps/x86_64/strlen.S:106
No locals.
#1 0x00007f086d0a69fd in mod_init () at acc_json_mod.c:120
__func__ = "mod_init"
#2 0x000055f1699cc6a2 in init_mod (m=0x7f087c0983d0) at
core/sr_module.c:897
__func__ = "init_mod"
#3 0x000055f1699cca16 in init_modules () at core/sr_module.c:926
t = 0x29ceb62d
i = -1
__func__ = "init_modules"
#4 0x000055f16989445a in main (argc=3, argv=0x7ffc56d94378) at main.c:2617
cfg_stream = 0x55f16beb0010
c = -1
r = 0
tmp = 0x7f087c9512e7 "__vdso_getcpu"
tmp_len = 32764
port = 1457078704
proto = 32520
options = 0x55f169c019f0
":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:x:X:Y:"
ret = -1
seed = 2201341167
rfd = 4
debug_save = 0
debug_flag = 0
dont_fork_cnt = 0
n_lst = 0x0
p = 0xf0b0ff <error: Cannot access memory at address 0xf0b0ff>
st = {st_dev = 19, st_ino = 306346, st_nlink = 2, st_mode =
16832, st_uid = 0, st_gid = 0, __pad0 = 0, st_rdev = 0, st_size = 80,
st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 1543318847,
tv_nsec = 544329773}, st_mtim = {tv_sec = 1546870639,
tv_nsec = 902332400}, st_ctim = {tv_sec = 1546870639,
tv_nsec = 902332400}, __glibc_reserved = {0, 0, 0}}
__func__ = "main"
I have loaded "acc" module before loading "acc_json", are there any
other mandatory prerequisites? I am trying to use acc_json to output
accounting data to syslog. I just recompiled latest 5.2 kamailio but
problem still occurs. Kamailio version below:
root at labkam2:/opt/git/kamailio# kamailio -v
version: kamailio 5.2.0 (x86_64/linux) c5216b
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,
Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, 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_URI_SIZE 1024,
BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: c5216b
compiled on 16:13:00 Jan 7 2019 with gcc 6.3.0
Best Regards,
Joonas Keskitalo
More information about the sr-users
mailing list