Here's the latest output of bt full for a segfault for pid 45:

GNU gdb (Debian 13.1-3) 13.1
Copyright (C) 2023 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:
<https://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/20/dc8be8c0aa02eba62b84db3c283789f068fb79.debug...

warning: Can't open file /dev/zero (deleted) during file-backed mapping note processing
[New LWP 45]
[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 -DD -E -m 8000 -M 512 -f /etc/kamailio/kamailio.cfg -P /var/run/kamail'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  timer_list_expire (slow_mark=<optimized out>, slow_l=<optimized out>, h=0x7f7b0b66ee20, t=<optimized out>) at core/timer.c:850
850	core/timer.c: No such file or directory.
(gdb) bt full
#0  timer_list_expire (slow_mark=<optimized out>, slow_l=<optimized out>, h=0x7f7b0b66ee20, t=<optimized out>) at core/timer.c:850
        tl = 0x7f7b1987cd00
        ret = <optimized out>
        tl = <optimized out>
        ret = <optimized out>
#1  timer_handler () at core/timer.c:925
        saved_ticks = <optimized out>
        run_slow_timer = 0
        i = <optimized out>
        saved_ticks = <optimized out>
        run_slow_timer = <optimized out>
        i = <optimized out>
        __func__ = "timer_handler"
        __llevel = <optimized out>
        __kld = <optimized out>
        __llevel = <optimized out>
        __kld = <optimized out>
#2  timer_main () at core/timer.c:963
No locals.
#3  0x000055b4df9cf0c1 in main_loop () at ./src/main.c:1933
        i = <optimized out>
        pid = <optimized out>
        si = <optimized out>
        si_desc = "udp receiver child=7 sock=10.142.0.56:5061\000(35.196.53.87:8060)\000\377\001\000\000\000\000\000\000\000\2145d#}\177\000\000\001\000\000\000\000\000\000\000\t\000\000\000\000\000\000\000Sun Jan 26 20:51:02 2025\n\000y#}\177\000"
        nrprocs = <optimized out>
        woneinit = 1
        __func__ = "main_loop"
        error = <optimized out>
#4  0x000055b4df9c353c in main (argc=<optimized out>, argv=<optimized out>) at ./src/main.c:3257
        cfg_stream = <optimized out>
        c = <optimized out>
        r = <optimized out>
        tmp = 0x7ffd877e54f4 ""

Here's the bt full for pid 1:

GNU gdb (Debian 13.1-3) 13.1
Copyright (C) 2023 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:
<https://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/20/dc8be8c0aa02eba62b84db3c283789f068fb79.debug...

warning: Can't open file /dev/zero (deleted) during file-backed mapping note processing
[New LWP 1]
[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 -DD -E -m 8000 -M 512 -f /etc/kamailio/kamailio.cfg -P /var/run/kamail'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  __GI_abort () at ./stdlib/abort.c:107
107	./stdlib/abort.c: No such file or directory.
(gdb) bt full
#0  __GI_abort () at ./stdlib/abort.c:107
        act = {__sigaction_handler = {sa_handler = 0x0, sa_sigaction = 0x0}, sa_mask = {__val = {18446744073709551615, 0 <repeats 15 times>}}, sa_flags = 0, sa_restorer = 0x0}
#1  0x000055b4df9bcbf5 in sig_alarm_abort (signo=<optimized out>) at ./src/main.c:717
        __func__ = "sig_alarm_abort"
#2  <signal handler called>
No locals.
#3  syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:37
No locals.
#4  0x000055b4dfbe96ca in futex_get (lock=0x7f7b0b62ad20) at core/mem/../futexlock.h:108
        v = <optimized out>
        i = <optimized out>
        v = <optimized out>
        i = <optimized out>
        retry = <optimized out>
#5  timer_del_safe (tl=0x7f7b0cece950) at core/timer.c:696
        ret = -1
        again = <optimized out>
        __func__ = "timer_del_safe"
#6  0x00007f7d02de8917 in unlink_timers (t=0x7f7b0cece650) at ./src/modules/tm/timer.h:367
        i = <optimized out>
        i = <optimized out>
#7  free_cell_helper (dead_cell=0x7f7b0cece650, silent=silent@entry=1, fname=fname@entry=0x7f7d02eb23fa "h_table.c", fline=fline@entry=470) at ./src/modules/tm/h_table.c:151
        b = <optimized out>
        i = <optimized out>
        rpl = <optimized out>
        tt = <optimized out>
        foo = <optimized out>
        cbs = <optimized out>
        cbs_tmp = <optimized out>
        __func__ = "free_cell_helper"
#8  0x00007f7d02deb602 in free_hash_table () at ./src/modules/tm/h_table.c:470
        p_cell = <optimized out>
        tmp_cell = 0x7f7b0b685e40
        i = 21

These are the only logs I see worth noting before the crash:

ERROR 2025-01-27T18:30:05.205685846Z [resource.labels.containerName: kamailio] 0(1) ALERT: <core> [main.c:806]: handle_sigs(): child process 45 exited by a signal 11
ERROR 2025-01-27T18:30:05.205713122Z [resource.labels.containerName: kamailio] 0(1) ALERT: <core> [main.c:810]: handle_sigs(): core was generated
ERROR 2025-01-27T18:31:34.797944246Z [resource.labels.containerName: kamailio] 0(1) CRITICAL: <core> [main.c:716]: sig_alarm_abort(): shutdown timeout triggered, dying...


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/issues/4102/2616820889@github.com>