[sr-dev] [kamailio] kamailio 4.3.3 crash during usrloc save location and DMQ (#373)

Sebastian Damm notifications at github.com
Mon Oct 26 11:23:39 CET 2015


After adapting the patch (a git cherry-pick would not work) it still crashes. I hope I did it right, here is the new backtrace:

```
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 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".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/kamailio...Reading symbols from /usr/lib/debug/.build-id/78/f34ac70f52f40e085a6b521ebbf282fe4b468d.debug...done.
done.
[New LWP 29787]

warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/sbin/kamailio -f /etc/kamailio/kamailio_sip_location_proxy.cfg -P /var/run'.
Program terminated with signal 11, Segmentation fault.
#0  usrloc_get_all_ucontact (node=node at entry=0x7fdea80a7588) at usrloc_sync.c:203
203	usrloc_sync.c: No such file or directory.

Thread 1 (Thread 0x7fdeb3066700 (LWP 29787)):
#0  usrloc_get_all_ucontact (node=node at entry=0x7fdea80a7588) at usrloc_sync.c:203
#1  0x00007fdeabd6fe86 in usrloc_dmq_handle_msg (msg=<optimized out>, resp=0x7ffd776ced10, node=0x7fdea80a7588) at usrloc_sync.c:398
#2  0x00007fdeabf9410b in worker_loop (id=id at entry=1) at worker.c:105
#3  0x00007fdeabf7b1e8 in child_init (rank=<optimized out>) at dmq.c:293
#4  child_init (rank=<optimized out>) at dmq.c:279
#5  0x000000000056d4f8 in init_mod_child (m=0x7fdeb0707f20, rank=rank at entry=0) at sr_module.c:915
#6  0x000000000056d442 in init_mod_child (m=0x7fdeb0708418, rank=rank at entry=0) at sr_module.c:912
#7  0x000000000056e91b in init_child (rank=rank at entry=0) at sr_module.c:941
#8  0x00000000004aa78c in main_loop () at main.c:1650
#9  0x0000000000427292 in main (argc=<optimized out>, argv=<optimized out>) at main.c:2547
#0  usrloc_get_all_ucontact (node=node at entry=0x7fdea80a7588) at usrloc_sync.c:203
        rval = <optimized out>
        len = <optimized out>
        buf = 0x7fdeb0729310
        cp = 0x7fdeb072938a
        ruid = {s = 0x7fdeb0729372 "uloc-56139a40-3acd-5", len = 20}
        aorhash = 0
        send_sock = <optimized out>
        flags = 0
        aor = {s = 0x7fdea80aab59 "{\"action\":3}", len = 12704544}
        r = 0x0
        _d = 0x7fdea7ffe498
        ptr = 0x0
        res = -1
        __FUNCTION__ = "usrloc_get_all_ucontact"
#1  0x00007fdeabd6fe86 in usrloc_dmq_handle_msg (msg=<optimized out>, resp=0x7ffd776ced10, node=0x7fdea80a7588) at usrloc_sync.c:398
        content_length = <optimized out>
        body = <optimized out>
        jdoc = {root = 0xc1db20, flags = 0, buf = {s = 0x7fdea80aab59 "{\"action\":3}", len = 12}, malloc_fn = 0x7fdeb2725a00 <malloc>, free_fn = 0x7fdeb2725920 <free>}
        it = <optimized out>
        ci = {ruid = {s = 0x0, len = 0}, c = 0x7ffd776cebe0, received = {s = 0x0, len = 0}, path = 0x7ffd776cebf0, expires = 0, q = 0, callid = 0x7ffd776cec00, cseq = 0, 
          flags = 2, cflags = 0, user_agent = 0x7ffd776cec10, sock = 0x0, methods = 0, instance = {s = 0x0, len = 0}, reg_id = 0, server_id = 0, tcpconn_id = -1, keepalive = 0, 
          xavp = 0x0, last_modified = 0}
        action = <optimized out>
        expires = <optimized out>
        cseq = <optimized out>
        flags = <optimized out>
        cflags = <optimized out>
        q = <optimized out>
        last_modified = <optimized out>
        methods = <optimized out>
        reg_id = <optimized out>
        aor = {s = <optimized out>, len = 0}
        ruid = <optimized out>
        c = {s = 0x0, len = 0}
        received = <optimized out>
        path = {s = 0x0, len = 0}
        callid = {s = 0x0, len = 0}
        user_agent = {s = 0x0, len = 0}
        instance = <optimized out>
        __FUNCTION__ = "usrloc_dmq_handle_msg"
#2  0x00007fdeabf9410b in worker_loop (id=id at entry=1) at worker.c:105
        worker = 0x7fdea809e7f0
        current_job = 0x7fdea80a9170
        peer_response = {resp_code = 0, content_type = {s = 0x0, len = 0}, reason = {s = 0x0, len = 0}, body = {s = 0x0, len = 0}}
        ret_value = <optimized out>
        not_parsed = 0
        dmq_node = 0x7fdea80a7588
        __FUNCTION__ = "worker_loop"
#3  0x00007fdeabf7b1e8 in child_init (rank=<optimized out>) at dmq.c:293
        i = <optimized out>
        newpid = <optimized out>
#4  child_init (rank=<optimized out>) at dmq.c:279
No locals.
#5  0x000000000056d4f8 in init_mod_child (m=0x7fdeb0707f20, rank=rank at entry=0) at sr_module.c:915
        __FUNCTION__ = "init_mod_child"
#6  0x000000000056d442 in init_mod_child (m=0x7fdeb0708418, rank=rank at entry=0) at sr_module.c:912
        __FUNCTION__ = "init_mod_child"
#7  0x000000000056e91b in init_child (rank=rank at entry=0) at sr_module.c:941
No locals.
#8  0x00000000004aa78c in main_loop () at main.c:1650
        i = <optimized out>
        pid = <optimized out>
        si = <optimized out>
        si_desc = "udp receiver child=3 sock=217.116.120.39:5060\000\000\000\f\b\000\000\000\000\000\000 9l\000\000\000\000\000\003\000\000\000\000\000\000\000(\325\331\247\336\177\000\000\001\000\000\000\000\000\000\000\000\032\323\n^xs\375\004\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\250\222\241\000\000\000\000\000\240\222\241\000\000\000\000"
        nrprocs = <optimized out>
        __FUNCTION__ = "main_loop"
#9  0x0000000000427292 in main (argc=<optimized out>, argv=<optimized out>) at main.c:2547
        cfg_stream = <optimized out>
        c = <optimized out>
        r = <optimized out>
        tmp = 0x7ffd776d096c ""
        tmp_len = 0
        port = 1
        proto = 1
        options = 0x6baf50 ":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:"
        ret = -1
        seed = 3607138207
        rfd = 4
        debug_save = <optimized out>
        debug_flag = <optimized out>
        dont_fork_cnt = <optimized out>
        n_lst = 0x0
        p = <optimized out>
        st = {st_dev = 14, st_ino = 30859, st_nlink = 2, st_mode = 16877, st_uid = 109, st_gid = 301, __pad0 = 0, st_rdev = 0, st_size = 60, st_blksize = 4096, st_blocks = 0, 
          st_atim = {tv_sec = 1444903317, tv_nsec = 438957686}, st_mtim = {tv_sec = 1445853952, tv_nsec = 149421394}, st_ctim = {tv_sec = 1445853956, tv_nsec = 177425657}, 
          __unused = {0, 0, 0}}
        __FUNCTION__ = "main"
```




---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/373#issuecomment-151091947
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20151026/36b7df75/attachment.html>


More information about the sr-dev mailing list