jmordica left a comment (kamailio/kamailio#4102)

Seeing new things in the most recent crash with `coreparam[timer_sanity_check] 
= 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 kamailio...
Reading symbols from 
/usr/lib/debug/.build-id/df/18e4ad6fb7fc3beae5c386724b7d7031e621a5.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  0x00007fb7ced56eec in ?? () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt full
#0  0x00007fb7ced56eec in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1  0x00007fb7ced07fb2 in raise () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#2  0x00007fb7cecf2472 in abort () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#3  0x00005587f071daa4 in qm_debug_check_frag (qm=qm@entry=0x7fb5ba39b000, 
f=f@entry=0x7fb5c03bf600, 
    file=file@entry=0x5587f089ca84 "core: core/xavp.c", line=line@entry=117, 
eline=eline@entry=424, 
    efile=0x5587f089ffcc "core/mem/q_malloc.c") at core/mem/q_malloc.c:132
        p = <optimized out>
        __func__ = "qm_debug_check_frag"
#4  0x00005587f071ffe6 in qm_malloc (qmp=qmp@entry=0x7fb5ba39b000, size=64, 
file=file@entry=0x5587f089ca84 "core: core/xavp.c", 
    func=func@entry=0x5587f089e228 <__func__.21> "xavp_new_value", 
line=line@entry=117, mname=mname@entry=0x5587f084b004 "core")
    at core/mem/q_malloc.c:424
        qm = 0x7fb5ba39b000
        f = 0x7fb5c03bf600
        hash = <optimized out>
        list_cntr = <optimized out>
        __func__ = "qm_malloc"
#5  0x00005587f0723daf in qm_shm_malloc (qmp=0x7fb5ba39b000, size=<optimized 
out>, file=0x5587f089ca84 "core: core/xavp.c", 
    func=0x5587f089e228 <__func__.21> "xavp_new_value", line=117, 
mname=0x5587f084b004 "core") at core/mem/q_malloc.c:1486
        r = <optimized out>
#6  0x00005587f06fd564 in xavp_new_value (name=0x7fb5ba05a760 
<ds_xavp_ctx_cnt>, val=val@entry=0x7ffc25d41750) at core/xavp.c:117
        avp = <optimized out>
        size = 60
        id = 7279890
        __func__ = "xavp_new_value"
#7  0x00005587f0700ed7 in xavp_add_xavp_value (rname=0x7fb5ba05a7e0 
<ds_xavp_ctx>, name=<optimized out>, val=val@entry=0x7ffc25d41750, 
    list=list@entry=0x0) at core/xavp.c:255
        ravp = 0x0
        cavp = 0xf13b80719618d500
        rval = {type = SR_XTYPE_XAVP, v = {s = {s = 0x7fb7aef0f2e0 "\vC", len = 
-1174087341}, t = 140426890769120, l = 140426890769120, 
            ll = 140426890769120, xavp = 0x7fb7aef0f2e0, vptr = 0x7fb7aef0f2e0, 
data = 0x7fb7aef0f2e0}}
#8  0x00007fb5ba01365e in ds_select_dst_limit (msg=<optimized out>, 
set=<optimized out>, alg=<optimized out>, limit=<optimized out>, 
--Type <RET> for more, q to quit, c to continue without paging--info locals
    mode=<optimized out>) at ./src/modules/dispatcher/dispatch.c:2399
        ret = 1
        nxval = {type = SR_XTYPE_LONG, v = {s = {s = 0x3 <error: Cannot access 
memory at address 0x3>, len = 0}, t = 3, l = 3, ll = 3, 
            xavp = 0x3, vptr = 0x3, data = 0x3}}
        vstate = {setid = 6128, alg = 7, umode = 0, limit = 65535, cnt = 3, 
emode = 1, lxavp = 0x7fb5bd299690}
        __func__ = "ds_select_dst_limit"
#9  0x00005587f0560b1d in sr_kemi_exec_func (ket=ket@entry=0x7fb5ba05a9d0 
<sr_kemi_dispatcher_exports+432>, msg=<optimized out>, 
    pno=pno@entry=2, vps=<optimized out>) at core/kemiexec.c:142
        ret = <optimized out>
        __func__ = "sr_kemi_exec_func"
#10 0x00007fb5b758d561 in sr_kemi_lua_exec_func_ex (L=L@entry=0x5587f81c5070, 
    ket=ket@entry=0x7fb5ba05a9d0 <sr_kemi_dispatcher_exports+432>, 
pdelta=pdelta@entry=0) at ./src/modules/app_lua/app_lua_api.c:1043
        i = <optimized out>
        argc = <optimized out>
        ret = <optimized out>
        fname = 0x7fb5ba05a9e0 <sr_kemi_dispatcher_exports+448>
        mname = 0x7fb5ba05a9d0 <sr_kemi_dispatcher_exports+432>
        vps = {{vtype = 1, v = {n = 6128, l = 6128, s = {s = 0x17f0 <error: 
Cannot access memory at address 0x17f0>, len = 0}, 
              dict = 0x17f0}}, {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 = 0x7fb5b75b9820 <_sr_L_env>
        xret = <optimized out>
        __func__ = "sr_kemi_lua_exec_func_ex"
#11 0x00007fb5b758f260 in sr_kemi_lua_exec_func (L=0x5587f81c5070, 
eidx=<optimized out>) at ./src/modules/app_lua/app_lua_api.c:1097
        ket = 0x7fb5ba05a9d0 <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 = 14, tz_dsttime = 0}
        tdiff = <optimized out>
        dinfo = {event = -1359936048, name = 0x7fb7aef10680 "", namewhat = 
0x15d <error: Cannot access memory at address 0x15d>, 
          what = 0x5587f08a4700 "core: core/parser/msg_parser.c", source = 
0x5587f08a5fe0 <__func__.21> "parse_headers", 
--Type <RET> for more, q to quit, c to continue without paging--list
          currentline = -1219133064, nups = 32693, linedefined = -1359935936, 
lastlinedefined = 8192, 
          short_src = 
"(Q\034\370\207U\000\000\004\260\204\360\207U\000\0000\347\035\370\207U\000\000\001\000\000\000\000\000\000\000pP\034\370\207U\000\000P\347\035\370\207U\000\000\004\000\000\000\000\000\000\000\001\000\000",
 i_ci = 0}
        __func__ = "sr_kemi_lua_exec_func"
#12 0x00007fb5b7550119 in ?? () from /lib/x86_64-linux-gnu/liblua5.1.so.0
No symbol table info available.
#13 0x00007fb5b755bab7 in ?? () from /lib/x86_64-linux-gnu/liblua5.1.so.0
No symbol table info available.
#14 0x00007fb5b75507a5 in ?? () from /lib/x86_64-linux-gnu/liblua5.1.so.0
No symbol table info available.
#15 0x00007fb5b754fa9b in ?? () from /lib/x86_64-linux-gnu/liblua5.1.so.0
No symbol table info available.
#16 0x00007fb5b7550950 in ?? () from /lib/x86_64-linux-gnu/liblua5.1.so.0
No symbol table info available.
#17 0x00007fb5b754bd78 in lua_pcall () from /lib/x86_64-linux-gnu/liblua5.1.so.0
No symbol table info available.
#18 0x00007fb5b7589443 in app_lua_run_ex (msg=0x7fb7aef0f2e0, 
func=0x5587f0866b4f "ksr_request_route", p1=p1@entry=0x0, p2=p2@entry=0x0, 
    p3=p3@entry=0x0, emode=<optimized out>) at 
./src/modules/app_lua/app_lua_api.c:725
        n = <optimized out>
        ret = <optimized out>
        txt = <optimized out>
        bmsg = 0x0
        ltop = 51
        __func__ = "app_lua_run_ex"
#19 0x00007fb5b759f11a in sr_kemi_config_engine_lua (msg=<optimized out>, 
rtype=1, rname=0x0, rparam=<optimized out>)
    at ./src/modules/app_lua/app_lua_mod.c:128
        ret = -1
        __func__ = "sr_kemi_config_engine_lua"
#20 0x00005587f055e8c2 in sr_kemi_route (keng=keng@entry=0x5587f0985e60 
<_sr_kemi_eng_list>, msg=msg@entry=0x7fb7aef0f2e0, 
    rtype=rtype@entry=1, ename=ename@entry=0x0, edata=edata@entry=0x0) at 
core/kemi.c:3869
        sfbk = 0
        ret = <optimized out>
#21 0x00005587f05de9be in receive_msg (buf=<optimized out>, len=<optimized 
out>, rcv_info=<optimized out>) at core/receive.c:507
        msg = 0x7fb7aef0f2e0
--Type <RET> for more, q to quit, c to continue without paging--
```



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

Message ID: <kamailio/kamailio/issues/4102/[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