I'm using a few serial http_async_client functions in my config, I found one setup in which kamailio stops with a segmentation fault just doing one call. I can reproduce it in my concrete config, but can't put my finger on the bleeding. I do have a core file.
gdb kamailio core
GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
Copyright (C) 2014 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".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from kamailio...done.
[New LWP 8187]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `kamailio -f /etc/kamailio/kamailio.cfg'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f85580c360a in t_continue () from /usr/lib/x86_64-linux-gnu/kamailio/modules/tm.so
(gdb) bt full
#0 0x00007f85580c360a in t_continue () from /usr/lib/x86_64-linux-gnu/kamailio/modules/tm.so
No symbol table info available.
#1 0x00007f8555ed3848 in async_http_cb () from /usr/lib/x86_64-linux-gnu/kamailio/modules/http_async_client.so
No symbol table info available.
#2 0x00007f8555ecda72 in check_multi_info () from /usr/lib/x86_64-linux-gnu/kamailio/modules/http_async_client.so
No symbol table info available.
#3 0x00007f8555ec56a4 in event_cb () from /usr/lib/x86_64-linux-gnu/kamailio/modules/http_async_client.so
No symbol table info available.
#4 0x00007f8555a043dc in event_base_loop () from /usr/lib/x86_64-linux-gnu/libevent-2.0.so.5
No symbol table info available.
#5 0x00007f8555ed0c3d in async_http_run_worker () from /usr/lib/x86_64-linux-gnu/kamailio/modules/http_async_client.so
No symbol table info available.
#6 0x00007f8555eba86e in ?? () from /usr/lib/x86_64-linux-gnu/kamailio/modules/http_async_client.so
No symbol table info available.
#7 0x00000000004f204c in init_mod_child (m=0x7f855a6195c8, rank=0) at core/sr_module.c:921
FUNCTION = "init_mod_child"
#8 0x00000000004f1d6a in init_mod_child (m=0x7f855a61a1e0, rank=0) at core/sr_module.c:918
FUNCTION = "init_mod_child"
#9 0x00000000004f1d6a in init_mod_child (m=0x7f855a61a850, rank=0) at core/sr_module.c:918
FUNCTION = "init_mod_child"
#10 0x00000000004f1d6a in init_mod_child (m=0x7f855a61adb0, rank=0) at core/sr_module.c:918
FUNCTION = "init_mod_child"
#11 0x00000000004f1d6a in init_mod_child (m=0x7f855a61b420, rank=0) at core/sr_module.c:918
FUNCTION = "init_mod_child"
#12 0x00000000004f1d6a in init_mod_child (m=0x7f855a61b8d0, rank=0) at core/sr_module.c:918
FUNCTION = "init_mod_child"
#13 0x00000000004f1d6a in init_mod_child (m=0x7f855a61bfe8, rank=0) at core/sr_module.c:918
FUNCTION = "init_mod_child"
#14 0x00000000004f1d6a in init_mod_child (m=0x7f855a61c440, rank=0) at core/sr_module.c:918
FUNCTION = "init_mod_child"
#15 0x00000000004f1d6a in init_mod_child (m=0x7f855a61c7e8, rank=0) at core/sr_module.c:918
FUNCTION = "init_mod_child"
#16 0x00000000004f1d6a in init_mod_child (m=0x7f855a61cb88, rank=0) at core/sr_module.c:918
FUNCTION = "init_mod_child"
#17 0x00000000004f1d6a in init_mod_child (m=0x7f855a61cfc8, rank=0) at core/sr_module.c:918
FUNCTION = "init_mod_child"
#18 0x00000000004f1d6a in init_mod_child (m=0x7f855a61d370, rank=0) at core/sr_module.c:918
FUNCTION = "init_mod_child"
#19 0x00000000004f1d6a in init_mod_child (m=0x7f855a61d780, rank=0) at core/sr_module.c:918
FUNCTION = "init_mod_child"
#20 0x00000000004f1d6a in init_mod_child (m=0x7f855a61dbc8, rank=0) at core/sr_module.c:918
FUNCTION = "init_mod_child"
#21 0x00000000004f1d6a in init_mod_child (m=0x7f855a61e380, rank=0) at core/sr_module.c:918
FUNCTION = "init_mod_child"
---Type to continue, or q to quit---
#22 0x00000000004f1d6a in init_mod_child (m=0x7f855a61ec00, rank=0) at core/sr_module.c:918
FUNCTION = "init_mod_child"
#23 0x00000000004f1d6a in init_mod_child (m=0x7f855a621608, rank=0) at core/sr_module.c:918
FUNCTION = "init_mod_child"
#24 0x00000000004f1d6a in init_mod_child (m=0x7f855a622290, rank=0) at core/sr_module.c:918
FUNCTION = "init_mod_child"
#25 0x00000000004f1d6a in init_mod_child (m=0x7f855a622660, rank=0) at core/sr_module.c:918
FUNCTION = "init_mod_child"
#26 0x00000000004f1d6a in init_mod_child (m=0x7f855a62c5d0, rank=0) at core/sr_module.c:918
FUNCTION = "init_mod_child"
#27 0x00000000004f1d6a in init_mod_child (m=0x7f855a62dae0, rank=0) at core/sr_module.c:918
FUNCTION = "init_mod_child"
#28 0x00000000004f237a in init_child (rank=0) at core/sr_module.c:947
No locals.
#29 0x00000000004231bb in main_loop () at main.c:1700
i = 4
pid = 8165
si = 0x0
si_desc = "udp receiver child=3 sock=185.165.211.54:5063\000\000\000OX\350T\205\177\000\000\000Y\350T\205\177\000\000\260\031B\201\000\000\000\000\000\000\000\000\000\000\350\000\000\000t\000\000\000\000\000\030"}Z\205\177\000\000\000\000\000\000\000\000\000\000\001\000\000\000\002\000\000\000\002\000\000\000\374\177\000\000\277\201e\000\000\000\000"
nrprocs = 4
woneinit = 1
FUNCTION = "main_loop"
#30 0x0000000000429a61 in main (argc=3, argv=0x7ffc81421d18) at main.c:2639
cfg_stream = 0xf55010
c = -1
r = 0
tmp = 0x7f855b58173d <_dl_lookup_symbol_x+349> "\203\370"
tmp_len = 0
port = 1
proto = 32645
options = 0x72b1b0 ":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O
ret = -1
seed = 1992621074
rfd = 4
debug_save = 0
debug_flag = 0
dont_fork_cnt = 0
n_lst = 0x7ffc81421bd0
p = 0x7ffc81421d38 "0>B\201\374\177"
st = {st_dev = 47, st_ino = 29, st_nlink = 2, st_mode = 16877, st_uid = 104, st_gid = 110, __pad0 = 0, st_rdev = 0, st_size = 60, st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 1488206724,
tv_nsec = 372702711}, st_mtim = {tv_sec = 1491326162, tv_nsec = 837249928}, st_ctim = {tv_sec = 1491326162, tv_nsec = 837249928}, __glibc_reserved = {0, 0, 0}}
FUNCTION = "main"
(gdb) info locals
No symbol table info available.
(gdb) list
1838 int proto;
1839 char options;
1840 int ret;
1841 unsigned int seed;
1842 int rfd;
1843 int debug_save, debug_flag;
1844 int dont_fork_cnt;
1845 struct name_lst n_lst;
1846 char *p;
1847 struct stat st = {0};
(paste your debugging data here)
(paste your log messages here)
(paste your sip traffic here)
kamailio 5.0.0 (x86_64/linux)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.