Re: [sr-dev] [kamailio/kamailio] Kamailio 5.4.1 - Crash on startup when TLS is enabled after upgrading from stretch to buster (#2466)

2020-09-09 Thread Daniel-Constantin Mierla
Thanks @grumvalski for handling this one!

-- 
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2466#issuecomment-689487821___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] Kamailio 5.4.1 - Crash on startup when TLS is enabled after upgrading from stretch to buster (#2466)

2020-09-09 Thread Federico Cabiddu
Closed #2466.

-- 
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2466#event-3745219476___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] Kamailio 5.4.1 - Crash on startup when TLS is enabled after upgrading from stretch to buster (#2466)

2020-09-09 Thread Federico Cabiddu
Thanks for testing Joey, the branch is now merged in master. I'll also
backport it to stable branches.

On Wed, Sep 9, 2020 at 11:57 AM Henning Westerholt 
wrote:

> Reopened #2466 .
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> , or
> unsubscribe
> 
> .
> ___
> Kamailio (SER) - Development Mailing List
> sr-dev@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
>
___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] Kamailio 5.4.1 - Crash on startup when TLS is enabled after upgrading from stretch to buster (#2466)

2020-09-09 Thread Henning Westerholt
Reopened #2466.

-- 
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/2466#event-3745003813___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] Kamailio 5.4.1 - Crash on startup when TLS is enabled after upgrading from stretch to buster (#2466)

2020-09-09 Thread Henning Westerholt
Thanks for the feedback. Re-open this as it still needs to be merged into main 
git branch and probably stable branches.

-- 
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/2466#issuecomment-689458260___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] Kamailio 5.4.1 - Crash on startup when TLS is enabled after upgrading from stretch to buster (#2466)

2020-09-09 Thread Joey Golan
Hi @grumvalski, I have tested the branch with your changes and it looks like it 
fixes the problem.
Very well.. Thank you!

-- 
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/2466#issuecomment-689455733___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] Kamailio 5.4.1 - Crash on startup when TLS is enabled after upgrading from stretch to buster (#2466)

2020-09-09 Thread Joey Golan
Closed #2466.

-- 
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/2466#event-3744983161___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] Kamailio 5.4.1 - Crash on startup when TLS is enabled after upgrading from stretch to buster (#2466)

2020-09-08 Thread Federico Cabiddu
Hi Joey, I've tried to investigate the issue with http_async_client 
initialization, but I've not been able to reproduce it in buster.
Anyway looking at the logs I've found something that might be not good, the 
place(s) where curl memory callbacks are set.
I've created a branch with a change on this 
https://github.com/kamailio/kamailio/tree/hac_curl_mem_callbacks, do you have 
any chance to try it?

-- 
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/2466#issuecomment-688854979___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] Kamailio 5.4.1 - Crash on startup when TLS is enabled after upgrading from stretch to buster (#2466)

2020-09-08 Thread Joey Golan
Yes, tls module loaded first.
I created a minimal config file that reproduces the problem.
The crash is because of this line: modparam("http_async_client", "workers", 4)
comment out this line makes the crash disappear.

#!KAMAILIO

### Global Parameters #

/* LOG Levels: 3=DBG, 2=INFO, 1=NOTICE, 0=WARN, -1=ERR, ... */
debug=2
log_stderror=no
memdbg=5
memlog=5

log_facility=LOG_LOCAL0
log_prefix="{$mt $hdr(CSeq) $ci} "

children=8
tcp_children=16
auto_aliases=no
alias="example.com"

listen=udp:eth0
server_signature=no
tcp_connection_lifetime=3605
tcp_max_connections=40960
tcp_accept_no_cl=yes
enable_tls=yes
listen=tls:eth0
tls_max_connections=4
enable_sctp=no

### Modules Section 

loadmodule "kex.so"
loadmodule "corex.so"
loadmodule "tm.so"
loadmodule "tmx.so"
loadmodule "sl.so"
loadmodule "rr.so"
loadmodule "pv.so"
loadmodule "tls.so"
loadmodule "http_async_client.so"

# - setting module-specific parameters ---

# - tls params -
modparam("tls", "config", "/etc/kamailio/tls.cfg")

# - http client 
modparam("http_async_client", "workers", 4)

### Routing Logic 

request_route {
exit;
}

-- 
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/2466#issuecomment-688831449___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] Kamailio 5.4.1 - Crash on startup when TLS is enabled after upgrading from stretch to buster (#2466)

2020-09-06 Thread Daniel-Constantin Mierla
Did you load `tls` module before `http_async_client`? Also, this module has to 
be loaded before any other module using libcurl (see: 
https://www.kamailio.org/docs/modules/stable/modules/http_async_client.html#idm125)

For further troubleshooting, install the debug symbols packages for libcurl and 
libssl to get more details in the frames referencing them. Once installed, just 
grab again the `bt full` from all core files (no need to generate another 
crash).

-- 
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/2466#issuecomment-687842489___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] Kamailio 5.4.1 - Crash on startup when TLS is enabled after upgrading from stretch to buster (#2466)

2020-09-06 Thread Joey Golan
After some investigation I found out that the cause for the problem is 
modparam("http_async_client", "workers", **4**).
Starting kamailio with modparam("http_async_client", "workers", **1**) works 
fine.
I also tested it on v5.4.1 before @linuxmaniac reverts and it works fine with 
modparam("http_async_client", "workers", **1**)

Here are the bt full of all the core files:

root@kamailio12:/# gdb /usr/sbin/kamailio /core.32155
GNU gdb (Debian 8.2.1-2+b3) 8.2.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
stopType "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/sbin/kamailio...Reading symbols from 
/usr/lib/debug/.build-id/ed/15dbbb24fb309311e7a6a16cf9222a82afb102.debug...done.
done.
[New LWP 32155]
[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.cfg -m 2048 
-M 32'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x7fb49968e61f in ?? () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
(gdb) bt full
#0  0x7fb49968e61f in ?? () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
No symbol table info available.
#1  0x7fb49968dfb5 in CONF_modules_finish () from 
/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
No symbol table info available.
#2  0x7fb49968e139 in ?? () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
No symbol table info available.
#3  0x7fb4997231e0 in OPENSSL_cleanup () from 
/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
No symbol table info available.
#4  0x7fb49993af45 in tls_h_mod_destroy_f () at tls_init.c:870
__func__ = "tls_h_mod_destroy_f"
#5  0x559822cbf4d1 in destroy_tls () at core/tls_hooks.c:75
No locals.
#6  0x559822b66358 in cleanup (show_status=1) at main.c:584
memlog = 0
__func__ = "cleanup"
#7  0x559822b67ef3 in shutdown_children (sig=15, show_status=1) at 
main.c:706
__func__ = "shutdown_children"
#8  0x559822b6b4e6 in handle_sigs () at main.c:806
chld = 0
chld_status = 139
any_chld_stopped = 1
memlog = 0
__func__ = "handle_sigs"
#9  0x559822b77053 in main_loop () at main.c:1817
i = 8
pid = 32195
si = 0x0
si_desc = "udp receiver child=7 
sock=172.19.140.102:5060\000\000\000\003\000\000\000)\000\000\000\000\274[\351\352ZP\207`\027\v%\230U\000\000\210P\371\"\230U\000\000\000\000\000\000\000\000\000\000\260|\255\233\264\177\000\000\363>\376\"\230U\000\000\000\000\000\200\000\000\000\000\320\177N\204\377\177\000\000h]\337\"\230U\000"
nrprocs = 8
woneinit = 1
--Type  for more, q to quit, c to continue without paging--
__func__ = "main_loop"
#10 0x559822b80516 in main (argc=7, argv=0x7fff844e8518) at main.c:2856
cfg_stream = 0x559824fcb260
c = -1
r = 0
tmp = 0x7fff844e8def ""
tmp_len = 0
port = 0
proto = 1
ahost = 0x0
aport = 0
options = 0x559822f97d38 
":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 = 3411128981
rfd = 4
debug_save = 0
debug_flag = 0
dont_fork_cnt = 0
n_lst = 0x1f80
p = 0x0
st = {st_dev = 21, st_ino = 428223, 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 = 1599374984, tv_nsec = 763308205}, 
st_mtim = {tv_sec = 1599374995,
tv_nsec = 555647093}, st_ctim = {tv_sec = 1599374995, tv_nsec = 
555647093}, __glibc_reserved = {0, 0, 0}}
tbuf = 
"\000\000\000\000\000\000\000\000\b\000\000\000\000\000\000\000\060\367\331\233\264\177\000\000\000\000\000\000\000\000\000\000\240\301U\204\377\177\000\000\364\372\327\233\264\177\000\000\b\000\000\000\000\000\000\000\230\302U\204\377\177\000\000\060\367\331\233\264\177\000\000\270\202N\204\377\177\000\000\264\202N\204\377\177",
 '\000' , 
"\230\302U\204\377\177\000\000\250\301U\204\377\177\000\000'N\266\233\264\177\000\000&\260be\000\000\000\000
 
\204N\204\377\177\000\000\300\212\225\001\000\000\000\000\200\203N\204\377\177\000\000p\203N\204\377\177\000\000\270\202N\204\377\177\000\000X\367\331\233\264\177\000\000\001",
 '\000' ...
option_index = 0
long_options = {{name = 0x559822f99dc6 "

Re: [sr-dev] [kamailio/kamailio] Kamailio 5.4.1 - Crash on startup when TLS is enabled after upgrading from stretch to buster (#2466)

2020-09-04 Thread Daniel-Constantin Mierla
You have to enable core files per pid, because the backtrace indicates is the 
core file dumped by shutting down process, which can be just a side effect, 
because likely the crash happens somewhere else. You can see how to enable core 
file per process at:

  * 
https://www.kamailio.org/wiki/tutorials/troubleshooting/coredumpfile#how_do_get_a_core_file

The the core files should be suffixed by pid number, grab the gdb `bt full` for 
each of the core files.

As I tried to reproduce today, with the reverts done by @linuxmaniac, I could 
not get it (on a Debian stable), so it could be specific to your config. Maybe 
you can create a minimal kamailio config that reproduces the case. Being about 
starting up, you should try to keep global parameters, loading the modules and 
modparams, with a request_route having just exit. To make it smaller, if you 
have time to play with it, you can start removing from modues (with the 
corresponding modparams).

Also, load tls module first, because it needs to initialize the libssl with 
some options needed by Kamailio, before other modules that may use libssl.

-- 
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/2466#issuecomment-687019118___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] Kamailio 5.4.1 - Crash on startup when TLS is enabled after upgrading from stretch to buster (#2466)

2020-09-03 Thread Joey Golan
Still crashes for me.
I installed Kamailio v5.4.2 nightly build

kamailio-dbg/unknown,now 5.4.2~bpo10.20200903013416.27 amd64 [installed]
kamailio-extra-modules/unknown,now 5.4.2~bpo10.20200903013416.27 amd64 
[installed]
kamailio-json-modules/unknown,now 5.4.2~bpo10.20200903013416.27 amd64 
[installed]
kamailio-lua-modules/unknown,now 5.4.2~bpo10.20200903013416.27 amd64 [installed]
kamailio-mysql-modules/unknown,now 5.4.2~bpo10.20200903013416.27 amd64 
[installed]
kamailio-redis-modules/unknown,now 5.4.2~bpo10.20200903013416.27 amd64 
[installed]
kamailio-systemd-modules/unknown,now 5.4.2~bpo10.20200903013416.27 amd64 
[installed]
kamailio-tls-modules/unknown,now 5.4.2~bpo10.20200903013416.27 amd64 [installed]
kamailio-utils-modules/unknown,now 5.4.2~bpo10.20200903013416.27 amd64 
[installed]
kamailio-websocket-modules/unknown,now 5.4.2~bpo10.20200903013416.27 amd64 
[installed]
kamailio/unknown,now 5.4.2~bpo10.20200903013416.27 amd64 [installed]

**Kamailio log:**

Sep  3 07:04:40 kamailio12 kamailio: INFO:  [core/tcp_main.c:4982]: 
init_tcp(): using epoll_lt as the io watch method (auto detected)
Sep  3 07:04:40 kamailio12 /usr/sbin/kamailio[24676]: INFO: rr 
[../outbound/api.h:52]: ob_load_api(): unable to import bind_ob - maybe module 
is not loaded
Sep  3 07:04:40 kamailio12 /usr/sbin/kamailio[24676]: INFO: rr [rr_mod.c:185]: 
mod_init(): outbound module not available
Sep  3 07:04:40 kamailio12 /usr/sbin/kamailio[24676]: INFO: dmq_usrloc 
[dmq_usrloc.c:81]: mod_init(): dmq usrloc replication mode = 1
Sep  3 07:04:40 kamailio12 /usr/sbin/kamailio[24676]: INFO: cfgutils 
[cfgutils.c:869]: mod_init(): no hash_file given, disable hash functionality
Sep  3 07:04:40 kamailio12 /usr/sbin/kamailio[24676]: INFO: http_async_client 
[http_async_client_mod.c:222]: mod_init(): Initializing Http Async module
Sep  3 07:04:40 kamailio12 /usr/sbin/kamailio[24676]: INFO: auth 
[auth_mod.c:345]: mod_init(): qop set, but nonce-count (nonce_count) support 
disabled
Sep  3 07:04:40 kamailio12 /usr/sbin/kamailio[24676]: INFO: permissions 
[permissions.c:601]: mod_init(): default allow file 
(/etc/kamailio/permissions.allow) not found => empty rule set
Sep  3 07:04:40 kamailio12 /usr/sbin/kamailio[24676]: INFO: permissions 
[permissions.c:615]: mod_init(): default deny file 
(/etc/kamailio/permissions.deny) not found => empty rule set
Sep  3 07:04:40 kamailio12 /usr/sbin/kamailio[24676]: INFO: pike [pike.c:97]: 
pike_init(): PIKE - initializing
Sep  3 07:04:40 kamailio12 /usr/sbin/kamailio[24676]: INFO: pike 
[ip_tree.c:81]: init_lock_set(): probing 256 set size
Sep  3 07:04:40 kamailio12 /usr/sbin/kamailio[24676]: INFO: tls 
[tls_mod.c:389]: mod_init(): With ECDH-Support!
Sep  3 07:04:40 kamailio12 /usr/sbin/kamailio[24676]: INFO: tls 
[tls_mod.c:392]: mod_init(): With Diffie Hellman
Sep  3 07:04:40 kamailio12 /usr/sbin/kamailio[24676]: WARNING: tls 
[tls_init.c:784]: tls_h_mod_init_f(): openssl bug #1491 (crash/mem leaks on low 
memory) workaround enabled (on low memory tls operations will fail 
preemptively) with free memory thresholds 22544384 and 11272192 bytes
Sep  3 07:04:40 kamailio12 /usr/sbin/kamailio[24676]: INFO:  
[core/cfg/cfg_ctx.c:595]: cfg_set_now(): tls.low_mem_threshold1 has been 
changed to 22544384
Sep  3 07:04:40 kamailio12 /usr/sbin/kamailio[24676]: INFO:  
[core/cfg/cfg_ctx.c:595]: cfg_set_now(): tls.low_mem_threshold2 has been 
changed to 11272192
Sep  3 07:04:40 kamailio12 /usr/sbin/kamailio[24676]: INFO:  
[main.c:2833]: main(): processes (at least): 43 - shm size: 2147483648 - pkg 
size: 33554432
Sep  3 07:04:40 kamailio12 /usr/sbin/kamailio[24676]: INFO:  
[core/udp_server.c:154]: probe_max_receive_buffer(): SO_RCVBUF is initially 
212992
Sep  3 07:04:40 kamailio12 /usr/sbin/kamailio[24676]: INFO:  
[core/udp_server.c:206]: probe_max_receive_buffer(): SO_RCVBUF is finally 425984
Sep  3 07:04:40 kamailio12 /usr/sbin/kamailio[24676]: INFO: http_async_client 
[async_http.c:101]: async_http_init_sockets(): inter-process event notification 
sockets initialized
Sep  3 07:04:40 kamailio12 /usr/sbin/kamailio[24676]: INFO: http_async_client 
[async_http.c:101]: async_http_init_sockets(): inter-process event notification 
sockets initialized
Sep  3 07:04:40 kamailio12 /usr/sbin/kamailio[24676]: INFO: http_async_client 
[async_http.c:101]: async_http_init_sockets(): inter-process event notification 
sockets initialized
Sep  3 07:04:40 kamailio12 /usr/sbin/kamailio[24676]: INFO: http_async_client 
[async_http.c:101]: async_http_init_sockets(): inter-process event notification 
sockets initialized
Sep  3 07:04:40 kamailio12 /usr/sbin/kamailio[24676]: INFO: tls 
[tls_domain.c:305]: ksr_tls_fill_missing(): TLSs: tls_method=18
Sep  3 07:04:40 kamailio12 /usr/sbin/kamailio[24676]: INFO: tls 
[tls_domain.c:317]: ksr_tls_fill_missing(): TLSs: 
certificate='/etc/kamailio/ssl/widebridge.pem'
Sep  3 07:04:40 kamailio12 /usr/sbin/kamailio[24676]: INFO: tls 
[tls_domain.c:324]: ksr_tls_fill_missing(): TLSs: 
ca_list='/

Re: [sr-dev] [kamailio/kamailio] Kamailio 5.4.1 - Crash on startup when TLS is enabled after upgrading from stretch to buster (#2466)

2020-09-02 Thread Victor Seva
reverted on 5.4 and master

-- 
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/2466#issuecomment-685701340___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] Kamailio 5.4.1 - Crash on startup when TLS is enabled after upgrading from stretch to buster (#2466)

2020-09-02 Thread Daniel-Constantin Mierla
@linuxmaniac you can revert them in the repo, so we get the git branches 
(master & 5.4) and (soon) nightly builds ok.

Later I will have another look at those patches and see if I spot what breaks 
there.

-- 
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/2466#issuecomment-685695667___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] Kamailio 5.4.1 - Crash on startup when TLS is enabled after upgrading from stretch to buster (#2466)

2020-09-02 Thread Victor Seva
reverting those three commits, seems to help. I can't reproduce the crash now.

-- 
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/2466#issuecomment-685687591___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] Kamailio 5.4.1 - Crash on startup when TLS is enabled after upgrading from stretch to buster (#2466)

2020-09-02 Thread Daniel-Constantin Mierla
The commit ids from previous comment were for master branch, for 5.4 branch are:

  * e9baba91c6c7e3d1817e8a07bbabbce3a8efbe79
  * 67979e07b63b574687b1924c38fabd724d0ad876
  * 10af8efa9061c2f52ee1db51c4cf665073c20dcc

-- 
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/2466#issuecomment-685593955___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] Kamailio 5.4.1 - Crash on startup when TLS is enabled after upgrading from stretch to buster (#2466)

2020-09-02 Thread Daniel-Constantin Mierla
Can you try again after reverting the next commits?

  * 60bd3aa284a5d9eb117a9763aa590aecf276ba16
  * 99c6a68dea60ca745dfdfa33085bb6acbcee846a
  * 234b02236b3ad13cdaf5624d11c727ad7d804747

They were related to cleaning up obsoleted libssl api, but maybe there are 
unexpected side effects.

-- 
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/2466#issuecomment-685590409___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] Kamailio 5.4.1 - Crash on startup when TLS is enabled after upgrading from stretch to buster (#2466)

2020-09-02 Thread Victor Seva
I'm having the same issue after upgrading our kamailio to 5.4.1

```
[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 -P /run/kamailio/kamailio.lb.pid -f 
/etc/kamailio/lb/kamaili'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x7f00fe4aee26 in ?? () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
(gdb) bt
#0  0x7f00fe4aee26 in ?? () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
#1  0x7f00fe4af12f in OPENSSL_cleanup () from 
/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
#2  0x7f010235ed8c in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#3  0x7f010235eeba in exit () from /lib/x86_64-linux-gnu/libc.so.6
#4  0x55cfea78a745 in handle_sigs () at main.c:810
#5  0x55cfea790525 in main_loop () at main.c:1817
#6  0x55cfea78591b in main (argc=, argv=) at 
main.c:2856
```

-- 
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/2466#issuecomment-685583080___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] [kamailio/kamailio] Kamailio 5.4.1 - Crash on startup when TLS is enabled after upgrading from stretch to buster (#2466)

2020-09-01 Thread Joey Golan


### Description

After upgrading Debian from stretch to buster, kamailio service keeps crashing 
on service stat.
Same kamailio configuration file worked fine on Debian stretch.
If I disable TLS the service starts successfully.

### Troubleshooting

Looks like a TLS issue

 Reproduction

Debian buster
TLS enabled

 Debugging Data



```
root@kamailio11:/# gdb /usr/sbin/kamailio /core
GNU gdb (Debian 8.2.1-2+b3) 8.2.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
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".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/sbin/kamailio...Reading symbols from 
/usr/lib/debug/.build-id/ed/15dbbb24fb309311e7a6a16cf9222a82afb102.debug...done.
done.
[New LWP 7259]
[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 -P /run/kamailio/kamailio.pid -f 
/etc/kamailio/kamailio.cfg'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x7f17c0877e26 in ?? () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
(gdb) bt full
#0  0x7f17c0877e26 in ?? () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
No symbol table info available.
#1  0x7f17c087812f in OPENSSL_cleanup () from 
/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
No symbol table info available.
#2  0x7f17c46aad8c in __run_exit_handlers (status=1, listp=0x7f17c482c718 
<__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, 
run_dtors=run_dtors@entry=true) at exit.c:108
atfct = 
onfct = 
cxafct = 
f = 
new_exitfn_called = 3
cur = 0x7f17c482dd80 
#3  0x7f17c46aaeba in __GI_exit (status=) at exit.c:139
No locals.
#4  0x55c479a9c502 in handle_sigs () at main.c:808
chld = 0
chld_status = 139
any_chld_stopped = 1
memlog = 0
__func__ = "handle_sigs"
#5  0x55c479aa8053 in main_loop () at main.c:1817
i = 8
pid = 7301
si = 0x0
si_desc = "udp receiver child=7 
sock=172.19.140.101:5060\000\000\000\003\000\000\000+\000\000\000\000\253pP\333\351\322a\320-\221z\304U\000\000\210`\354y\304U\000\000\000\000\000\000\000\000\000\000\260Lv\304\027\177\000\000\363N\361y\304U\000\000\000\000\000\200\000\000\000\000\060P\254$\375\177\000\000hm\322y\304U\000"
nrprocs = 8
woneinit = 1
__func__ = "main_loop"
#6  0x55c479ab1516 in main (argc=9, argv=0x7ffd24ac5578) at main.c:2856
cfg_stream = 0x55c47a82b260
c = -1
r = 0
tmp = 0x7ffd24ac6de3 ""
tmp_len = 32535
port = -995964432
proto = 32535
ahost = 0x0
aport = 0
options = 0x55c479ec8d38 
":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:x:X:Y:"
--Type  for more, q to quit, c to continue without paging--
ret = -1
seed = 1032197731
rfd = 4
debug_save = 0
debug_flag = 0
dont_fork_cnt = 0
n_lst = 0x0
p = 0x0
st = {st_dev = 21, st_ino = 79137, 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 = 1599027572, tv_nsec = 735090396}, 
st_mtim = {tv_sec = 1599027608,
tv_nsec = 820311152}, st_ctim = {tv_sec = 1599027608, tv_nsec = 
820311152}, __glibc_reserved = {0, 0, 0}}
tbuf = 
"\000\000\000\000\000\000\000\000\b\000\000\000\000\000\000\000\060ע\304\027\177\000\000\000\000\000\000\000\000\000\000\240A\271$\375\177\000\000\364ڠ\304\027\177\000\000\b\000\000\000\000\000\000\000\230B\271$\375\177\000\000\060ע\304\027\177\000\000\030S\254$\375\177\000\000\024S\254$\375\177",
 '\000' , 
"\230B\271$\375\177\000\000\250A\271$\375\177\000\000'\036\177\304\027\177\000\000&\260be\000\000\000\000\200T\254$\375\177\000\000\300\212\225\001\000\000\000\000\340S\254$\375\177\000\000\320S\254$\375\177\000\000\030S\254$\375\177\000\000Xע\304\027\177\000\000\001",
 '\000' ...
option_index = 0
long_options = {{name = 0x55c479ecadc6 "help", has_arg = 0, flag = 0x0, 
val = 104}, {name = 0x55c479ec650c "version", has_arg = 0, flag = 0x0, val = 
118}, {name = 0x55c479ecadcb "alias", has_arg = 1, flag = 0x0, val = 1024}, 
{name = 0x55c479ecadd1 "subst",
has_arg = 1, flag = 0x0, val = 1025}, {name = 0x55c479ecadd7 
"substdef", has_arg = 1, flag = 0x0, val = 1026}, {name = 0x5