[sr-dev] [kamailio/kamailio] kamailio 5.0.6 segfault in pike module (#1822)

lschweizer notifications at github.com
Fri Jan 25 00:57:22 CET 2019


### Description

Hello,

I get a segfault with kamailio 5.0.6 on a centos 7

 
(gdb)
#0  0x00007f8d37f1c35e in clean_routine (ticks=43668909, param=0x0) at pike_funcs.c:206
#1  0x000000000047deb2 in compat_old_handler (ti=698702557, tl=0x7f8d38ed01a8, data=0x7f8d38ed01a8) at core/timer.c:997
#2  0x000000000047e92d in slow_timer_main () at core/timer.c:1131
#3  0x0000000000422fc4 in main_loop () at main.c:1679
#4  0x0000000000429e4d in main (argc=7, argv=0x7ffe1787ac98) at main.c:2642
(gdb) bt full
#0  0x00007f8d37f1c35e in clean_routine (ticks=43668909, param=0x0) at pike_funcs.c:206
        mask = "\000\000\000\000\000\000\000\000\000 \000\020\000\000\000\000\000\000\000\000\000\000\004\002\000\000\000\000\000\000\000"
        head = {next = 0x7f8d3aa110f8, prev = 0x7f8d39d36470}
        ll = 0x0
        dad = 0x29a55ad00a4c9c0
        node = 0xfffffffffffffff0
        i = 77
        __FUNCTION__ = "clean_routine"
        __PRETTY_FUNCTION__ = "clean_routine"
#1  0x000000000047deb2 in compat_old_handler (ti=698702557, tl=0x7f8d38ed01a8, data=0x7f8d38ed01a8) at core/timer.c:997
        t = 0x7f8d38ed01a8
#2  0x000000000047e92d in slow_timer_main () at core/timer.c:1131
        n = 12
        ret = 4294967295
        tl = 0x7f8d38ed01a8
        i = 925
        __FUNCTION__ = "slow_timer_main"
#3  0x0000000000422fc4 in main_loop () at main.c:1679
        i = 20
        pid = 0
        si = 0x0
        si_desc = "udp receiver child=19 sock=185.190.125.3:6000\000\000\000\006\000\000\000\000\000\000\000H\342\370r\231\177\000\000\060\251\207\027\376\177\000\000p'\355\070\215\177\000\000\240\262<m\231\177\000\000\210\330Et\231\177\000\000 \202<m\231\177\000\000\003\000\000\000\000\000\000\000\004\000\000\000\000\000\000\000\000\200\066\070\215\177\000"
        nrprocs = 20
        woneinit = 1
        __FUNCTION__ = "main_loop"
#4  0x0000000000429e4d in main (argc=7, argv=0x7ffe1787ac98) at main.c:2642
        cfg_stream = 0x183e010
        c = -1
        r = 0
        tmp = 0x7ffe1787b86e ""
        tmp_len = 0
        port = 0
        proto = 2496
        options = 0x7387e0 ":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:x:X:Y:"
        ret = -1
        seed = 1816923433
        rfd = 4
        debug_save = 0
        debug_flag = 0
        dont_fork_cnt = 0
        n_lst = 0x7ffe1787ab50
        p = 0x7f997c3cb9ad <intel_check_word+173> "H\205\300t\025\017\266P\003\017\266\312D9\371\017\204", <incomplete sequence \316>
        st = {st_dev = 20, st_ino = 30979, st_nlink = 2, st_mode = 16832, st_uid = 0, st_gid = 0, __pad0 = 0, st_rdev = 0, st_size = 40, st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 1530437017, tv_nsec = 316150519}, st_mtim = {tv_sec = 1542572308,
            tv_nsec = 811767469}, st_ctim = {tv_sec = 1542572308, tv_nsec = 811767469}, __unused = {0, 0, 0}}
        __FUNCTION__ = "main"



(gdb) info locals
cfg_stream = 0x183e010
c = -1
r = 0
tmp = 0x7ffe1787b86e ""
tmp_len = 0
port = 0
proto = 2496
options = 0x7387e0 ":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:x:X:Y:"
ret = -1
seed = 1816923433
rfd = 4
debug_save = 0
debug_flag = 0
dont_fork_cnt = 0
n_lst = 0x7ffe1787ab50
p = 0x7f997c3cb9ad <intel_check_word+173> "H\205\300t\025\017\266P\003\017\266\312D9\371\017\204", <incomplete sequence \316>
st = {st_dev = 20, st_ino = 30979, st_nlink = 2, st_mode = 16832, st_uid = 0, st_gid = 0, __pad0 = 0, st_rdev = 0, st_size = 40, st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 1530437017, tv_nsec = 316150519}, st_mtim = {tv_sec = 1542572308,
    tv_nsec = 811767469}, st_ctim = {tv_sec = 1542572308, tv_nsec = 811767469}, __unused = {0, 0, 0}}
__FUNCTION__ = "main"


(gdb) list
201                             continue;
202
203                     lock_tree_branch( i );
204                     for( ll=head.next ; ll!=&head ; ) {
205                             node = ll2ipnode( ll );
206                             ll = ll->next;
207                             /* skip nodes from a different branch */
208                             if (node->branch!=i)
209                                     continue;
210
(gdb)


I have no SIP traffic and no idea how to reproduce for the moment



Laurent



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1822
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20190124/d4ca9c83/attachment.html>


More information about the sr-dev mailing list