[sr-dev] [kamailio] cnxcc: segmentation fault on 2 calls get terminatet - kamailio 4.3.3 (#417)

Rick notifications at github.com
Wed Nov 25 13:04:38 CET 2015


Log:

```
Nov 25 12:01:23 sip42 kamailio[29215]: INFO: <script>: start - duration: 0
Nov 25 12:01:24 sip42 kamailio[29234]: INFO: cnxcc [cnxcc_check.c:93]: check_calls_by_money(): ec=0.000000, ca=1.000000, ca2=0.000000
Nov 25 12:01:24 sip42 kamailio[29218]: INFO: <script>: start - duration: 0 
Nov 25 12:01:25 sip42 kamailio[29234]: INFO: cnxcc [cnxcc_check.c:93]: check_calls_by_money(): ec=0.000000, ca=4.000000, ca2=1.000000
Nov 25 12:01:26 sip42 kamailio[29234]: INFO: cnxcc [cnxcc_check.c:93]: check_calls_by_money(): ec=0.000000, ca=7.000000, ca2=4.000000
Nov 25 12:01:27 sip42 kamailio[29234]: INFO: cnxcc [cnxcc_check.c:93]: check_calls_by_money(): ec=0.000000, ca=9.000000, ca2=7.000000
Nov 25 12:01:28 sip42 kamailio[29234]: INFO: cnxcc [cnxcc_check.c:93]: check_calls_by_money(): ec=0.000000, ca=11.000000, ca2=9.000000
Nov 25 12:01:28 sip42 kamailio[29234]: INFO: <script>: [2JR.9RLbmcERvjSelQ5zHRdAONs1pk0V]: call killed
Nov 25 12:01:28 sip42 kamailio[29234]: INFO: <script>: [73tmL4-hk3-50vnsgt19E4rPMMAqHlAG]: call killed
Nov 25 12:01:28 sip42 kamailio[29234]: ERROR: cnxcc [cnxcc_mod.c:1023]: terminate_call(): Error executing dlg_end_dlg command. Return code was [404]
Nov 25 12:01:28 sip42 kamailio[29246]: CRITICAL: <core> [pass_fd.c:275]: receive_fd(): EOF on 45
Nov 25 12:01:28 sip42 kamailio[29187]: ALERT: <core> [main.c:728]: handle_sigs(): child process 29234 exited by a signal 11
Nov 25 12:01:28 sip42 kamailio[29187]: ALERT: <core> [main.c:731]: handle_sigs(): core was not generated
Nov 25 12:01:28 sip42 kamailio[29187]: INFO: <core> [main.c:743]: handle_sigs(): terminating due to SIGCHLD
```

Stacktrace:
```
(gdb) bt full
#0  0x00007f3e25b5cfba in get_hash1_raw (s=0x0, len=0) at ../../hashes.h:109
        p = 0x0
        v = 4284224
        h = 0
#1  0x00007f3e25b5d22d in str_hash_get (ht=0x7f3e26333580, key=0x0, len=0) at ../../str_hash.h:94
        h = 32766
        e = 0x301c31c78
#2  0x00007f3e25b69167 in __free_call (call=0x7f3e2646da00) at cnxcc_mod.c:910
        e = 0x0
        __FUNCTION__ = "__free_call"
#3  0x00007f3e25b68dd5 in terminate_all_calls (credit_data=0x7f3e2646d950) at cnxcc_mod.c:899
        call = 0x7f3e2646da00
        tmp = 0x7f3e2646da00
        __FUNCTION__ = "terminate_all_calls"
#4  0x00007f3e25b5952f in check_calls_by_money (ticks=51698976, param=0x0) at cnxcc_check.c:109
        credit_data = 0x7f3e2646d950
        call = 0x7f3e2646da00
        total_consumed_money = 11
        consumption_diff = 2
        h_entry = 0x7f3e2646d858
        tmp = 0x7f3e26335c00
        tmp_call = 0x7f3e2647d680
        i = 118
        __FUNCTION__ = "check_calls_by_money"
#5  0x00000000005bcf1c in fork_basic_timer (child_id=-1, desc=0x7f3e25b866fd "CNXCC TB TIMER", make_sock=1, f=0x7f3e25b58200 <check_calls_by_money>, param=0x0, interval=1)
    at timer_proc.c:79
        pid = 0
#6  0x00007f3e25b5ffce in __child_init (rank=0) at cnxcc_mod.c:383
        pid = 0
        __FUNCTION__ = "__child_init"
#7  0x00000000005143d4 in init_mod_child (m=0x7f3e315cf8a8, rank=0) at sr_module.c:915
        __FUNCTION__ = "init_mod_child"
#8  0x00000000005146db in init_child (rank=0) at sr_module.c:941
No locals.
#9  0x0000000000505cef in main_loop () at main.c:1654
        i = 4
        pid = 1327
        si = 0x0
        si_desc = "udp receiver child=3 sock=127.0.0.1:5060\000\061\000*>\177\000\000\240.~\264\376\177\000\000\a<\355*>\177\000\000y%p\000\000\000\000\000ȥ3&>\177\000\000\220$\361*>\177\000\000\300(l1>\177\000\000\000\371\360*>\177\000\000\003\000\000\000>\177\000\000\060.~\264\376\177\000\000xBI\000\000\000\000"
        nrprocs = 4
        __FUNCTION__ = "main_loop"
#10 0x000000000050be5a in main (argc=13, argv=0x7ffeb47e3138) at main.c:2553
        cfg_stream = 0x1b9c010
        c = -1
        r = 0
        tmp = 0x7ffeb47e4ee2 ""
        tmp_len = 32574
        port = 846456272
        proto = 0
        options = 0x71cae0 ":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:"
        ret = -1
        seed = 1760074178
        rfd = 4
        debug_save = 0
        debug_flag = 0
        dont_fork_cnt = 0
        n_lst = 0xf63d4e2e
        p = 0x7f3e3273e000 ""
        st = {st_dev = 15, st_ino = 9426, st_nlink = 2, st_mode = 16877, st_uid = 109, st_gid = 114, __pad0 = 0, st_rdev = 0, st_size = 40, st_blksize = 4096, st_blocks = 0, 
          st_atim = {tv_sec = 1448451190, tv_nsec = 195999907}, st_mtim = {tv_sec = 1448451190, tv_nsec = 195999907}, st_ctim = {tv_sec = 1448451190, tv_nsec = 195999907}, 
          __glibc_reserved = {0, 0, 0}}
        __FUNCTION__ = "main"
```

---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/417
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20151125/20c9a9d0/attachment.html>


More information about the sr-dev mailing list