<p>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 @ <a href="https://github.com/kamailio/kamailio/commit/2d1dc7cfcde0410e44a8d53849c319c9d234a7b3" class="commit-link"><tt>2d1dc7c</tt></a></p>
<pre><code>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@entry=true, run_dtors=run_dtors@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"
</code></pre>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1189#issuecomment-318924989">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36Zc3pcRliyGqWOZYHpzusAAC_cIa3ks5sTN6hgaJpZM4OhD-S">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZX_aoj3PQEsRb3bQ8y6CKkjfjNNeks5sTN6hgaJpZM4OhD-S.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/kamailio/kamailio/issues/1189#issuecomment-318924989"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@amessina in #1189: 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\r\n```\r\nCore was generated by `/usr/sbin/kamailio -m 256 -M 8 -P /run/kamailio/kamailio.pid'.\r\nProgram terminated with signal SIGSEGV, Segmentation fault.\r\n#0 ossl_init_thread_stop (locals=0x7f22ca6c0418) at crypto/init.c:332\r\n332 if (locals-\u003easync) {\r\n(gdb) info locals\r\nNo locals.\r\n(gdb) bt full\r\n#0 ossl_init_thread_stop (locals=0x7f22ca6c0418) at crypto/init.c:332\r\nNo locals.\r\n#1 0x00007f22db819f2d in OPENSSL_cleanup () at crypto/init.c:400\r\n currhandler = \u003coptimized out\u003e\r\n lasthandler = \u003coptimized out\u003e\r\n#2 0x00007f22dc879c38 in __run_exit_handlers (status=0, listp=0x7f22dcc0a5b8 \u003c__exit_funcs\u003e, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at exit.c:83\r\n atfct = \u003coptimized out\u003e\r\n onfct = \u003coptimized out\u003e\r\n cxafct = \u003coptimized out\u003e\r\n f = \u003coptimized out\u003e\r\n#3 0x00007f22dc879c8a in __GI_exit (status=\u003coptimized out\u003e) at exit.c:105\r\nNo locals.\r\n#4 0x000000000041a2e1 in handle_sigs () at main.c:699\r\n chld = 4291806\r\n chld_status = 5359628\r\n any_chld_stopped = 0\r\n memlog = 6\r\n __func__ = \"handle_sigs\"\r\n#5 0x0000000000423f42 in main_loop () at main.c:1758\r\n i = 2\r\n pid = 1671\r\n si = 0x0\r\n 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\"\r\n nrprocs = 2\r\n woneinit = 1\r\n __func__ = \"main_loop\"\r\n#6 0x0000000000429b83 in main (argc=7, argv=0x7fff88ca8e88) at main.c:2646\r\n cfg_stream = 0x297b010\r\n c = -1\r\n r = 0\r\n tmp = 0x7fff88caaee9 \"\"\r\n tmp_len = 0\r\n port = 0\r\n proto = 0\r\n options = 0x72a500 \":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:x:X:Y:\"\r\n ret = -1\r\n seed = 3909515647\r\n rfd = 4\r\n debug_save = 0\r\n debug_flag = 0\r\n dont_fork_cnt = 0\r\n n_lst = 0x7f22dd2558d0\r\n p = 0x7fff88ca8ce0 \"\\377\\377\\377\\377\"\r\n 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}, \r\n st_mtim = {tv_sec = 1500938501, tv_nsec = 19585566}, st_ctim = {tv_sec = 1500938501, tv_nsec = 19585566}, __glibc_reserved = {0, 0, 0}}\r\n __func__ = \"main\"\r\n(gdb) info locals\r\ncfg_stream = 0x297b010\r\nc = -1\r\nr = 0\r\ntmp = 0x7fff88caaee9 \"\"\r\ntmp_len = 0\r\nport = 0\r\nproto = 0\r\noptions = 0x72a500 \":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:x:X:Y:\"\r\nret = -1\r\nseed = 3909515647\r\nrfd = 4\r\ndebug_save = 0\r\ndebug_flag = 0\r\ndont_fork_cnt = 0\r\nn_lst = 0x7f22dd2558d0\r\np = 0x7fff88ca8ce0 \"\\377\\377\\377\\377\"\r\nst = {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 = {\r\n tv_sec = 1500938501, tv_nsec = 19585566}, st_ctim = {tv_sec = 1500938501, tv_nsec = 19585566}, __glibc_reserved = {0, 0, 0}}\r\n__func__ = \"main\"\r\n\r\n```"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1189#issuecomment-318924989"}}}</script>