robertboardman-gamma created an issue (kamailio/kamailio#4629)

<!--
Kamailio Project uses GitHub Issues only for bugs in the code or feature 
requests. Please use this template only for bug reports.

If you have questions about using Kamailio or related to its configuration 
file, ask on sr-users mailing list:

  * 
https://lists.kamailio.org/mailman3/postorius/lists/sr-users.lists.kamailio.org/

If you have questions about developing extensions to Kamailio or its existing C 
code, ask on sr-dev mailing list:

  * 
https://lists.kamailio.org/mailman3/postorius/lists/sr-dev.lists.kamailio.org/

Please try to fill this template as much as possible for any issue. It helps 
the developers to troubleshoot the issue.

Note that an issue report may be closed automatically after about 2 months
if there is no interest from developers or community users on pursuing it, being
considered expired. In such case, it can be reopened by writing a comment that 
includes
the token `/notexpired`. About two weeks before considered expired, the issue is
marked with the label `stale`, trying to notify the submitter and everyone else
that might be interested in it. To remove the label `stale`, write a comment 
that
includes the token `/notstale`. Also, any comment postpone the `expire` 
timeline,
being considered that there is interest in pursuing the issue.

If there is no content to be filled in a section, the entire section can be 
removed.

You can delete the comments from the template sections when filling.

You can delete next line and everything above before submitting (it is a 
comment).
-->

### Description

I've updated to 6.1.1 from 5.8.7 to take advantage of the new dialog refer 
options, but I have been using the rtpengine dtmf-events.

The problem is every time a dtmf event is received  the kamailio segfaults

2026-03-05T16:09:23.210394+00:00 kamailio-dev kernel: kamailio[3994]: segfault 
at 10 ip 0000748e5f6ff967 sp 00007fff8b35fcb0 error 4 in 
rtpengine.so[11967,748e5f6f6000+52000] likely on CPU 1 (core 0, socket 0)
2026-03-05T16:09:23.210422+00:00 kamailio-dev kernel: Code: 5f c1 05 00 4d 29 
e2 31 ff c7 85 e8 7d ff ff 04 00 00 00 44 89 95 d8 7d ff ff 48 8d 8d d0 7d ff 
ff ba fe 00 00 00 49 8d 77 18 <41> ff 57 10 85 c0 0f 89 27 fb ff ff 41 8b 1e 4c 
8b a5 80 7d ff ff
2026-03-05T16:09:23.663516+00:00 kamailio-dev kamailio[3996]: 11(3996) 
CRITICAL: <core> [core/pass_fd.c:284]: receive_fd(): EOF on 4
2026-03-05T16:09:23.668949+00:00 kamailio-dev kamailio[3985]:  0(3985) ALERT: 
<core> [main.c:824]: handle_sigs(): child process 3994 exited by a signal 11
2026-03-05T16:09:23.669581+00:00 kamailio-dev kamailio[3985]:  0(3985) ALERT: 
<core> [main.c:828]: handle_sigs(): core was generated

I have checked to ensure the rtpengine.so is the correct version and it is 
showing 6.1.1

### Troubleshooting
I have chnaged the kamailaio.cfg so that the dtmf event is not used and the 
system still crashes
#### Reproduction

enable dtmf events from kamailio in 6.1.1 from rtpengine and during a call from 
either caller or callee and the system segfaults

#### Debugging Data

<!--
If you got a core dump, use gdb to extract troubleshooting data - full 
backtrace,
local variables and the list of the code at the issue location.

  gdb /path/to/kamailio /path/to/corefile
  bt full
  info locals
  list

If you are familiar with gdb, feel free to attach more of what you consider to
be relevant.
-->

```
(paste your debugging data here)
(gdb) bt full
#0  0x00007b9f52468967 in ?? () from 
/usr/lib/x86_64-linux-gnu/kamailio/modules/rtpengine.so
No symbol table info available.
#1  0x00007b9f5247259a in ?? () from 
/usr/lib/x86_64-linux-gnu/kamailio/modules/rtpengine.so
No symbol table info available.
#2  0x00005561366ed1c6 in ?? ()
No symbol table info available.
#3  0x00005561366ed177 in ?? ()
No symbol table info available.
#4  0x00005561366ed177 in ?? ()
No symbol table info available.
#5  0x00005561366ed177 in ?? ()
No symbol table info available.
#6  0x00005561366f0362 in init_child ()
No symbol table info available.
#7  0x000055613636cd0e in main_loop ()
No symbol table info available.
#8  0x000055613635cd50 in main ()
No symbol table info available.



#### Log Messages

<!--
Check the syslog file and if there are relevant log messages printed by 
Kamailio, add them next, or attach to issue, or provide a link to download them 
(e.g., to a pastebin site).
-->

```
(paste your log messages here)
```

#### SIP Traffic

<!--
If the issue is exposed by processing specific SIP messages, grab them with 
ngrep or save in a pcap file, then add them next, or attach to issue, or 
provide a link to download them (e.g., to a pastebin site).
-->

```
(paste your sip traffic here)
```

### Possible Solutions

<!--
If you found a solution or workaround for the issue, describe it. Ideally, 
provide a pull request with a fix.
-->

### Additional Information

  * **Kamailio Version** - output of `kamailio -v`

 kamailio -v
version: kamailio 6.1.1 (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, DBG_QM_MALLOC, DBG_F_MALLOC, 
DBG_TLSF_MALLOC, USE_FUTEX, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, 
USE_DST_BLOCKLIST, HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED
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.
id: unknown
compiled with gcc 13.3.0

* **Operating System**:

<!--
Details about the operating system, the type: Linux (e.g.,: Debian 8.4, Ubuntu 
16.04, CentOS 7.1, ...), MacOS, xBSD, Solaris, ...;
Kernel details (output of `lsb_release -a` and `uname -a`)
-->

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 24.04.2 LTS
Release:        24.04
Codename:       noble
uname -a
Linux kamailio-dev 6.8.0-1029-aws #31-Ubuntu SMP Wed Apr 23 18:42:41 UTC 2025 
x86_64 x86_64 x86_64 GNU/Linux



-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4629
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!

Reply via email to