After some investigation I found out that the cause for the problem is modparam("http_async_client", "workers", 4).
Starting kamailio with modparam("http_async_client", "workers", 1) works fine.
I also tested it on v5.4.1 before @linuxmaniac reverts and it works fine with modparam("http_async_client", "workers", 1)
Here are the bt full of all the core files:
root@kamailio12:/# gdb /usr/sbin/kamailio /core.32155
GNU gdb (Debian 8.2.1-2+b3) 8.2.1
Copyright (C) 2018 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.
stopType "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 /usr/sbin/kamailio...Reading symbols from /usr/lib/debug/.build-id/ed/15dbbb24fb309311e7a6a16cf9222a82afb102.debug...done.
done.
[New LWP 32155]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by /usr/sbin/kamailio -f /etc/kamailio/kamailio.cfg -m 2048 -M 32'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007fb49968e61f in ?? () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 (gdb) bt full #0 0x00007fb49968e61f in ?? () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 No symbol table info available. #1 0x00007fb49968dfb5 in CONF_modules_finish () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 No symbol table info available. #2 0x00007fb49968e139 in ?? () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 No symbol table info available. #3 0x00007fb4997231e0 in OPENSSL_cleanup () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 No symbol table info available. #4 0x00007fb49993af45 in tls_h_mod_destroy_f () at tls_init.c:870 __func__ = "tls_h_mod_destroy_f" #5 0x0000559822cbf4d1 in destroy_tls () at core/tls_hooks.c:75 No locals. #6 0x0000559822b66358 in cleanup (show_status=1) at main.c:584 memlog = 0 __func__ = "cleanup" #7 0x0000559822b67ef3 in shutdown_children (sig=15, show_status=1) at main.c:706 __func__ = "shutdown_children" #8 0x0000559822b6b4e6 in handle_sigs () at main.c:806 chld = 0 chld_status = 139 any_chld_stopped = 1 memlog = 0 __func__ = "handle_sigs" #9 0x0000559822b77053 in main_loop () at main.c:1817 i = 8 pid = 32195 si = 0x0 si_desc = "udp receiver child=7 sock=172.19.140.102:5060\000\000\000\003\000\000\000)\000\000\000\000\274[\351\352ZP\207
\027\v%\230U\000\000\210P\371"\230U\000\000\000\000\000\000\000\000\000\000\260|\255\233\264\177\000\000\363>\376"\230U\000\000\000\000\000\200\000\000\000\000\320\177N\204\377\177\000\000h]\337"\230U\000"
nrprocs = 8
woneinit = 1
--Type for more, q to quit, c to continue without paging--
func = "main_loop"
#10 0x0000559822b80516 in main (argc=7, argv=0x7fff844e8518) at main.c:2856
cfg_stream = 0x559824fcb260
c = -1
r = 0
tmp = 0x7fff844e8def ""
tmp_len = 0
port = 0
proto = 1
ahost = 0x0
aport = 0
options = 0x559822f97d38 ":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O
ret = -1
seed = 3411128981
rfd = 4
debug_save = 0
debug_flag = 0
dont_fork_cnt = 0
n_lst = 0xffff00001f80
p = 0x0
st = {st_dev = 21, st_ino = 428223, st_nlink = 2, st_mode = 16832, st_uid = 0, st_gid = 0, __pad0 = 0, st_rdev = 0, st_size = 40, st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 1599374984, tv_nsec = 763308205}, st_mtim = {tv_sec = 1599374995,
tv_nsec = 555647093}, st_ctim = {tv_sec = 1599374995, tv_nsec = 555647093}, __glibc_reserved = {0, 0, 0}}
tbuf = "\000\000\000\000\000\000\000\000\b\000\000\000\000\000\000\000\060\367\331\233\264\177\000\000\000\000\000\000\000\000\000\000\240\301U\204\377\177\000\000\364\372\327\233\264\177\000\000\b\000\000\000\000\000\000\000\230\302U\204\377\177\000\000\060\367\331\233\264\177\000\000\270\202N\204\377\177\000\000\264\202N\204\377\177", '\000' <repeats 18 times>, "\230\302U\204\377\177\000\000\250\301U\204\377\177\000\000'N\266\233\264\177\000\000&\260be\000\000\000\000 \204N\204\377\177\000\000\300\212\225\001\000\000\000\000\200\203N\204\377\177\000\000p\203N\204\377\177\000\000\270\202N\204\377\177\000\000X\367\331\233\264\177\000\000\001", '\000' <repeats 31 times>...
option_index = 0
long_options = {{name = 0x559822f99dc6 "help", has_arg = 0, flag = 0x0, val = 104}, {name = 0x559822f9550c "version", has_arg = 0, flag = 0x0, val = 118}, {name = 0x559822f99dcb "alias", has_arg = 1, flag = 0x0, val = 1024}, {name = 0x559822f99dd1 "subst",
has_arg = 1, flag = 0x0, val = 1025}, {name = 0x559822f99dd7 "substdef", has_arg = 1, flag = 0x0, val = 1026}, {name = 0x559822f99de0 "substdefs", has_arg = 1, flag = 0x0, val = 1027}, {name = 0x559822f99dea "server-id", has_arg = 1, flag = 0x0, val = 1028},
{name = 0x559822f99df4 "loadmodule", has_arg = 1, flag = 0x0, val = 1029}, {name = 0x559822f99dff "modparam", has_arg = 1, flag = 0x0, val = 1030}, {name = 0x559822f99e08 "log-engine", has_arg = 1, flag = 0x0, val = 1031}, {name = 0x559822f99e13 "debug",
has_arg = 1, flag = 0x0, val = 1032}, {name = 0x0, has_arg = 0, flag = 0x0, val = 0}}
func = "main"
(gdb)
(gdb) quit
root@kamailio12:/# gdb /usr/sbin/kamailio /core.32172
GNU gdb (Debian 8.2.1-2+b3) 8.2.1
Copyright (C) 2018 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 /usr/sbin/kamailio...Reading symbols from /usr/lib/debug/.build-id/ed/15dbbb24fb309311e7a6a16cf9222a82afb102.debug...done.
done.
[New LWP 32172]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by /usr/sbin/kamailio -f /etc/kamailio/kamailio.cfg -m 2048 -M 32'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007fb49968e61f in ?? () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 (gdb) bt full #0 0x00007fb49968e61f in ?? () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 No symbol table info available. #1 0x00007fb49968e72d in ?? () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 No symbol table info available. #2 0x00007fb49968dd05 in CONF_modules_load () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 No symbol table info available. #3 0x00007fb49968e2cb in CONF_modules_load_file () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 No symbol table info available. #4 0x00007fb417fa717e in ?? () from /usr/lib/x86_64-linux-gnu/libcurl.so.4 No symbol table info available. #5 0x00007fb417f6d1cf in ?? () from /usr/lib/x86_64-linux-gnu/libcurl.so.4 No symbol table info available. #6 0x00007fb417fec560 in set_curl_mem_callbacks () at http_multi.c:367 rc = CURLE_OK __func__ = "set_curl_mem_callbacks" #7 0x00007fb417fed407 in init_http_multi (evbase=0x5598251278e0, wg=0x7fb419b347c0) at http_multi.c:396 __func__ = "init_http_multi" #8 0x00007fb417fd65f8 in async_http_run_worker (worker=0x7fb4198d45e0) at async_http.c:91 No locals. #9 0x00007fb417ffa3a6 in child_init (rank=0) at http_async_client_mod.c:366 pid = 0 i = 2 __func__ = "child_init" #10 0x0000559822cca246 in init_mod_child (m=0x7fb499a93d70, rank=0) at core/sr_module.c:780 __func__ = "init_mod_child" #11 0x0000559822cc9e61 in init_mod_child (m=0x7fb499a949f0, rank=0) at core/sr_module.c:776 __func__ = "init_mod_child" #12 0x0000559822cc9e61 in init_mod_child (m=0x7fb499a94e90, rank=0) at core/sr_module.c:776 __func__ = "init_mod_child" #13 0x0000559822cc9e61 in init_mod_child (m=0x7fb499a95330, rank=0) at core/sr_module.c:776 __func__ = "init_mod_child" --Type <RET> for more, q to quit, c to continue without paging-- #14 0x0000559822cc9e61 in init_mod_child (m=0x7fb499a95b30, rank=0) at core/sr_module.c:776 __func__ = "init_mod_child" #15 0x0000559822cc9e61 in init_mod_child (m=0x7fb499a966d0, rank=0) at core/sr_module.c:776 __func__ = "init_mod_child" #16 0x0000559822cc9e61 in init_mod_child (m=0x7fb499a96d18, rank=0) at core/sr_module.c:776 __func__ = "init_mod_child" #17 0x0000559822cc9e61 in init_mod_child (m=0x7fb499a97250, rank=0) at core/sr_module.c:776 __func__ = "init_mod_child" #18 0x0000559822cc9e61 in init_mod_child (m=0x7fb499a978d0, rank=0) at core/sr_module.c:776 __func__ = "init_mod_child" #19 0x0000559822cc9e61 in init_mod_child (m=0x7fb499a97c80, rank=0) at core/sr_module.c:776 __func__ = "init_mod_child" #20 0x0000559822cc9e61 in init_mod_child (m=0x7fb499a985f0, rank=0) at core/sr_module.c:776 __func__ = "init_mod_child" #21 0x0000559822ccab71 in init_child (rank=0) at core/sr_module.c:825 ret = 32692 type = 0x559822fc88eb "PROC_MAIN" __func__ = "init_child" #22 0x0000559822b76101 in main_loop () at main.c:1763 i = 8 pid = 32165 si = 0x0 si_desc = "udp receiver child=7 sock=172.19.140.102:5060\000\000\000\003\000\000\000)\000\000\000\000\274[\351\352ZP\207
\027\v%\230U\000\000\210P\371"\230U\000\000\000\000\000\000\000\000\000\000\260|\255\233\264\177\000\000\363>\376"\230U\000\000\000\000\000\200\000\000\000\000\320\177N\204\377\177\000\000h]\337"\230U\000"
nrprocs = 8
woneinit = 1
func = "main_loop"
#23 0x0000559822b80516 in main (argc=7, argv=0x7fff844e8518) at main.c:2856
cfg_stream = 0x559824fcb260
c = -1
r = 0
--Type for more, q to quit, c to continue without paging--
tmp = 0x7fff844e8def ""
tmp_len = 0
port = 0
proto = 1
ahost = 0x0
aport = 0
options = 0x559822f97d38 ":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O
ret = -1
seed = 3411128981
rfd = 4
debug_save = 0
debug_flag = 0
dont_fork_cnt = 0
n_lst = 0xffff00001f80
p = 0x0
st = {st_dev = 21, st_ino = 428223, st_nlink = 2, st_mode = 16832, st_uid = 0, st_gid = 0, __pad0 = 0, st_rdev = 0, st_size = 40, st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 1599374984, tv_nsec = 763308205}, st_mtim = {tv_sec = 1599374995,
tv_nsec = 555647093}, st_ctim = {tv_sec = 1599374995, tv_nsec = 555647093}, __glibc_reserved = {0, 0, 0}}
tbuf = "\000\000\000\000\000\000\000\000\b\000\000\000\000\000\000\000\060\367\331\233\264\177\000\000\000\000\000\000\000\000\000\000\240\301U\204\377\177\000\000\364\372\327\233\264\177\000\000\b\000\000\000\000\000\000\000\230\302U\204\377\177\000\000\060\367\331\233\264\177\000\000\270\202N\204\377\177\000\000\264\202N\204\377\177", '\000' <repeats 18 times>, "\230\302U\204\377\177\000\000\250\301U\204\377\177\000\000'N\266\233\264\177\000\000&\260be\000\000\000\000 \204N\204\377\177\000\000\300\212\225\001\000\000\000\000\200\203N\204\377\177\000\000p\203N\204\377\177\000\000\270\202N\204\377\177\000\000X\367\331\233\264\177\000\000\001", '\000' <repeats 31 times>...
option_index = 0
long_options = {{name = 0x559822f99dc6 "help", has_arg = 0, flag = 0x0, val = 104}, {name = 0x559822f9550c "version", has_arg = 0, flag = 0x0, val = 118}, {name = 0x559822f99dcb "alias", has_arg = 1, flag = 0x0, val = 1024}, {name = 0x559822f99dd1 "subst",
has_arg = 1, flag = 0x0, val = 1025}, {name = 0x559822f99dd7 "substdef", has_arg = 1, flag = 0x0, val = 1026}, {name = 0x559822f99de0 "substdefs", has_arg = 1, flag = 0x0, val = 1027}, {name = 0x559822f99dea "server-id", has_arg = 1, flag = 0x0, val = 1028},
{name = 0x559822f99df4 "loadmodule", has_arg = 1, flag = 0x0, val = 1029}, {name = 0x559822f99dff "modparam", has_arg = 1, flag = 0x0, val = 1030}, {name = 0x559822f99e08 "log-engine", has_arg = 1, flag = 0x0, val = 1031}, {name = 0x559822f99e13 "debug",
has_arg = 1, flag = 0x0, val = 1032}, {name = 0x0, has_arg = 0, flag = 0x0, val = 0}}
func = "main"
(gdb)
(gdb) quit
root@kamailio12:/# gdb /usr/sbin/kamailio /core.32173
GNU gdb (Debian 8.2.1-2+b3) 8.2.1
Copyright (C) 2018 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 /usr/sbin/kamailio...Reading symbols from /usr/lib/debug/.build-id/ed/15dbbb24fb309311e7a6a16cf9222a82afb102.debug...done.
done.
[New LWP 32173]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by /usr/sbin/kamailio -f /etc/kamailio/kamailio.cfg -m 2048 -M 32'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007fb49968e61f in ?? () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 (gdb) bt full #0 0x00007fb49968e61f in ?? () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 No symbol table info available. #1 0x00007fb49968e72d in ?? () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 No symbol table info available. #2 0x00007fb49968dd05 in CONF_modules_load () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 No symbol table info available. #3 0x00007fb49968e2cb in CONF_modules_load_file () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 No symbol table info available. #4 0x00007fb417fa717e in ?? () from /usr/lib/x86_64-linux-gnu/libcurl.so.4 No symbol table info available. #5 0x00007fb417f6d1cf in ?? () from /usr/lib/x86_64-linux-gnu/libcurl.so.4 No symbol table info available. #6 0x00007fb417fec560 in set_curl_mem_callbacks () at http_multi.c:367 rc = CURLE_OK __func__ = "set_curl_mem_callbacks" #7 0x00007fb417fed407 in init_http_multi (evbase=0x559825127df0, wg=0x7fb419b34848) at http_multi.c:396 __func__ = "init_http_multi" #8 0x00007fb417fd65f8 in async_http_run_worker (worker=0x7fb4198d4600) at async_http.c:91 No locals. #9 0x00007fb417ffa3a6 in child_init (rank=0) at http_async_client_mod.c:366 pid = 0 i = 3 __func__ = "child_init" #10 0x0000559822cca246 in init_mod_child (m=0x7fb499a93d70, rank=0) at core/sr_module.c:780 __func__ = "init_mod_child" #11 0x0000559822cc9e61 in init_mod_child (m=0x7fb499a949f0, rank=0) at core/sr_module.c:776 __func__ = "init_mod_child" #12 0x0000559822cc9e61 in init_mod_child (m=0x7fb499a94e90, rank=0) at core/sr_module.c:776 __func__ = "init_mod_child" #13 0x0000559822cc9e61 in init_mod_child (m=0x7fb499a95330, rank=0) at core/sr_module.c:776 __func__ = "init_mod_child" --Type <RET> for more, q to quit, c to continue without paging-- #14 0x0000559822cc9e61 in init_mod_child (m=0x7fb499a95b30, rank=0) at core/sr_module.c:776 __func__ = "init_mod_child" #15 0x0000559822cc9e61 in init_mod_child (m=0x7fb499a966d0, rank=0) at core/sr_module.c:776 __func__ = "init_mod_child" #16 0x0000559822cc9e61 in init_mod_child (m=0x7fb499a96d18, rank=0) at core/sr_module.c:776 __func__ = "init_mod_child" #17 0x0000559822cc9e61 in init_mod_child (m=0x7fb499a97250, rank=0) at core/sr_module.c:776 __func__ = "init_mod_child" #18 0x0000559822cc9e61 in init_mod_child (m=0x7fb499a978d0, rank=0) at core/sr_module.c:776 __func__ = "init_mod_child" #19 0x0000559822cc9e61 in init_mod_child (m=0x7fb499a97c80, rank=0) at core/sr_module.c:776 __func__ = "init_mod_child" #20 0x0000559822cc9e61 in init_mod_child (m=0x7fb499a985f0, rank=0) at core/sr_module.c:776 __func__ = "init_mod_child" #21 0x0000559822ccab71 in init_child (rank=0) at core/sr_module.c:825 ret = 32692 type = 0x559822fc88eb "PROC_MAIN" __func__ = "init_child" #22 0x0000559822b76101 in main_loop () at main.c:1763 i = 8 pid = 32165 si = 0x0 si_desc = "udp receiver child=7 sock=172.19.140.102:5060\000\000\000\003\000\000\000)\000\000\000\000\274[\351\352ZP\207
\027\v%\230U\000\000\210P\371"\230U\000\000\000\000\000\000\000\000\000\000\260|\255\233\264\177\000\000\363>\376"\230U\000\000\000\000\000\200\000\000\000\000\320\177N\204\377\177\000\000h]\337"\230U\000"
nrprocs = 8
woneinit = 1
func = "main_loop"
#23 0x0000559822b80516 in main (argc=7, argv=0x7fff844e8518) at main.c:2856
cfg_stream = 0x559824fcb260
c = -1
r = 0
--Type for more, q to quit, c to continue without paging--
tmp = 0x7fff844e8def ""
tmp_len = 0
port = 0
proto = 1
ahost = 0x0
aport = 0
options = 0x559822f97d38 ":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O
ret = -1
seed = 3411128981
rfd = 4
debug_save = 0
debug_flag = 0
dont_fork_cnt = 0
n_lst = 0xffff00001f80
p = 0x0
st = {st_dev = 21, st_ino = 428223, st_nlink = 2, st_mode = 16832, st_uid = 0, st_gid = 0, __pad0 = 0, st_rdev = 0, st_size = 40, st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 1599374984, tv_nsec = 763308205}, st_mtim = {tv_sec = 1599374995,
tv_nsec = 555647093}, st_ctim = {tv_sec = 1599374995, tv_nsec = 555647093}, __glibc_reserved = {0, 0, 0}}
tbuf = "\000\000\000\000\000\000\000\000\b\000\000\000\000\000\000\000\060\367\331\233\264\177\000\000\000\000\000\000\000\000\000\000\240\301U\204\377\177\000\000\364\372\327\233\264\177\000\000\b\000\000\000\000\000\000\000\230\302U\204\377\177\000\000\060\367\331\233\264\177\000\000\270\202N\204\377\177\000\000\264\202N\204\377\177", '\000' <repeats 18 times>, "\230\302U\204\377\177\000\000\250\301U\204\377\177\000\000'N\266\233\264\177\000\000&\260be\000\000\000\000 \204N\204\377\177\000\000\300\212\225\001\000\000\000\000\200\203N\204\377\177\000\000p\203N\204\377\177\000\000\270\202N\204\377\177\000\000X\367\331\233\264\177\000\000\001", '\000' <repeats 31 times>...
option_index = 0
long_options = {{name = 0x559822f99dc6 "help", has_arg = 0, flag = 0x0, val = 104}, {name = 0x559822f9550c "version", has_arg = 0, flag = 0x0, val = 118}, {name = 0x559822f99dcb "alias", has_arg = 1, flag = 0x0, val = 1024}, {name = 0x559822f99dd1 "subst",
has_arg = 1, flag = 0x0, val = 1025}, {name = 0x559822f99dd7 "substdef", has_arg = 1, flag = 0x0, val = 1026}, {name = 0x559822f99de0 "substdefs", has_arg = 1, flag = 0x0, val = 1027}, {name = 0x559822f99dea "server-id", has_arg = 1, flag = 0x0, val = 1028},
{name = 0x559822f99df4 "loadmodule", has_arg = 1, flag = 0x0, val = 1029}, {name = 0x559822f99dff "modparam", has_arg = 1, flag = 0x0, val = 1030}, {name = 0x559822f99e08 "log-engine", has_arg = 1, flag = 0x0, val = 1031}, {name = 0x559822f99e13 "debug",
has_arg = 1, flag = 0x0, val = 1032}, {name = 0x0, has_arg = 0, flag = 0x0, val = 0}}
func = "main"
(gdb)
(gdb) quit
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.