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

2018-02-21 Thread Fyodor
@linuxmaniac so it's okay to have this in log file? -- 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-367384899___

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

2018-02-21 Thread Victor Seva
@lgg that has noting to do with this issue. This is about a crash on stop. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

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

2018-02-15 Thread Fyodor
@miconda i thinks i still have this issue. `` kamctl version /usr/sbin/kamctl 5.0.0 ``` ``` Distributor ID: Ubuntu Description:Ubuntu 16.04.3 LTS Release:16.04 Codename: xenial ``` Installed ssl libs: ``` root@serv:~# apt list --installed | grep ssl WARNING: apt does not

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

2017-08-02 Thread Daniel-Constantin Mierla
@apogrebennyk - pushed to 4.4 branch. @taurus-forever - thanks, I didn't know they are in a separate apt repo. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

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

2017-08-02 Thread apogrebennyk
Thanks @miconda, would you backport this also to the 4.4 branch? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

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

2017-08-02 Thread Daniel-Constantin Mierla
Closed #1189. -- 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#event-1189055685___ Kamailio (SER) - Development Mailing List

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

2017-08-02 Thread Daniel-Constantin Mierla
Should be fixed by the commit referenced above. Pushed in 5.0 branch as well. Reopen if still an issue. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

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

2017-08-01 Thread Daniel-Constantin Mierla
It seems to core dump at shut down even with a very basic config and no sip traffic (just start and then stop): ``` debug=2 log_stderror=no memdbg=5 memlog=5 log_facility=LOG_LOCAL0 children=1 enable_tls=yes loadmodule "tls.so" modparam("tls", "config", "/tmp/kamailio-dev/etc/kamailio/tls.cfg")

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

2017-08-01 Thread Anthony Messina
@joelsdc after looking closer this morning, yes in my case I do subjectively think #1172 might be related. I did have an occurrence of Kamailio stopping processing traffic. In my case these were incoming MESSAGE requests. I don't have further details as I'm now at work. This is Fedora 26,

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

2017-08-01 Thread apogrebennyk
@miconda yes, it crashes every time on stop. -- 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-319378919___ Kamailio

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

2017-07-31 Thread Daniel-Constantin Mierla
Does it happen every time when stopping kamailio? I guess I have to try to reproduce it in order to dig in more. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

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

2017-07-30 Thread Anthony Messina
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

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

2017-07-26 Thread Victor Seva
I'm going to try with the last version of branch 1.1.0 -- 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-318005177___

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

2017-07-26 Thread Victor Seva
``` Core was generated by `/usr/sbin/kamailio -f /etc/kamailio/lb/kamailio.cfg -P /var/run/kamailio/kamail'. Program terminated with signal SIGSEGV, Segmentation fault. #0 ossl_init_thread_stop (locals=0x7f8d615fcd58) at ../crypto/init.c:335 warning: Source file is more recent than executable.

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

2017-07-26 Thread Daniel-Constantin Mierla
And the rest from my previous comment? -- 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-318004761___ Kamailio (SER) -

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

2017-07-26 Thread Victor Seva
just that patch -- 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-318001713___ Kamailio (SER) - Development Mailing List

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

2017-07-26 Thread Daniel-Constantin Mierla
Btw, did you just use that patch or recompiled all from latest branch 1.1.0 for openssl? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

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

2017-07-26 Thread Daniel-Constantin Mierla
Can you give the new backtrace to match against the source code? Also, provide `info locals` and `list` from frame 0. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

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

2017-07-26 Thread Victor Seva
FTR, tried with openssl/openssl@4b4bc00 applied same core -- 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-317981985___

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

2017-07-24 Thread Daniel-Constantin Mierla
The issue on openssl rt seems to be from 2007: ``` Created: | Thu Feb 22 09:48:25 2007 ``` Not sure why it was dealt with in 2016. But I think is not relevant here at all. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

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

2017-07-24 Thread Daniel-Constantin Mierla
So there seems to be some fixes in branch 1.1.0 after release of 1.1.0f, your code is no longer matching their git branch. Their new patch might be related, so maybe you can recompile the latest libssl from their 1.1.0 stable branch. Otherwise, although not really familiar with libssl

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

2017-07-24 Thread Victor Seva
This is what I have ``` static struct thread_local_inits_st *ossl_init_get_thread_local(int alloc) { struct thread_local_inits_st *local = CRYPTO_THREAD_get_local(); if (local == NULL && alloc) { local = OPENSSL_zalloc(sizeof *local); CRYPTO_THREAD_set_local(,

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

2017-07-24 Thread Daniel-Constantin Mierla
The link from previous comment goes to a page asking for authentication. The crash happens inside exit() function, due to a callback registered by libssl. Can you check if the version of the libssl you run has the next patch from about 1 month ago: *

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

2017-07-24 Thread Victor Seva
downloaded openssl source ``` #0 ossl_init_thread_stop (locals=0x7faaf4442d58) at ../crypto/init.c:332 332 if (locals->async) { (gdb) p locals $1 = (struct thread_local_inits_st *) 0x7faaf4442d58 (gdb) p *locals Cannot access memory at address 0x7faaf4442d58 ``` -- You are receiving

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

2017-07-24 Thread Victor Seva
FTR https://rt.openssl.org/Ticket/Display.html?id=1491 has been closed with > This is reported against 0.9.8; please open a new ticket if still a problem > with current releases. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on

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

2017-07-24 Thread Victor Seva
backporting [0] and [1] didn't help [0] https://github.com/kamailio/kamailio/commit/e7c03ce6ce61119fbf5cb9f41b7abcd4c7138d58 [1] https://github.com/kamailio/kamailio/commit/76efc9b7a1489007f9ff431e730ce4e86b446a6c -- You are receiving this because you are subscribed to this thread. Reply to

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

2017-07-24 Thread Victor Seva
### Description We are having cores when stopping the lb service if TLS is enabled. ### Troubleshooting Debugging Data ``` Core was generated by `/usr/sbin/kamailio -f /etc/kamailio/lb/kamailio.cfg -P /var/run/kamailio/kamail'. Program terminated with signal SIGSEGV, Segmentation fault.