jmordica left a comment (kamailio/kamailio#4102)

@miconda some interesting new data in the output of a new crash:
ran the following:
```
bt full
info locals
list
```

```
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 24]
[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 SIGABRT, Aborted.
#0  __pthread_kill_implementation (threadid=<optimized out>, 
signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
44      ./nptl/pthread_kill.c: No such file or directory.
(gdb) bt full
#0  __pthread_kill_implementation (threadid=<optimized out>, 
signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
        tid = <optimized out>
        ret = 0
        pd = <optimized out>
        old_mask = {__val = {0}}
        ret = <optimized out>
#1  0x00007f0fdb46df1f in __pthread_kill_internal (signo=6, threadid=<optimized 
out>) at ./nptl/pthread_kill.c:78
No locals.
#2  0x00007f0fdb41efb2 in __GI_raise (sig=sig@entry=6) at 
../sysdeps/posix/raise.c:26
        ret = <optimized out>
#3  0x00007f0fdb409472 in __GI_abort () at ./stdlib/abort.c:79
        save_stage = 1
        act = {__sigaction_handler = {sa_handler = 0x20, sa_sigaction = 0x20}, 
sa_mask = {__val = {0, 1880844493789993498, 1880844493789993498, 
1880844493789993498, 1880844493789993498, 
              0, 0, 0, 0, 2314885530818453536, 2314885530818453536, 
2314885530818453536, 2314885530818453536, 0, 0, 0}}, sa_flags = 0, sa_restorer 
= 0x55d8a82f0320 <log_prefix_buf>}
#4  0x000055d8a80ee414 in qm_debug_check_frag (qm=qm@entry=0x7f0dc3400000, 
f=f@entry=0x7f0dc9b5bd60, file=file@entry=0x55d8a822e67f "core: core/xavp.c", 
line=line@entry=117, 
    eline=eline@entry=424, efile=0x55d8a8231bcc "core/mem/q_malloc.c") at 
core/mem/q_malloc.c:132
        p = <optimized out>
        __func__ = "qm_debug_check_frag"
#5  0x000055d8a80f0956 in qm_malloc (qmp=qmp@entry=0x7f0dc3400000, size=80, 
file=file@entry=0x55d8a822e67f "core: core/xavp.c", 
    func=func@entry=0x55d8a822fe28 <__func__.21> "xavp_new_value", 
line=line@entry=117, mname=mname@entry=0x55d8a81e0004 "core") at 
core/mem/q_malloc.c:424
        qm = 0x7f0dc3400000
        f = 0x7f0dc9b5bd60
        hash = <optimized out>
        list_cntr = <optimized out>
        __func__ = "qm_malloc"
#6  0x000055d8a80f471f in qm_shm_malloc (qmp=0x7f0dc3400000, size=<optimized 
out>, file=0x55d8a822e67f "core: core/xavp.c", func=0x55d8a822fe28 
<__func__.21> "xavp_new_value", line=117, 
    mname=0x55d8a81e0004 "core") at core/mem/q_malloc.c:1486
        r = <optimized out>
#7  0x000055d8a80cdf04 in xavp_new_value (name=0x7f0fba8a9750 
<ds_xavp_dst_addr>, val=val@entry=0x7ffebe9e7a80) at core/xavp.c:117
        avp = <optimized out>
        size = 79
        id = 8122237
--Type <RET> for more, q to quit, c to continue without paging--info locals
        __func__ = "xavp_new_value"
#8  0x000055d8a80ce5b9 in xavp_add_value (name=<optimized out>, 
val=val@entry=0x7ffebe9e7a80, list=list@entry=0x7ffebe9e7a78) at core/xavp.c:212
        avp = 0x0
#9  0x00007f0fba85aa90 in ds_add_xavp_record (dsidx=dsidx@entry=0x7f0dc9f56090, 
pos=pos@entry=2, set=6206, alg=7, pxavp=pxavp@entry=0x7ffebe9e7d78)
    at ./src/modules/dispatcher/dispatch.c:2029
        nxavp = 0x0
        nxval = {type = SR_XTYPE_STR, v = {s = {s = 0x7f0dca35e230 
"sip:10.52.0.5:5081", len = 18}, t = 139697203831344, l = 139697203831344, ll = 
139697203831344, xavp = 0x7f0dca35e230, 
            vptr = 0x7f0dca35e230, data = 0x7f0dca35e230}}
        __func__ = "ds_add_xavp_record"
#10 0x00007f0fba85c9cc in ds_manage_routes_fill_xavp (hash=1, 
idx=idx@entry=0x7f0dc9f56090, rstate=rstate@entry=0x7ffebe9e7d60) at 
./src/modules/dispatcher/dispatch.c:2240
        i = 2
        __func__ = "ds_manage_routes_fill_xavp"
#11 0x00007f0fba866e3f in ds_manage_routes (msg=msg@entry=0x7f0fbb5d2950, 
rstate=rstate@entry=0x7ffebe9e7d60) at ./src/modules/dispatcher/dispatch.c:2595
        i = <optimized out>
        hash = 1
        idx = 0x7f0dc9f56090
        ulast = <optimized out>
        vlast = <optimized out>
        xavp_filled = 0
        __func__ = "ds_manage_routes"
#12 0x00007f0fba869c2e in ds_select_dst_limit (msg=0x7f0fbb5d2950, 
set=<optimized out>, alg=<optimized out>, limit=<optimized out>, 
mode=<optimized out>)
    at ./src/modules/dispatcher/dispatch.c:2152
        ret = <optimized out>
        nxval = {type = 2820538372, v = {s = {s = 0x55d8a8243110 <__func__.1> 
"parse_from_header", len = 0}, t = 94389022241040, l = 94389022241040, ll = 
94389022241040, 
            xavp = 0x55d8a8243110 <__func__.1>, vptr = 0x55d8a8243110 
<__func__.1>, data = 0x55d8a8243110 <__func__.1>}}
        vstate = {setid = 6206, alg = 7, umode = 0, limit = 65535, cnt = 1, 
emode = 1, lxavp = 0x7f0dce308e60}
        __func__ = "ds_select_dst_limit"
#13 0x000055d8a7f3fcbd in sr_kemi_exec_func (ket=ket@entry=0x7f0fba8a9950 
<sr_kemi_dispatcher_exports+432>, msg=<optimized out>, pno=pno@entry=2, 
vps=<optimized out>)
    at core/kemiexec.c:140
        ret = <optimized out>
        __func__ = "sr_kemi_exec_func"
#14 0x00007f0fb7e10561 in sr_kemi_lua_exec_func_ex (L=L@entry=0x55d8a8cb7740, 
ket=ket@entry=0x7f0fba8a9950 <sr_kemi_dispatcher_exports+432>, 
pdelta=pdelta@entry=0)
--Type <RET> for more, q to quit, c to continue without paging--list
    at ./src/modules/app_lua/app_lua_api.c:1041
        i = <optimized out>
        argc = <optimized out>
        ret = <optimized out>
        fname = 0x7f0fba8a9960 <sr_kemi_dispatcher_exports+448>
        mname = 0x7f0fba8a9950 <sr_kemi_dispatcher_exports+432>
        vps = {{vtype = 1, v = {n = 6206, l = 6206, s = {s = 0x183e <error: 
Cannot access memory at address 0x183e>, len = 0}, dict = 0x183e}}, {vtype = 1, 
v = {n = 7, l = 7, s = {
                s = 0x7 <error: Cannot access memory at address 0x7>, len = 0}, 
dict = 0x7}}, {vtype = 0, v = {n = 0, l = 0, s = {s = 0x0, len = 0}, dict = 
0x0}}, {vtype = 0, v = {n = 0, 
              l = 0, s = {s = 0x0, len = 0}, dict = 0x0}}, {vtype = 0, v = {n = 
0, l = 0, s = {s = 0x0, len = 0}, dict = 0x0}}, {vtype = 0, v = {n = 0, l = 0, 
s = {s = 0x0, len = 0}, 
              dict = 0x0}}}
        env_L = 0x7f0fb7e3c820 <_sr_L_env>
        xret = <optimized out>
        __func__ = "sr_kemi_lua_exec_func_ex"
#15 0x00007f0fb7e12260 in sr_kemi_lua_exec_func (L=0x55d8a8cb7740, 
eidx=<optimized out>) at ./src/modules/app_lua/app_lua_api.c:1095
        ket = 0x7f0fba8a9950 <sr_kemi_dispatcher_exports+432>
        ret = <optimized out>
        tvb = {tv_sec = 0, tv_usec = 0}
        tve = {tv_sec = 0, tv_usec = 0}
        tz = {tz_minuteswest = -72, tz_dsttime = -1}
        tdiff = <optimized out>
        dinfo = {event = -1151524224, name = 0x0, namewhat = 0x5ec16061 <error: 
Cannot access memory at address 0x5ec16061>, what = 0x16 <error: Cannot access 
memory at address 0x16>, 
          source = 0x55d8a8dac230 
"62068473_169.150.46.34:5060;received=sip:173.219.55.107:51268;lr>\r\n\n9a9-9dd4-54170dc948b00\n-mux-demux
 strip-extmap ICE=remove RTP/AVP external internal codec-strip=all 
codec-offer=PCMU codec-offer=tel"..., currentline = -1210207880, nups = 32527, 
linedefined = -1151524112, lastlinedefined = 8192, 
          short_src = 
"\370w\313\250\330U\000\000\020\360=\273\017\177\000\000\260 
\322\250\330U\000\000\001\000\000\000\000\000\000\000@w\313\250\330U\000\000\320
 \322\250\330U\000\000\004\000\000\000\000\000\000\000\001\000\000", i_ci = 0}
        __func__ = "sr_kemi_lua_exec_func"
#16 0x00007f0fb7dd3119 in ?? () from /lib/x86_64-linux-gnu/liblua5.1.so.0
No symbol table info available.
#17 0x00007f0fb7ddeab7 in ?? () from /lib/x86_64-linux-gnu/liblua5.1.so.0
No symbol table info available.
#18 0x00007f0fb7dd37a5 in ?? () from /lib/x86_64-linux-gnu/liblua5.1.so.0
No symbol table info available.
--Type <RET> for more, q to quit, c to continue without paging--q
```

Is it possible that reloading dispatcher would cause any of this?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4102#issuecomment-2725811566
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/issues/4102/2725811...@github.com>
_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to