IgorrG created an issue (kamailio/kamailio#4606)
### Description
We have tried to use async_task_group_data() in our configuration and found
that it always throw error like below, while async_task_data() operate as
expected.
#### Log Messages
```
Feb 25 17:09:33 rtp-kamailio2 kamailio[104778]: 2(104778) ERROR: {2 20006 BYE
af1f9c96-c34d-4d3d-b73c-825c94e8a52d} async [async_sleep.c:621]:
async_send_data(): could not allocate shared memory from shm pool
```
### Possible Solutions
Seems that third parameter of async_task_group_data not initialized properly
and malloc size in shm_malloc not calculated properly.
```
--- a/src/modules/async/async_mod.c
+++ b/src/modules/async/async_mod.c
@@ -398,7 +398,7 @@ static int fixup_async_task_route(void **param, int
param_no)
return -1;
}
- if(param_no == 1 || param_no == 2 || param_no == 2) {
+ if(param_no == 1 || param_no == 2 || param_no == 3) {
if(fixup_spve_null(param, 1) < 0)
return -1;
return 0;
``
### Additional Information
version: kamailio 6.0.3 (x86_64/linux) 5095b7
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_SEND_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: 5095b7
compiled on 13:07:39 Feb 25 2026 with gcc 12.2.0
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4606
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/[email protected]>_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the
sender!