[sr-dev] [kamailio/kamailio] cores on stop if TLS is enabled using libssl1.1 ( Debian stretch ) (#1189)

Anthony Messina notifications at github.com
Sun Jul 30 21:50:57 CEST 2017


I think I may be seeing the same thing on Fedora 26, openssl-1.1.0f-7.fc26.x86_64, and Kamailio 5.0 branch @ 2d1dc7c
```
Core was generated by `/usr/sbin/kamailio -m 256 -M 8 -P /run/kamailio/kamailio.pid'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  ossl_init_thread_stop (locals=0x7f22ca6c0418) at crypto/init.c:332
332         if (locals->async) {
(gdb) info locals
No locals.
(gdb) bt full
#0  ossl_init_thread_stop (locals=0x7f22ca6c0418) at crypto/init.c:332
No locals.
#1  0x00007f22db819f2d in OPENSSL_cleanup () at crypto/init.c:400
        currhandler = <optimized out>
        lasthandler = <optimized out>
#2  0x00007f22dc879c38 in __run_exit_handlers (status=0, listp=0x7f22dcc0a5b8 <__exit_funcs>, run_list_atexit=run_list_atexit at entry=true, run_dtors=run_dtors at entry=true) at exit.c:83
        atfct = <optimized out>
        onfct = <optimized out>
        cxafct = <optimized out>
        f = <optimized out>
#3  0x00007f22dc879c8a in __GI_exit (status=<optimized out>) at exit.c:105
No locals.
#4  0x000000000041a2e1 in handle_sigs () at main.c:699
        chld = 4291806
        chld_status = 5359628
        any_chld_stopped = 0
        memlog = 6
        __func__ = "handle_sigs"
#5  0x0000000000423f42 in main_loop () at main.c:1758
        i = 2
        pid = 1671
        si = 0x0
        si_desc = "udp receiver child=1 sock=[2603:300A:134:50E0:0:0:0:3]:5060\000\000\000\000\000P\213ʈ\377\177\000\000\220?0\334\"\177\000\000Ћʈ\377\177\000\000\321.\335\333\"\177\000\000\360\206\060\334\"\177\000\000\000\000\000\000\001\000\000\000X\216\033\334\"\177\000\000huz\312\"\177\000"
        nrprocs = 2
        woneinit = 1
        __func__ = "main_loop"
#6  0x0000000000429b83 in main (argc=7, argv=0x7fff88ca8e88) at main.c:2646
        cfg_stream = 0x297b010
        c = -1
        r = 0
        tmp = 0x7fff88caaee9 ""
        tmp_len = 0
        port = 0
        proto = 0
        options = 0x72a500 ":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 = 3909515647
        rfd = 4
        debug_save = 0
        debug_flag = 0
        dont_fork_cnt = 0
        n_lst = 0x7f22dd2558d0
        p = 0x7fff88ca8ce0 "\377\377\377\377"
        st = {st_dev = 21, st_ino = 977, st_nlink = 2, st_mode = 16872, st_uid = 986, st_gid = 983, __pad0 = 0, st_rdev = 0, st_size = 40, st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 1500938501, tv_nsec = 19585566}, 
          st_mtim = {tv_sec = 1500938501, tv_nsec = 19585566}, st_ctim = {tv_sec = 1500938501, tv_nsec = 19585566}, __glibc_reserved = {0, 0, 0}}
        __func__ = "main"
(gdb) info locals
cfg_stream = 0x297b010
c = -1
r = 0
tmp = 0x7fff88caaee9 ""
tmp_len = 0
port = 0
proto = 0
options = 0x72a500 ":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 = 3909515647
rfd = 4
debug_save = 0
debug_flag = 0
dont_fork_cnt = 0
n_lst = 0x7f22dd2558d0
p = 0x7fff88ca8ce0 "\377\377\377\377"
st = {st_dev = 21, st_ino = 977, st_nlink = 2, st_mode = 16872, st_uid = 986, st_gid = 983, __pad0 = 0, st_rdev = 0, st_size = 40, st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 1500938501, tv_nsec = 19585566}, st_mtim = {
    tv_sec = 1500938501, tv_nsec = 19585566}, st_ctim = {tv_sec = 1500938501, tv_nsec = 19585566}, __glibc_reserved = {0, 0, 0}}
__func__ = "main"

```

-- 
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/1189#issuecomment-318924989
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20170730/ce77f0a7/attachment-0001.html>


More information about the sr-dev mailing list