### Description
Kamailio version 5.7.4 crashed with a core file. Maybe it's related to the dmq module.
#### Debugging Data
```
(gdb) bt full
#0 atomic_inc_int (var=0x7f5700000000) at
../../core/parser/../mem/../atomic/atomic_x86.h:236
No locals.
#1 cfg_update_local (no_cbs=<optimized out>) at ../../core/cfg/cfg_struct.h:381
group = <optimized out>
last_cb = 0x7f57c99545e0
prev_cb = <optimized out>
group = <optimized out>
last_cb = <optimized out>
prev_cb = <optimized out>
__func__ = "cfg_update_local"
#2 worker_loop (id=id@entry=2) at worker.c:57
worker = <optimized out>
current_job = <optimized out>
peer_response = {resp_code = 1, content_type = {s = 0x55ea7b42cfca
<init_mod_child+90> "\205\300\017\210\r\002", len = 15}, reason = {s =
0x0, len = 2}, body = {
s = 0x7ffcf6347c30 "\001", len = 2069833640}}
ret_value = <optimized out>
not_parsed = <optimized out>
dmq_node = 0x0
__func__ = "worker_loop"
#3 0x00007f57d9426a11 in child_init (rank=<optimized out>) at dmq.c:321
i = 2
newpid = <optimized out>
__func__ = "child_init"
#4 0x000055ea7b42cfca in init_mod_child (m=0x7f57dd005640, rank=rank@entry=0) at
core/sr_module.c:911
ret = 0
__func__ = "init_mod_child"
#5 0x000055ea7b42cfa4 in init_mod_child (m=0x7f57dd005b90, rank=rank@entry=0) at
core/sr_module.c:903
ret = <optimized out>
__func__ = "init_mod_child"
#6 0x000055ea7b42cfa4 in init_mod_child (m=0x7f57dd006910, rank=rank@entry=0) at
core/sr_module.c:903
ret = <optimized out>
__func__ = "init_mod_child"
#7 0x000055ea7b42cfa4 in init_mod_child (m=0x7f57dd006e70, rank=rank@entry=0) at
core/sr_module.c:903
ret = <optimized out>
__func__ = "init_mod_child"
#8 0x000055ea7b42cfa4 in init_mod_child (m=0x7f57dd008660, rank=rank@entry=0) at
core/sr_module.c:903
ret = <optimized out>
__func__ = "init_mod_child"
#9 0x000055ea7b42cfa4 in init_mod_child (m=0x7f57dd0089d0, rank=rank@entry=0) at
core/sr_module.c:903
ret = <optimized out>
__func__ = "init_mod_child"
#10 0x000055ea7b42cfa4 in init_mod_child (m=0x7f57dd008d70, rank=rank@entry=0) at
core/sr_module.c:903
ret = <optimized out>
__func__ = "init_mod_child"
#11 0x000055ea7b43239e in init_child (rank=rank@entry=0) at core/sr_module.c:990
ret = <optimized out>
type = <optimized out>
__func__ = "init_child"
#12 0x000055ea7b288365 in main_loop () at main.c:1929
i = <optimized out>
pid = <optimized out>
si = 0x0
si_desc = "udp receiver child=15
sock=172.20.21.4:5060\000\000\000\000\000H\211\064\366\374\177\000\000\301'C{\352U\000\000\276\000\000\000\002\000\000\000\017\247`{\352U\000\000\062\323b{\352U\000\000U\024\000\000\000\000\000\000\004\000_{\352U\000\000\000\272\030D\344\223ԃ\270Rc{\352U\000\000\004\000\000\000\000\000\000"
nrprocs = <optimized out>
woneinit = 1
__func__ = "main_loop"
error = <optimized out>
#13 0x000055ea7b27be9e in main (argc=<optimized out>, argv=<optimized out>) at
main.c:3213
cfg_stream = <optimized out>
c = <optimized out>
r = <optimized out>
tmp = 0x7ffcf6349e4e ""
tmp_len = -554008000
port = 32599
proto = 0
ahost = 0x0
aport = 0
options = 0x55ea7b5f2cc8
":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 = 1892320457
rfd = <optimized out>
debug_save = <optimized out>
debug_flag = <optimized out>
dont_fork_cnt = <optimized out>
n_lst = <optimized out>
p = <optimized out>
st = {st_dev = 0, st_ino = 0, st_nlink = 0, st_mode = 0, st_uid = 0, st_gid = 0,
__pad0 = 0, st_rdev = 0, st_size = 0, st_blksize = 0, st_blocks = 0, st_atim = {tv_sec =
0,
tv_nsec = 0}, st_mtim = {tv_sec = 0, tv_nsec = 0}, st_ctim = {tv_sec = 0,
tv_nsec = 0}, __glibc_reserved = {0, 0, 0}}
tbuf = '\000' <repeats 20 times>, " ", '\000'
<repeats 35 times>, "\006\000\000\000\000\000\000\200", '\000'
<repeats 56 times>, "\006\000\000\000\000\000\000\200", '\000'
<repeats 168 times>...
option_index = 9
long_options = {{name = 0x55ea7b5f12ea "help", has_arg = 0, flag = 0x0,
val = 104}, {name = 0x55ea7b5fa98e "version", has_arg = 0, flag = 0x0, val =
118}, {
name = 0x55ea7b60a690 "alias", has_arg = 1, flag = 0x0, val = 1024},
{name = 0x55ea7b5f12ef "subst", has_arg = 1, flag = 0x0, val = 1025}, {name =
0x55ea7b5f12f5 "substdef",
has_arg = 1, flag = 0x0, val = 1026}, {name = 0x55ea7b5f12fe
"substdefs", has_arg = 1, flag = 0x0, val = 1027}, {name = 0x55ea7b5f1308
"server-id", has_arg = 1, flag = 0x0,
val = 1028}, {name = 0x55ea7b5f1312 "loadmodule", has_arg = 1, flag
= 0x0, val = 1029}, {name = 0x55ea7b5f131d "modparam", has_arg = 1, flag = 0x0,
val = 1030}, {
name = 0x55ea7b5f1326 "log-engine", has_arg = 1, flag = 0x0, val =
1031}, {name = 0x55ea7b5faaab "debug", has_arg = 1, flag = 0x0, val = 1032}, {
name = 0x55ea7b5f1331 "cfg-print", has_arg = 0, flag = 0x0, val =
1033}, {name = 0x55ea7b5f133b "atexit", has_arg = 1, flag = 0x0, val = 1034}, {
name = 0x55ea7b5f1342 "all-errors", has_arg = 0, flag = 0x0, val =
1035}, {name = 0x0, has_arg = 0, flag = 0x0, val = 0}}
__func__ = "main"
(gdb) info locals
No locals.
(gdb) list
231 in ../../core/parser/../mem/../atomic/atomic_x86.h
```
#### Log Messages
```
Jul 2 15:24:44 hostname kernel: kamailio[1098]: segfault at 7f5700000000 ip
00007f57d94467a0 sp 00007ffcf6347b00 error 6 in dmq.so[7f57d9426000+23000]
```
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
version: kamailio 5.7.4 (x86_64/linux)
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST,
DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, MEM_JOIN_FREE, 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_BLOCKLIST, HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED
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:
compiled with gcc 10.2.1
```
* **Operating System**:
```
Debian: 11.10 - Bullseye
Linux 5.10.0-30-amd64 #1 SMP Debian 5.10.218-1 (2024-06-01) x86_64 GNU/Linux
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3905
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3905(a)github.com>