OpenSIPS / opensips

OpenSIPS is a GPL implementation of a multi-functionality SIP Server that targets to deliver a high-level technical solution (performance, security and quality) to be used in professional SIP server platforms.
https://opensips.org
Other
1.27k stars 578 forks source link

[CRASH] module carrierroute crash when start opensips and open debug #3456

Open garry6543121 opened 1 month ago

garry6543121 commented 1 month ago

OpenSIPS version you are running

3.1.2

Crash Core Dump

(gdb) bt full

0 0x00007f6127f5b703 in carrier_fixup (param=0x7f61a41ea490) at carrierroute.c:396

    __FUNCTION__ = "carrier_fixup"

1 0x000056419096ef29 in fix_cmd (params=params@entry=0x7f6127f6fa60 <cmds+256>, elems=elems@entry=0x7f61a40fc9d0) at mod_fix.c:241

    i = 1
    param = <optimized out>
    gp = 0x7f61a41ea488
    ret = <optimized out>
    pve = 0x7f61a4230608
    re = 0x0
    h = 0x7f61a41ea498
    __FUNCTION__ = "fix_cmd"

2 0x0000564190985483 in fix_actions (a=) at route.c:1273

    t = 0x7f61a40fc9c8
    ret = <optimized out>
    cmd = <optimized out>
    acmd = <optimized out>
    s = {s = 0x8 <error: Cannot access memory at address 0x8>, len = -1869065654}
    model = 0x0
    xlp = <optimized out>
    __FUNCTION__ = "fix_actions"

3 0x0000564190986a83 in fix_expr (exp=0x7f61a40fcad8) at route.c:1067

    re = <optimized out>
    ret = -5
    __FUNCTION__ = "fix_expr"

4 0x00005641909853ad in fix_actions (a=) at route.c:1188

    t = 0x7f61a40fd2a8
    ret = <optimized out>
    cmd = <optimized out>
    acmd = <optimized out>
    s = {s = 0x7f61a40f6dd0 "($ci) cache_fetch  ($(td{s.escape.common})_$(tU{s.escape.common})_sn)\n", len = 70}
    model = 0x7f61a422e560
    xlp = <optimized out>
    __FUNCTION__ = "fix_actions"

5 0x000056419098e7a6 in fix_rls () at route.c:1410

    i = 0
    ret = <optimized out>

--Type for more, q to quit, c to continue without paging--

6 0x00005641908ed812 in main (argc=, argv=) at main.c:1496

    c = <optimized out>
    r = <optimized out>
    tmp = 0x7ffd1908270c ""
    tmp_len = <optimized out>
    port = <optimized out>
    proto = <optimized out>
    protos_no = <optimized out>
    options = 0x564190b5b9f0 "f:cCm:M:b:l:n:N:rRvdDFEVhw:t:u:g:p:P:G:W:o:a:k:s:"
    seed = 1944467758
    rfd = <optimized out>
    __FUNCTION__ = "main"

(gdb) f 0

0 0x00007f6127f5b703 in carrier_fixup (param=0x7f61a41ea490) at carrierroute.c:396

396 in carrierroute.c (gdb) p param $1 = (void ) 0x1 (gdb)

Describe the traffic that generated the bug

To Reproduce

opensips.cfg has the following configurations log_level=5 xlog_level=3

Relevant System Logs

OS/environment information

Additional context

github-actions[bot] commented 1 month ago

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

bogdan-iancu commented 3 weeks ago

@garry6543121 , the 3.1 version in no longer maintained (see here. Maybe you consider an upgrade to 3.4 ?

github-actions[bot] commented 6 days ago

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.