Re: [sr-dev] [SR-Users] Info: initialization of libssl 1.1.+ with PTHREAD_PROCESS_SHARED attribute for pthread mutex and rwlock

2019-10-25 Thread Daniel-Constantin Mierla
Hello,

thanks for coming back with the clarifications!

Before the changes related to PRNG, the reporter was doing stress
testing and it was crashing occasionally, after the changes, he
continued to stress test for several days without any issues --
therefore I thought in your case it could be something else, a matter of
a specific use case. But it is better now knowing it was an older
version and now no issue was showing up.

Cheers,
Daniel

On 23.10.19 14:52, Vitalii Aleksandrov wrote:
> Hi,
>
> My bad, I most probably used a container with a bit outdated version
> of master branch.
>
> Got new sources, tested them and had no problems with TLS. It works
> fine with libssl 1.1.1d-0+deb10u2.
> I suppose those fixes with using alternative random number generator
> or wrapping up the standard one with lock have helped.
>
>
>> Hello,
>>
>> can you provide the full backtrace from gdb?
>>
>> Also, give the output for "kamailio -I" and the exact version for
>> libssl.
>>
>> Cheers,
>> Daniel
>>
>> On 20.10.19 22:35, Vitalii Aleksandrov wrote:
>>> Hi.
>>>
>>> I'm going to jump into this thread with a bit different but related
>>> problem. I've tried kamailio master branch with the mentioned
>>> workaround and it still crashes almost immediately in my load tests
>>> when kamailio is linked to
>>> libssl-1.1.1.
>>> Haven't followed kamailio recently since had to switch to opensips for
>>> my current project but the root of the problem is the same - the
>>> multiprocess nature of a proxy and new behavior of libssl that uses
>>> pthread functions directly. This workaround with pthread_mutex_init()
>>> overriding really helps with deadlocks found with libssl1.1.0, but
>>> after switching to libssl1.1.1 it started to crash again. That lib
>>> version also uses thread local storage what most probably creates new
>>> problems since ssl contex IIRC might be moved between tcp main and
>>> workers.
>>>
>>> Has anyone tested kamailio master on debian 10 with libssl-1.1.1 and
>>> many concurrent tls connections?
>>>
 I understood it happened on a load test session, which typically is
 not done in production, but some test/staging system.

 Cheers,
 Daniel

>>> ___
>>> 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

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training, Oct 21-23, 2019, Berlin, Germany -- 
https://asipto.com/u/kat


___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [SR-Users] Info: initialization of libssl 1.1.+ with PTHREAD_PROCESS_SHARED attribute for pthread mutex and rwlock

2019-10-23 Thread Vitalii Aleksandrov

Hi,

My bad, I most probably used a container with a bit outdated version of 
master branch.


Got new sources, tested them and had no problems with TLS. It works fine 
with libssl 1.1.1d-0+deb10u2.
I suppose those fixes with using alternative random number generator or 
wrapping up the standard one with lock have helped.




Hello,

can you provide the full backtrace from gdb?

Also, give the output for "kamailio -I" and the exact version for libssl.

Cheers,
Daniel

On 20.10.19 22:35, Vitalii Aleksandrov wrote:

Hi.

I'm going to jump into this thread with a bit different but related
problem. I've tried kamailio master branch with the mentioned
workaround and it still crashes almost immediately in my load tests
when kamailio is linked to
libssl-1.1.1.
Haven't followed kamailio recently since had to switch to opensips for
my current project but the root of the problem is the same - the
multiprocess nature of a proxy and new behavior of libssl that uses
pthread functions directly. This workaround with pthread_mutex_init()
overriding really helps with deadlocks found with libssl1.1.0, but
after switching to libssl1.1.1 it started to crash again. That lib
version also uses thread local storage what most probably creates new
problems since ssl contex IIRC might be moved between tcp main and
workers.

Has anyone tested kamailio master on debian 10 with libssl-1.1.1 and
many concurrent tls connections?


I understood it happened on a load test session, which typically is
not done in production, but some test/staging system.

Cheers,
Daniel


___
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] [SR-Users] Info: initialization of libssl 1.1.+ with PTHREAD_PROCESS_SHARED attribute for pthread mutex and rwlock

2019-10-21 Thread Daniel-Constantin Mierla
Hello,

can you provide the full backtrace from gdb?

Also, give the output for "kamailio -I" and the exact version for libssl.

Cheers,
Daniel

On 20.10.19 22:35, Vitalii Aleksandrov wrote:
> Hi.
>
> I'm going to jump into this thread with a bit different but related
> problem. I've tried kamailio master branch with the mentioned
> workaround and it still crashes almost immediately in my load tests
> when kamailio is linked to
> libssl-1.1.1.
> Haven't followed kamailio recently since had to switch to opensips for
> my current project but the root of the problem is the same - the
> multiprocess nature of a proxy and new behavior of libssl that uses
> pthread functions directly. This workaround with pthread_mutex_init()
> overriding really helps with deadlocks found with libssl1.1.0, but
> after switching to libssl1.1.1 it started to crash again. That lib
> version also uses thread local storage what most probably creates new
> problems since ssl contex IIRC might be moved between tcp main and
> workers.
>
> Has anyone tested kamailio master on debian 10 with libssl-1.1.1 and
> many concurrent tls connections?
>
>> I understood it happened on a load test session, which typically is
>> not done in production, but some test/staging system.
>>
>> Cheers,
>> Daniel
>>
>
> ___
> Kamailio (SER) - Development Mailing List
> sr-dev@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training, Oct 21-23, 2019, Berlin, Germany -- 
https://asipto.com/u/kat


___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [SR-Users] Info: initialization of libssl 1.1.+ with PTHREAD_PROCESS_SHARED attribute for pthread mutex and rwlock

2019-09-21 Thread Andrew Chen
Hi Daniel,

Just checking in to get any updates/findings on the stack trace I provided
above.

Thanks.

On Thu, Sep 19, 2019 at 11:29 AM Andrew Chen  wrote:

> So what I pasted above is the same segfault we got from libcrypto.so
>
> On Thu, Sep 19, 2019 at 11:03 AM Daniel-Constantin Mierla <
> mico...@gmail.com> wrote:
>
>> You do not need to reproduce if you still have the core files and
>> installed the debug symbols for your version, just run again gdb on the
>> core and get the backtraces.
>>
>> Cheers,
>> Daniel
>> On 18.09.19 22:35, Andrew Chen wrote:
>>
>> Yup understood.  I'll provide the bt when we can reproduce this.
>>
>> Thanks
>>
>> On Wed, Sep 18, 2019 at 4:32 PM Henning Westerholt 
>> wrote:
>>
>>> Hi Andrew,
>>>
>>> the 5.2.4 does not contain the 5.3-pre1 workaround yet.
>>>
>>> So if you test the workaround you need to install the lastest 5.3 from
>>> the git master debian repository.
>>>
>>> But nevertheless it would be good to look at the backtrace, while you
>>> have it.
>>>
>>> Cheers,
>>>
>>> Henning
>>> Am 18.09.19 um 22:10 schrieb Joel Serrano:
>>>
>>> Hi Andrew,
>>>
>>> Download from here:
>>> http://deb.kamailio.org/kamailio52/pool/main/k/kamailio/
>>>
>>> You have kamailio-dbg v5.2.4 (latest 5.2) for all distros...
>>>
>>> Example for amd64+stretch:
>>> http://deb.kamailio.org/kamailio52/pool/main/k/kamailio/kamailio-dbg_5.2.4%2Bstretch_amd64.deb
>>>
>>> Cheers,
>>> Joel.
>>>
>>>
>>>
>>>
>>>
>>> On Wed, Sep 18, 2019 at 12:16 PM Andrew Chen  wrote:
>>>
 Hi Henning,

 I'm running 5.2.4.  Will this deb package work?

 On Wed, Sep 18, 2019 at 2:39 PM Andrew Chen  wrote:

> Thanks Henning
>
> On Wed, Sep 18, 2019 at 2:13 PM Henning Westerholt 
> wrote:
>
>> Hello Andrew,
>>
>> strange - it should be there, as it is available on deb.kamailio.org.
>>
>>
>> Here e.g. the one for 64bit stretch:
>>
>>
>> https://deb.kamailio.org/kamailiodev-nightly/pool/main/k/kamailio/kamailio-dbg_5.3.0~pre1%2B0~20190918005413.1490%2Bstretch_amd64.deb
>>
>> Cheers,
>>
>> Henning
>> Am 18.09.19 um 18:52 schrieb Andrew Chen:
>>
>> I don't see one for debug:
>>
>> root@ashintgkama51:~ # apt-cache search kamailio
>>
>> resource-agents - Cluster Resource Agents
>>
>> kamailio - very fast, dynamic and configurable SIP server
>>
>> kamailio-autheph-modules - authentication using ephemeral credentials
>> for the Kamailio SIP server
>>
>> kamailio-berkeley-bin - Berkeley database module for Kamailio -
>> helper program
>>
>> kamailio-berkeley-modules - Berkeley database module for the Kamailio
>> SIP server
>>
>> kamailio-carrierroute-modules - carrierroute module for the Kamailio
>> SIP server
>>
>> kamailio-cnxcc-modules - cnxcc modules for the Kamailio SIP server
>>
>> kamailio-cpl-modules - CPL module (CPL interpreter engine) for the
>> Kamailio SIP server
>>
>> kamailio-erlang-modules - Erlang modules for the Kamailio SIP server
>>
>> kamailio-geoip-modules - geoip module for the Kamailio SIP Server
>>
>> kamailio-geoip2-modules - geoip2 module for the Kamailio SIP Server
>>
>> kamailio-ims-modules - IMS module for the Kamailio SIP server
>>
>> kamailio-json-modules - Json parser and Json-RPC modules for the
>> Kamailio SIP server
>>
>> On Wed, Sep 18, 2019 at 11:26 AM Daniel-Constantin Mierla <
>> mico...@gmail.com> wrote:
>>
>>> You have to install the debug symbols package, otherwise the
>>> backtrace doesn't show any useful information. It just require to 
>>> install
>>> that package and then get again the backtraces. The package name should 
>>> be
>>> kamailio-dbg.
>>>
>>> Cheers,
>>> Daniel
>>> On 18.09.19 16:37, Andrew Chen wrote:
>>>
>>> Sorry..forgot bt full output
>>>
>>> (gdb) bt full
>>>
>>> #0  0x562fcc3544c0 in ?? ()
>>>
>>> No symbol table info available.
>>>
>>> #1  0x562fcc354632 in ?? ()
>>>
>>> No symbol table info available.
>>>
>>> #2  0x562fcc354974 in local_timer_run ()
>>>
>>> No symbol table info available.
>>>
>>> #3  0x562fcc3fb256 in ?? ()
>>>
>>> No symbol table info available.
>>>
>>> #4  0x562fcc3fb64c in tcp_receive_loop ()
>>>
>>> No symbol table info available.
>>>
>>> #5  0x562fcc2acf52 in tcp_init_children ()
>>>
>>> No symbol table info available.
>>>
>>> #6  0x562fcc1ad94a in main_loop ()
>>>
>>> No symbol table info available.
>>>
>>> #7  0x562fcc1b4a7b in main ()
>>>
>>> No symbol table info available.
>>>
>>> (gdb)
>>>
>>> On Wed, Sep 18, 2019 at 10:35 AM Andrew Chen  wrote:
>>>
 backtrace output:


 (gdb) bt

 #0  

Re: [sr-dev] [SR-Users] Info: initialization of libssl 1.1.+ with PTHREAD_PROCESS_SHARED attribute for pthread mutex and rwlock

2019-09-20 Thread Andrew Chen
So what I pasted above is the same segfault we got from libcrypto.so

On Thu, Sep 19, 2019 at 11:03 AM Daniel-Constantin Mierla 
wrote:

> You do not need to reproduce if you still have the core files and
> installed the debug symbols for your version, just run again gdb on the
> core and get the backtraces.
>
> Cheers,
> Daniel
> On 18.09.19 22:35, Andrew Chen wrote:
>
> Yup understood.  I'll provide the bt when we can reproduce this.
>
> Thanks
>
> On Wed, Sep 18, 2019 at 4:32 PM Henning Westerholt  wrote:
>
>> Hi Andrew,
>>
>> the 5.2.4 does not contain the 5.3-pre1 workaround yet.
>>
>> So if you test the workaround you need to install the lastest 5.3 from
>> the git master debian repository.
>>
>> But nevertheless it would be good to look at the backtrace, while you
>> have it.
>>
>> Cheers,
>>
>> Henning
>> Am 18.09.19 um 22:10 schrieb Joel Serrano:
>>
>> Hi Andrew,
>>
>> Download from here:
>> http://deb.kamailio.org/kamailio52/pool/main/k/kamailio/
>>
>> You have kamailio-dbg v5.2.4 (latest 5.2) for all distros...
>>
>> Example for amd64+stretch:
>> http://deb.kamailio.org/kamailio52/pool/main/k/kamailio/kamailio-dbg_5.2.4%2Bstretch_amd64.deb
>>
>> Cheers,
>> Joel.
>>
>>
>>
>>
>>
>> On Wed, Sep 18, 2019 at 12:16 PM Andrew Chen  wrote:
>>
>>> Hi Henning,
>>>
>>> I'm running 5.2.4.  Will this deb package work?
>>>
>>> On Wed, Sep 18, 2019 at 2:39 PM Andrew Chen  wrote:
>>>
 Thanks Henning

 On Wed, Sep 18, 2019 at 2:13 PM Henning Westerholt 
 wrote:

> Hello Andrew,
>
> strange - it should be there, as it is available on deb.kamailio.org.
>
> Here e.g. the one for 64bit stretch:
>
>
> https://deb.kamailio.org/kamailiodev-nightly/pool/main/k/kamailio/kamailio-dbg_5.3.0~pre1%2B0~20190918005413.1490%2Bstretch_amd64.deb
>
> Cheers,
>
> Henning
> Am 18.09.19 um 18:52 schrieb Andrew Chen:
>
> I don't see one for debug:
>
> root@ashintgkama51:~ # apt-cache search kamailio
>
> resource-agents - Cluster Resource Agents
>
> kamailio - very fast, dynamic and configurable SIP server
>
> kamailio-autheph-modules - authentication using ephemeral credentials
> for the Kamailio SIP server
>
> kamailio-berkeley-bin - Berkeley database module for Kamailio - helper
> program
>
> kamailio-berkeley-modules - Berkeley database module for the Kamailio
> SIP server
>
> kamailio-carrierroute-modules - carrierroute module for the Kamailio
> SIP server
>
> kamailio-cnxcc-modules - cnxcc modules for the Kamailio SIP server
>
> kamailio-cpl-modules - CPL module (CPL interpreter engine) for the
> Kamailio SIP server
>
> kamailio-erlang-modules - Erlang modules for the Kamailio SIP server
>
> kamailio-geoip-modules - geoip module for the Kamailio SIP Server
>
> kamailio-geoip2-modules - geoip2 module for the Kamailio SIP Server
>
> kamailio-ims-modules - IMS module for the Kamailio SIP server
>
> kamailio-json-modules - Json parser and Json-RPC modules for the
> Kamailio SIP server
>
> On Wed, Sep 18, 2019 at 11:26 AM Daniel-Constantin Mierla <
> mico...@gmail.com> wrote:
>
>> You have to install the debug symbols package, otherwise the
>> backtrace doesn't show any useful information. It just require to install
>> that package and then get again the backtraces. The package name should 
>> be
>> kamailio-dbg.
>>
>> Cheers,
>> Daniel
>> On 18.09.19 16:37, Andrew Chen wrote:
>>
>> Sorry..forgot bt full output
>>
>> (gdb) bt full
>>
>> #0  0x562fcc3544c0 in ?? ()
>>
>> No symbol table info available.
>>
>> #1  0x562fcc354632 in ?? ()
>>
>> No symbol table info available.
>>
>> #2  0x562fcc354974 in local_timer_run ()
>>
>> No symbol table info available.
>>
>> #3  0x562fcc3fb256 in ?? ()
>>
>> No symbol table info available.
>>
>> #4  0x562fcc3fb64c in tcp_receive_loop ()
>>
>> No symbol table info available.
>>
>> #5  0x562fcc2acf52 in tcp_init_children ()
>>
>> No symbol table info available.
>>
>> #6  0x562fcc1ad94a in main_loop ()
>>
>> No symbol table info available.
>>
>> #7  0x562fcc1b4a7b in main ()
>>
>> No symbol table info available.
>>
>> (gdb)
>>
>> On Wed, Sep 18, 2019 at 10:35 AM Andrew Chen  wrote:
>>
>>> backtrace output:
>>>
>>>
>>> (gdb) bt
>>>
>>> #0  0x562fcc3544c0 in ?? ()
>>>
>>> #1  0x562fcc354632 in ?? ()
>>>
>>> #2  0x562fcc354974 in local_timer_run ()
>>>
>>> #3  0x562fcc3fb256 in ?? ()
>>>
>>> #4  0x562fcc3fb64c in tcp_receive_loop ()
>>>
>>> #5  0x562fcc2acf52 in tcp_init_children ()
>>>
>>> #6  0x562fcc1ad94a in main_loop ()
>>>
>>> #7  

Re: [sr-dev] [SR-Users] Info: initialization of libssl 1.1.+ with PTHREAD_PROCESS_SHARED attribute for pthread mutex and rwlock

2019-09-20 Thread Andrew Chen
So I got the latest bt full output;

(gdb) bt full
#0  0x7f160fa6c585 in ?? () from
/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
No symbol table info available.
#1  0x7f160fb485a7 in ?? () from
/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
No symbol table info available.
#2  0x7f160fb5412b in EVP_EncryptUpdate () from
/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
No symbol table info available.
#3  0x7f160fb8691e in ?? () from
/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
No symbol table info available.
#4  0x7f160fb86bfd in ?? () from
/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
No symbol table info available.
#5  0x7f160fb87a1f in RAND_DRBG_generate () from
/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
No symbol table info available.
#6  0x7f160fb87cbe in RAND_DRBG_bytes () from
/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
No symbol table info available.
#7  0x7f160fedeb65 in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so.1.1
No symbol table info available.
#8  0x7f160ff0ff36 in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so.1.1
No symbol table info available.
#9  0x7f160feff4b2 in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so.1.1
No symbol table info available.
#10 0x7f160feeb4c4 in SSL_do_handshake () from
/usr/lib/x86_64-linux-gnu/libssl.so.1.1
No symbol table info available.
#11 0x7f161017e6b8 in tls_accept (c=0x7f1608df0398,
error=0x7ffd4dedaff0) at tls_server.c:422
ret = 1307422640
ssl = 0x7f160c1bec60
cert = 0x7f160a6d1590
tls_c = 0x7f160b44db70
tls_log = 269998018
__func__ = "tls_accept"
pkey = 0x0
#12 0x7f1610187dbd in tls_read_f (c=0x7f1608df0398,
flags=0x7ffd4defb38c) at tls_server.c:1116
r = 0x7f1608df0418
bytes_free = 16391
bytes_read = 517
read_size = 16391
ssl_error = 0
ssl_read = 0
ssl = 0x7f160c1bec60
rd_buf =
"\026\003\001\002\000\001\000\001\374\003\003\n\346\346\f\214\235\236PQX\256*\264ߟV\245<\333\034\031>@\"\347\030n\251
K\226\357.n\343\376\t\245\341\217t\201\300R6\215\217ٸ\333fIH@
\315$xV,\301\235\000\"\032\032\023\001\023\002\023\003\300+\300/\300,\300\060̨̩\300\023\300\024\000\234\000\235\000/\000\065\000\n\001\000\001\221ZZ\000\000\000\000\000#\000!\000\000\
036ashintgfnsgvip.fuzemeeting.com
\000\027\000\000\377\001\000\001\000\000\n\000\n\000\bZZ\000\035\000\027\000\030\000\v\000\002\001\000\000#\000\320>\035Z\257\345\344\373\256\355\310l\317"...
wr_buf = "\026\003\003\000\332\004\000\000\326\000\000\034
\000\320(n\330?\374]\200\n\032\367U\217쮹2!\247\305s\207\037t\347z.&(L\351\036xD\035\343\067\005o7\271\f[\276l\246\024\231WU\020\322H\223\062uFr\020\375\256\070^\355<\347\277\v\227\021\330\027\310(\276o\375ԁBM\226\362\364\321o\035[\002
\277\357\232.\266:\301\365\315\t\350\230\334\v\334\064\003&\017؉\315\350\375d\233\027\273\034\311\020R\314\003!\210\250&&\253\306C1/\371-g\371\001\374I\353\363r\270\347s9\245\256\255&\361\276d\201\274\003\030,}\345\256\035\"5\370i\237\267\301\232\300Ѹ{c\212\344\235\375^\005\200a\375\372\241\066-3"...
rd = {buf = 0x7ffd4dedb0c0 "\026\003\001\002", pos = 517, used =
517, size = 65536}
wr = {buf = 0x7ffd4deeb0c0 "\026\003\003", pos = 0, used = 0, size
= 65536}
tls_c = 0x7f160b44db70
enc_rd_buf = 0x0
n = 0
flush_flags = 32765
err_src = 0x7f16101b05ae "TLS read:"
x = 1307554700
tls_dbg = 0
__func__ = "tls_read_f"
--Type  for more, q to quit, c to continue without paging--
#13 0x55c48a04e753 in tcp_read_headers (c=0x7f1608df0398,
read_flags=0x7ffd4defb38c) at core/tcp_read.c:469
bytes = 550
remaining = 21956
p = 0x1050004 
r = 0x7f1608df0418
mc = 32534
body_len = 5731
mfline = 0x0
mtransid = {s = 0x7f16166d8216 "UTC", len = 48}
__func__ = "tcp_read_headers"
#14 0x55c48a0564d8 in tcp_read_req (con=0x7f1608df0398,
bytes_read=0x7ffd4defb388, read_flags=0x7ffd4defb38c) at
core/tcp_read.c:1496
bytes = -1
total_bytes = 0
resp = 1
size = 4294967298
req = 0x7f1608df0418
dst = {send_sock = 0x7ffd4defb2e0, to = {s = {sa_family = 15407,
sa_data = "E\004\026\177\000\000ȳ\357M\375\177\000"}, sin = {sin_family =
15407, sin_port = 1093, sin_addr = {s_addr = 32534},
  sin_zero = "ȳ\357M\375\177\000"}, sin6 = {sin6_family =
15407, sin6_port = 1093, sin6_flowinfo = 32534, sin6_addr = {__in6_u =
{__u6_addr8 = "ȳ\357M\375\177\000\000\004\263\357M\375\177\000",
  __u6_addr16 = {46024, 19951, 32765, 0, 45828, 19951,
32765, 0}, __u6_addr32 = {1307554760, 32765, 1307554564, 32765}}},
sin6_scope_id = 20}}, id = 4, proto = -32 '\340', send_flags = {
f = 35360, blst_imask = 21956}}
c = 105 'i'
ret = 117082496
__func__ = "tcp_read_req"
#15 0x55c48a05b5fd in handle_io (fm=0x7f1614851900, events=1, idx=-1)
at core/tcp_read.c:1804
ret = 8
  

Re: [sr-dev] [SR-Users] Info: initialization of libssl 1.1.+ with PTHREAD_PROCESS_SHARED attribute for pthread mutex and rwlock

2019-09-19 Thread Andrew Chen
Yup understood.  I'll provide the bt when we can reproduce this.

Thanks

On Wed, Sep 18, 2019 at 4:32 PM Henning Westerholt  wrote:

> Hi Andrew,
>
> the 5.2.4 does not contain the 5.3-pre1 workaround yet.
>
> So if you test the workaround you need to install the lastest 5.3 from the
> git master debian repository.
>
> But nevertheless it would be good to look at the backtrace, while you have
> it.
>
> Cheers,
>
> Henning
> Am 18.09.19 um 22:10 schrieb Joel Serrano:
>
> Hi Andrew,
>
> Download from here:
> http://deb.kamailio.org/kamailio52/pool/main/k/kamailio/
>
> You have kamailio-dbg v5.2.4 (latest 5.2) for all distros...
>
> Example for amd64+stretch:
> http://deb.kamailio.org/kamailio52/pool/main/k/kamailio/kamailio-dbg_5.2.4%2Bstretch_amd64.deb
>
> Cheers,
> Joel.
>
>
>
>
>
> On Wed, Sep 18, 2019 at 12:16 PM Andrew Chen  wrote:
>
>> Hi Henning,
>>
>> I'm running 5.2.4.  Will this deb package work?
>>
>> On Wed, Sep 18, 2019 at 2:39 PM Andrew Chen  wrote:
>>
>>> Thanks Henning
>>>
>>> On Wed, Sep 18, 2019 at 2:13 PM Henning Westerholt 
>>> wrote:
>>>
 Hello Andrew,

 strange - it should be there, as it is available on deb.kamailio.org.

 Here e.g. the one for 64bit stretch:


 https://deb.kamailio.org/kamailiodev-nightly/pool/main/k/kamailio/kamailio-dbg_5.3.0~pre1%2B0~20190918005413.1490%2Bstretch_amd64.deb

 Cheers,

 Henning
 Am 18.09.19 um 18:52 schrieb Andrew Chen:

 I don't see one for debug:

 root@ashintgkama51:~ # apt-cache search kamailio

 resource-agents - Cluster Resource Agents

 kamailio - very fast, dynamic and configurable SIP server

 kamailio-autheph-modules - authentication using ephemeral credentials
 for the Kamailio SIP server

 kamailio-berkeley-bin - Berkeley database module for Kamailio - helper
 program

 kamailio-berkeley-modules - Berkeley database module for the Kamailio
 SIP server

 kamailio-carrierroute-modules - carrierroute module for the Kamailio
 SIP server

 kamailio-cnxcc-modules - cnxcc modules for the Kamailio SIP server

 kamailio-cpl-modules - CPL module (CPL interpreter engine) for the
 Kamailio SIP server

 kamailio-erlang-modules - Erlang modules for the Kamailio SIP server

 kamailio-geoip-modules - geoip module for the Kamailio SIP Server

 kamailio-geoip2-modules - geoip2 module for the Kamailio SIP Server

 kamailio-ims-modules - IMS module for the Kamailio SIP server

 kamailio-json-modules - Json parser and Json-RPC modules for the
 Kamailio SIP server

 On Wed, Sep 18, 2019 at 11:26 AM Daniel-Constantin Mierla <
 mico...@gmail.com> wrote:

> You have to install the debug symbols package, otherwise the backtrace
> doesn't show any useful information. It just require to install that
> package and then get again the backtraces. The package name should be
> kamailio-dbg.
>
> Cheers,
> Daniel
> On 18.09.19 16:37, Andrew Chen wrote:
>
> Sorry..forgot bt full output
>
> (gdb) bt full
>
> #0  0x562fcc3544c0 in ?? ()
>
> No symbol table info available.
>
> #1  0x562fcc354632 in ?? ()
>
> No symbol table info available.
>
> #2  0x562fcc354974 in local_timer_run ()
>
> No symbol table info available.
>
> #3  0x562fcc3fb256 in ?? ()
>
> No symbol table info available.
>
> #4  0x562fcc3fb64c in tcp_receive_loop ()
>
> No symbol table info available.
>
> #5  0x562fcc2acf52 in tcp_init_children ()
>
> No symbol table info available.
>
> #6  0x562fcc1ad94a in main_loop ()
>
> No symbol table info available.
>
> #7  0x562fcc1b4a7b in main ()
>
> No symbol table info available.
>
> (gdb)
>
> On Wed, Sep 18, 2019 at 10:35 AM Andrew Chen  wrote:
>
>> backtrace output:
>>
>>
>> (gdb) bt
>>
>> #0  0x562fcc3544c0 in ?? ()
>>
>> #1  0x562fcc354632 in ?? ()
>>
>> #2  0x562fcc354974 in local_timer_run ()
>>
>> #3  0x562fcc3fb256 in ?? ()
>>
>> #4  0x562fcc3fb64c in tcp_receive_loop ()
>>
>> #5  0x562fcc2acf52 in tcp_init_children ()
>>
>> #6  0x562fcc1ad94a in main_loop ()
>>
>> #7  0x562fcc1b4a7b in main ()
>>
>> (gdb)
>>
>>
>>
>>
>> On Wed, Sep 18, 2019 at 10:01 AM Andrew Chen  wrote:
>>
>>> I'll look for the core.
>>>
>>> As part of our release process, I don't think we can release master
>>> branch of Kamailio.
>>>
>>> On Wed, Sep 18, 2019 at 9:54 AM Daniel-Constantin Mierla <
>>> mico...@gmail.com> wrote:
>>>
 Hello,

 did you get core files? If yes, it would be good to see the gdb
 bracktraces.

 Have you used the 

Re: [sr-dev] [SR-Users] Info: initialization of libssl 1.1.+ with PTHREAD_PROCESS_SHARED attribute for pthread mutex and rwlock

2019-09-19 Thread Andrew Chen
Thanks Joel.

Got it to work:

root@ashintgkama51:/home/achen # dpkg -l | grep kamailio-dbg

ii  *kamailio-dbg*:amd64   5.2.4+bionic
  amd64very fast and configurable SIP server [debug symbols]

root@ashintgkama51:/home/achen #


Just to confirm there's no modparam or loadmodules for this to work?


On Wed, Sep 18, 2019 at 4:14 PM Joel Serrano  wrote:

> Hi Andrew,
>
> Download from here:
> http://deb.kamailio.org/kamailio52/pool/main/k/kamailio/
>
> You have kamailio-dbg v5.2.4 (latest 5.2) for all distros...
>
> Example for amd64+stretch:
> http://deb.kamailio.org/kamailio52/pool/main/k/kamailio/kamailio-dbg_5.2.4%2Bstretch_amd64.deb
>
> Cheers,
> Joel.
>
>
>
>
>
> On Wed, Sep 18, 2019 at 12:16 PM Andrew Chen  wrote:
>
>> Hi Henning,
>>
>> I'm running 5.2.4.  Will this deb package work?
>>
>> On Wed, Sep 18, 2019 at 2:39 PM Andrew Chen  wrote:
>>
>>> Thanks Henning
>>>
>>> On Wed, Sep 18, 2019 at 2:13 PM Henning Westerholt 
>>> wrote:
>>>
 Hello Andrew,

 strange - it should be there, as it is available on deb.kamailio.org.

 Here e.g. the one for 64bit stretch:


 https://deb.kamailio.org/kamailiodev-nightly/pool/main/k/kamailio/kamailio-dbg_5.3.0~pre1%2B0~20190918005413.1490%2Bstretch_amd64.deb

 Cheers,

 Henning
 Am 18.09.19 um 18:52 schrieb Andrew Chen:

 I don't see one for debug:

 root@ashintgkama51:~ # apt-cache search kamailio

 resource-agents - Cluster Resource Agents

 kamailio - very fast, dynamic and configurable SIP server

 kamailio-autheph-modules - authentication using ephemeral credentials
 for the Kamailio SIP server

 kamailio-berkeley-bin - Berkeley database module for Kamailio - helper
 program

 kamailio-berkeley-modules - Berkeley database module for the Kamailio
 SIP server

 kamailio-carrierroute-modules - carrierroute module for the Kamailio
 SIP server

 kamailio-cnxcc-modules - cnxcc modules for the Kamailio SIP server

 kamailio-cpl-modules - CPL module (CPL interpreter engine) for the
 Kamailio SIP server

 kamailio-erlang-modules - Erlang modules for the Kamailio SIP server

 kamailio-geoip-modules - geoip module for the Kamailio SIP Server

 kamailio-geoip2-modules - geoip2 module for the Kamailio SIP Server

 kamailio-ims-modules - IMS module for the Kamailio SIP server

 kamailio-json-modules - Json parser and Json-RPC modules for the
 Kamailio SIP server

 On Wed, Sep 18, 2019 at 11:26 AM Daniel-Constantin Mierla <
 mico...@gmail.com> wrote:

> You have to install the debug symbols package, otherwise the backtrace
> doesn't show any useful information. It just require to install that
> package and then get again the backtraces. The package name should be
> kamailio-dbg.
>
> Cheers,
> Daniel
> On 18.09.19 16:37, Andrew Chen wrote:
>
> Sorry..forgot bt full output
>
> (gdb) bt full
>
> #0  0x562fcc3544c0 in ?? ()
>
> No symbol table info available.
>
> #1  0x562fcc354632 in ?? ()
>
> No symbol table info available.
>
> #2  0x562fcc354974 in local_timer_run ()
>
> No symbol table info available.
>
> #3  0x562fcc3fb256 in ?? ()
>
> No symbol table info available.
>
> #4  0x562fcc3fb64c in tcp_receive_loop ()
>
> No symbol table info available.
>
> #5  0x562fcc2acf52 in tcp_init_children ()
>
> No symbol table info available.
>
> #6  0x562fcc1ad94a in main_loop ()
>
> No symbol table info available.
>
> #7  0x562fcc1b4a7b in main ()
>
> No symbol table info available.
>
> (gdb)
>
> On Wed, Sep 18, 2019 at 10:35 AM Andrew Chen  wrote:
>
>> backtrace output:
>>
>>
>> (gdb) bt
>>
>> #0  0x562fcc3544c0 in ?? ()
>>
>> #1  0x562fcc354632 in ?? ()
>>
>> #2  0x562fcc354974 in local_timer_run ()
>>
>> #3  0x562fcc3fb256 in ?? ()
>>
>> #4  0x562fcc3fb64c in tcp_receive_loop ()
>>
>> #5  0x562fcc2acf52 in tcp_init_children ()
>>
>> #6  0x562fcc1ad94a in main_loop ()
>>
>> #7  0x562fcc1b4a7b in main ()
>>
>> (gdb)
>>
>>
>>
>>
>> On Wed, Sep 18, 2019 at 10:01 AM Andrew Chen  wrote:
>>
>>> I'll look for the core.
>>>
>>> As part of our release process, I don't think we can release master
>>> branch of Kamailio.
>>>
>>> On Wed, Sep 18, 2019 at 9:54 AM Daniel-Constantin Mierla <
>>> mico...@gmail.com> wrote:
>>>
 Hello,

 did you get core files? If yes, it would be good to see the gdb
 bracktraces.

 Have you used the pre-loaded library workaround?

 The code was not backported to branch 5.2 yet, 

Re: [sr-dev] [SR-Users] Info: initialization of libssl 1.1.+ with PTHREAD_PROCESS_SHARED attribute for pthread mutex and rwlock

2019-09-19 Thread Andrew Chen
Hi Henning,

I'm running 5.2.4.  Will this deb package work?

On Wed, Sep 18, 2019 at 2:39 PM Andrew Chen  wrote:

> Thanks Henning
>
> On Wed, Sep 18, 2019 at 2:13 PM Henning Westerholt  wrote:
>
>> Hello Andrew,
>>
>> strange - it should be there, as it is available on deb.kamailio.org.
>>
>> Here e.g. the one for 64bit stretch:
>>
>>
>> https://deb.kamailio.org/kamailiodev-nightly/pool/main/k/kamailio/kamailio-dbg_5.3.0~pre1%2B0~20190918005413.1490%2Bstretch_amd64.deb
>>
>> Cheers,
>>
>> Henning
>> Am 18.09.19 um 18:52 schrieb Andrew Chen:
>>
>> I don't see one for debug:
>>
>> root@ashintgkama51:~ # apt-cache search kamailio
>>
>> resource-agents - Cluster Resource Agents
>>
>> kamailio - very fast, dynamic and configurable SIP server
>>
>> kamailio-autheph-modules - authentication using ephemeral credentials for
>> the Kamailio SIP server
>>
>> kamailio-berkeley-bin - Berkeley database module for Kamailio - helper
>> program
>>
>> kamailio-berkeley-modules - Berkeley database module for the Kamailio SIP
>> server
>>
>> kamailio-carrierroute-modules - carrierroute module for the Kamailio SIP
>> server
>>
>> kamailio-cnxcc-modules - cnxcc modules for the Kamailio SIP server
>>
>> kamailio-cpl-modules - CPL module (CPL interpreter engine) for the
>> Kamailio SIP server
>>
>> kamailio-erlang-modules - Erlang modules for the Kamailio SIP server
>>
>> kamailio-geoip-modules - geoip module for the Kamailio SIP Server
>>
>> kamailio-geoip2-modules - geoip2 module for the Kamailio SIP Server
>>
>> kamailio-ims-modules - IMS module for the Kamailio SIP server
>>
>> kamailio-json-modules - Json parser and Json-RPC modules for the Kamailio
>> SIP server
>>
>> On Wed, Sep 18, 2019 at 11:26 AM Daniel-Constantin Mierla <
>> mico...@gmail.com> wrote:
>>
>>> You have to install the debug symbols package, otherwise the backtrace
>>> doesn't show any useful information. It just require to install that
>>> package and then get again the backtraces. The package name should be
>>> kamailio-dbg.
>>>
>>> Cheers,
>>> Daniel
>>> On 18.09.19 16:37, Andrew Chen wrote:
>>>
>>> Sorry..forgot bt full output
>>>
>>> (gdb) bt full
>>>
>>> #0  0x562fcc3544c0 in ?? ()
>>>
>>> No symbol table info available.
>>>
>>> #1  0x562fcc354632 in ?? ()
>>>
>>> No symbol table info available.
>>>
>>> #2  0x562fcc354974 in local_timer_run ()
>>>
>>> No symbol table info available.
>>>
>>> #3  0x562fcc3fb256 in ?? ()
>>>
>>> No symbol table info available.
>>>
>>> #4  0x562fcc3fb64c in tcp_receive_loop ()
>>>
>>> No symbol table info available.
>>>
>>> #5  0x562fcc2acf52 in tcp_init_children ()
>>>
>>> No symbol table info available.
>>>
>>> #6  0x562fcc1ad94a in main_loop ()
>>>
>>> No symbol table info available.
>>>
>>> #7  0x562fcc1b4a7b in main ()
>>>
>>> No symbol table info available.
>>>
>>> (gdb)
>>>
>>> On Wed, Sep 18, 2019 at 10:35 AM Andrew Chen  wrote:
>>>
 backtrace output:


 (gdb) bt

 #0  0x562fcc3544c0 in ?? ()

 #1  0x562fcc354632 in ?? ()

 #2  0x562fcc354974 in local_timer_run ()

 #3  0x562fcc3fb256 in ?? ()

 #4  0x562fcc3fb64c in tcp_receive_loop ()

 #5  0x562fcc2acf52 in tcp_init_children ()

 #6  0x562fcc1ad94a in main_loop ()

 #7  0x562fcc1b4a7b in main ()

 (gdb)




 On Wed, Sep 18, 2019 at 10:01 AM Andrew Chen  wrote:

> I'll look for the core.
>
> As part of our release process, I don't think we can release master
> branch of Kamailio.
>
> On Wed, Sep 18, 2019 at 9:54 AM Daniel-Constantin Mierla <
> mico...@gmail.com> wrote:
>
>> Hello,
>>
>> did you get core files? If yes, it would be good to see the gdb
>> bracktraces.
>>
>> Have you used the pre-loaded library workaround?
>>
>> The code was not backported to branch 5.2 yet, I wanted to wait a bit
>> and see if there are reports with good/bad results. If you want to use 
>> it,
>> then you have to install nightly builds from master branch (development
>> version, should be 5.3.0-pre1 at this moment).
>>
>> Cheers,
>> Daniel
>> On 18.09.19 15:26, Andrew Chen wrote:
>>
>> Hi Daniel,
>> Which apt repository can we get this workaround?   Today I noticed
>> our Kamailio 5.2.4 cored during one of our load test sessions:
>>
>> Wed Sep 18 09:31:14 2019] kamailio[26997]: segfault at 7f8501366000
>> ip 7f8501e58585 sp 7fffd5c84248 error 4 in
>> libcrypto.so.1.1[7f8501dd4000+29b000]
>>
>> [Wed Sep 18 10:12:29 2019] kamailio[27110]: segfault at 7f1a8eea1000
>> ip 7f1a8f993585 sp 7ffddc8848c8 error 4 in
>> libcrypto.so.1.1[7f1a8f90f000+29b000]
>>
>> [Wed Sep 18 10:12:43 2019] kamailio[11060]: segfault at 20 ip
>> 7f0a85dac128 sp 7fff6847aad0 error 4 in
>> libcrypto.so.1.1[7f0a85c4+29b000]
>>
>> [Wed Sep 18 

Re: [sr-dev] [SR-Users] Info: initialization of libssl 1.1.+ with PTHREAD_PROCESS_SHARED attribute for pthread mutex and rwlock

2019-09-19 Thread Andrew Chen
Thanks Henning

On Wed, Sep 18, 2019 at 2:13 PM Henning Westerholt  wrote:

> Hello Andrew,
>
> strange - it should be there, as it is available on deb.kamailio.org.
>
> Here e.g. the one for 64bit stretch:
>
>
> https://deb.kamailio.org/kamailiodev-nightly/pool/main/k/kamailio/kamailio-dbg_5.3.0~pre1%2B0~20190918005413.1490%2Bstretch_amd64.deb
>
> Cheers,
>
> Henning
> Am 18.09.19 um 18:52 schrieb Andrew Chen:
>
> I don't see one for debug:
>
> root@ashintgkama51:~ # apt-cache search kamailio
>
> resource-agents - Cluster Resource Agents
>
> kamailio - very fast, dynamic and configurable SIP server
>
> kamailio-autheph-modules - authentication using ephemeral credentials for
> the Kamailio SIP server
>
> kamailio-berkeley-bin - Berkeley database module for Kamailio - helper
> program
>
> kamailio-berkeley-modules - Berkeley database module for the Kamailio SIP
> server
>
> kamailio-carrierroute-modules - carrierroute module for the Kamailio SIP
> server
>
> kamailio-cnxcc-modules - cnxcc modules for the Kamailio SIP server
>
> kamailio-cpl-modules - CPL module (CPL interpreter engine) for the
> Kamailio SIP server
>
> kamailio-erlang-modules - Erlang modules for the Kamailio SIP server
>
> kamailio-geoip-modules - geoip module for the Kamailio SIP Server
>
> kamailio-geoip2-modules - geoip2 module for the Kamailio SIP Server
>
> kamailio-ims-modules - IMS module for the Kamailio SIP server
>
> kamailio-json-modules - Json parser and Json-RPC modules for the Kamailio
> SIP server
>
> On Wed, Sep 18, 2019 at 11:26 AM Daniel-Constantin Mierla <
> mico...@gmail.com> wrote:
>
>> You have to install the debug symbols package, otherwise the backtrace
>> doesn't show any useful information. It just require to install that
>> package and then get again the backtraces. The package name should be
>> kamailio-dbg.
>>
>> Cheers,
>> Daniel
>> On 18.09.19 16:37, Andrew Chen wrote:
>>
>> Sorry..forgot bt full output
>>
>> (gdb) bt full
>>
>> #0  0x562fcc3544c0 in ?? ()
>>
>> No symbol table info available.
>>
>> #1  0x562fcc354632 in ?? ()
>>
>> No symbol table info available.
>>
>> #2  0x562fcc354974 in local_timer_run ()
>>
>> No symbol table info available.
>>
>> #3  0x562fcc3fb256 in ?? ()
>>
>> No symbol table info available.
>>
>> #4  0x562fcc3fb64c in tcp_receive_loop ()
>>
>> No symbol table info available.
>>
>> #5  0x562fcc2acf52 in tcp_init_children ()
>>
>> No symbol table info available.
>>
>> #6  0x562fcc1ad94a in main_loop ()
>>
>> No symbol table info available.
>>
>> #7  0x562fcc1b4a7b in main ()
>>
>> No symbol table info available.
>>
>> (gdb)
>>
>> On Wed, Sep 18, 2019 at 10:35 AM Andrew Chen  wrote:
>>
>>> backtrace output:
>>>
>>>
>>> (gdb) bt
>>>
>>> #0  0x562fcc3544c0 in ?? ()
>>>
>>> #1  0x562fcc354632 in ?? ()
>>>
>>> #2  0x562fcc354974 in local_timer_run ()
>>>
>>> #3  0x562fcc3fb256 in ?? ()
>>>
>>> #4  0x562fcc3fb64c in tcp_receive_loop ()
>>>
>>> #5  0x562fcc2acf52 in tcp_init_children ()
>>>
>>> #6  0x562fcc1ad94a in main_loop ()
>>>
>>> #7  0x562fcc1b4a7b in main ()
>>>
>>> (gdb)
>>>
>>>
>>>
>>>
>>> On Wed, Sep 18, 2019 at 10:01 AM Andrew Chen  wrote:
>>>
 I'll look for the core.

 As part of our release process, I don't think we can release master
 branch of Kamailio.

 On Wed, Sep 18, 2019 at 9:54 AM Daniel-Constantin Mierla <
 mico...@gmail.com> wrote:

> Hello,
>
> did you get core files? If yes, it would be good to see the gdb
> bracktraces.
>
> Have you used the pre-loaded library workaround?
>
> The code was not backported to branch 5.2 yet, I wanted to wait a bit
> and see if there are reports with good/bad results. If you want to use it,
> then you have to install nightly builds from master branch (development
> version, should be 5.3.0-pre1 at this moment).
>
> Cheers,
> Daniel
> On 18.09.19 15:26, Andrew Chen wrote:
>
> Hi Daniel,
> Which apt repository can we get this workaround?   Today I noticed our
> Kamailio 5.2.4 cored during one of our load test sessions:
>
> Wed Sep 18 09:31:14 2019] kamailio[26997]: segfault at 7f8501366000
> ip 7f8501e58585 sp 7fffd5c84248 error 4 in
> libcrypto.so.1.1[7f8501dd4000+29b000]
>
> [Wed Sep 18 10:12:29 2019] kamailio[27110]: segfault at 7f1a8eea1000
> ip 7f1a8f993585 sp 7ffddc8848c8 error 4 in
> libcrypto.so.1.1[7f1a8f90f000+29b000]
>
> [Wed Sep 18 10:12:43 2019] kamailio[11060]: segfault at 20 ip
> 7f0a85dac128 sp 7fff6847aad0 error 4 in
> libcrypto.so.1.1[7f0a85c4+29b000]
>
> [Wed Sep 18 10:12:44 2019] kamailio[11059]: segfault at f0 ip
> 7f0a85cc43ea sp 7fff6847a9e8 error 4 in
> libcrypto.so.1.1[7f0a85c4+29b000]
>
> [Wed Sep 18 10:13:02 2019] kamailio[11187]: segfault at 7f75e06c8000
> ip 7f75e11ba585 sp 7ffe29b47c88 error 4 in
> 

Re: [sr-dev] [SR-Users] Info: initialization of libssl 1.1.+ with PTHREAD_PROCESS_SHARED attribute for pthread mutex and rwlock

2019-09-19 Thread Andrew Chen
I don't see one for debug:

root@ashintgkama51:~ # apt-cache search kamailio

resource-agents - Cluster Resource Agents

kamailio - very fast, dynamic and configurable SIP server

kamailio-autheph-modules - authentication using ephemeral credentials for
the Kamailio SIP server

kamailio-berkeley-bin - Berkeley database module for Kamailio - helper
program

kamailio-berkeley-modules - Berkeley database module for the Kamailio SIP
server

kamailio-carrierroute-modules - carrierroute module for the Kamailio SIP
server

kamailio-cnxcc-modules - cnxcc modules for the Kamailio SIP server

kamailio-cpl-modules - CPL module (CPL interpreter engine) for the Kamailio
SIP server

kamailio-erlang-modules - Erlang modules for the Kamailio SIP server

kamailio-geoip-modules - geoip module for the Kamailio SIP Server

kamailio-geoip2-modules - geoip2 module for the Kamailio SIP Server

kamailio-ims-modules - IMS module for the Kamailio SIP server

kamailio-json-modules - Json parser and Json-RPC modules for the Kamailio
SIP server

On Wed, Sep 18, 2019 at 11:26 AM Daniel-Constantin Mierla 
wrote:

> You have to install the debug symbols package, otherwise the backtrace
> doesn't show any useful information. It just require to install that
> package and then get again the backtraces. The package name should be
> kamailio-dbg.
>
> Cheers,
> Daniel
> On 18.09.19 16:37, Andrew Chen wrote:
>
> Sorry..forgot bt full output
>
> (gdb) bt full
>
> #0  0x562fcc3544c0 in ?? ()
>
> No symbol table info available.
>
> #1  0x562fcc354632 in ?? ()
>
> No symbol table info available.
>
> #2  0x562fcc354974 in local_timer_run ()
>
> No symbol table info available.
>
> #3  0x562fcc3fb256 in ?? ()
>
> No symbol table info available.
>
> #4  0x562fcc3fb64c in tcp_receive_loop ()
>
> No symbol table info available.
>
> #5  0x562fcc2acf52 in tcp_init_children ()
>
> No symbol table info available.
>
> #6  0x562fcc1ad94a in main_loop ()
>
> No symbol table info available.
>
> #7  0x562fcc1b4a7b in main ()
>
> No symbol table info available.
>
> (gdb)
>
> On Wed, Sep 18, 2019 at 10:35 AM Andrew Chen  wrote:
>
>> backtrace output:
>>
>>
>> (gdb) bt
>>
>> #0  0x562fcc3544c0 in ?? ()
>>
>> #1  0x562fcc354632 in ?? ()
>>
>> #2  0x562fcc354974 in local_timer_run ()
>>
>> #3  0x562fcc3fb256 in ?? ()
>>
>> #4  0x562fcc3fb64c in tcp_receive_loop ()
>>
>> #5  0x562fcc2acf52 in tcp_init_children ()
>>
>> #6  0x562fcc1ad94a in main_loop ()
>>
>> #7  0x562fcc1b4a7b in main ()
>>
>> (gdb)
>>
>>
>>
>>
>> On Wed, Sep 18, 2019 at 10:01 AM Andrew Chen  wrote:
>>
>>> I'll look for the core.
>>>
>>> As part of our release process, I don't think we can release master
>>> branch of Kamailio.
>>>
>>> On Wed, Sep 18, 2019 at 9:54 AM Daniel-Constantin Mierla <
>>> mico...@gmail.com> wrote:
>>>
 Hello,

 did you get core files? If yes, it would be good to see the gdb
 bracktraces.

 Have you used the pre-loaded library workaround?

 The code was not backported to branch 5.2 yet, I wanted to wait a bit
 and see if there are reports with good/bad results. If you want to use it,
 then you have to install nightly builds from master branch (development
 version, should be 5.3.0-pre1 at this moment).

 Cheers,
 Daniel
 On 18.09.19 15:26, Andrew Chen wrote:

 Hi Daniel,
 Which apt repository can we get this workaround?   Today I noticed our
 Kamailio 5.2.4 cored during one of our load test sessions:

 Wed Sep 18 09:31:14 2019] kamailio[26997]: segfault at 7f8501366000 ip
 7f8501e58585 sp 7fffd5c84248 error 4 in
 libcrypto.so.1.1[7f8501dd4000+29b000]

 [Wed Sep 18 10:12:29 2019] kamailio[27110]: segfault at 7f1a8eea1000
 ip 7f1a8f993585 sp 7ffddc8848c8 error 4 in
 libcrypto.so.1.1[7f1a8f90f000+29b000]

 [Wed Sep 18 10:12:43 2019] kamailio[11060]: segfault at 20 ip
 7f0a85dac128 sp 7fff6847aad0 error 4 in
 libcrypto.so.1.1[7f0a85c4+29b000]

 [Wed Sep 18 10:12:44 2019] kamailio[11059]: segfault at f0 ip
 7f0a85cc43ea sp 7fff6847a9e8 error 4 in
 libcrypto.so.1.1[7f0a85c4+29b000]

 [Wed Sep 18 10:13:02 2019] kamailio[11187]: segfault at 7f75e06c8000
 ip 7f75e11ba585 sp 7ffe29b47c88 error 4 in
 libcrypto.so.1.1[7f75e1136000+29b000]

 [Wed Sep 18 10:13:17 2019] kamailio[11445]: segfault at 7f0f3743f000
 ip 7f0f37f31585 sp 7ffde54daa38 error 4 in
 libcrypto.so.1.1[7f0f37ead000+29b000]

 [Wed Sep 18 10:13:36 2019] kamailio[11644]: segfault at 7f804309c000
 ip 7f8043b8e585 sp 7ffe89fe8228 error 4 in
 libcrypto.so.1.1[7f8043b0a000+29b000]

 [Wed Sep 18 10:13:52 2019] kamailio[11799]: segfault at 7ff59c7e2000
 ip 7ff59d2d4585 sp 7ffd69d76bb8 error 4 in
 libcrypto.so.1.1[7ff59d25+29b000]

 [Wed Sep 18 10:13:52 2019] kamailio[11792]: segfault 

Re: [sr-dev] [SR-Users] Info: initialization of libssl 1.1.+ with PTHREAD_PROCESS_SHARED attribute for pthread mutex and rwlock

2019-09-19 Thread Andrew Chen
Sorry..forgot bt full output

(gdb) bt full

#0  0x562fcc3544c0 in ?? ()

No symbol table info available.

#1  0x562fcc354632 in ?? ()

No symbol table info available.

#2  0x562fcc354974 in local_timer_run ()

No symbol table info available.

#3  0x562fcc3fb256 in ?? ()

No symbol table info available.

#4  0x562fcc3fb64c in tcp_receive_loop ()

No symbol table info available.

#5  0x562fcc2acf52 in tcp_init_children ()

No symbol table info available.

#6  0x562fcc1ad94a in main_loop ()

No symbol table info available.

#7  0x562fcc1b4a7b in main ()

No symbol table info available.

(gdb)

On Wed, Sep 18, 2019 at 10:35 AM Andrew Chen  wrote:

> backtrace output:
>
>
> (gdb) bt
>
> #0  0x562fcc3544c0 in ?? ()
>
> #1  0x562fcc354632 in ?? ()
>
> #2  0x562fcc354974 in local_timer_run ()
>
> #3  0x562fcc3fb256 in ?? ()
>
> #4  0x562fcc3fb64c in tcp_receive_loop ()
>
> #5  0x562fcc2acf52 in tcp_init_children ()
>
> #6  0x562fcc1ad94a in main_loop ()
>
> #7  0x562fcc1b4a7b in main ()
>
> (gdb)
>
>
>
>
> On Wed, Sep 18, 2019 at 10:01 AM Andrew Chen  wrote:
>
>> I'll look for the core.
>>
>> As part of our release process, I don't think we can release master
>> branch of Kamailio.
>>
>> On Wed, Sep 18, 2019 at 9:54 AM Daniel-Constantin Mierla <
>> mico...@gmail.com> wrote:
>>
>>> Hello,
>>>
>>> did you get core files? If yes, it would be good to see the gdb
>>> bracktraces.
>>>
>>> Have you used the pre-loaded library workaround?
>>>
>>> The code was not backported to branch 5.2 yet, I wanted to wait a bit
>>> and see if there are reports with good/bad results. If you want to use it,
>>> then you have to install nightly builds from master branch (development
>>> version, should be 5.3.0-pre1 at this moment).
>>>
>>> Cheers,
>>> Daniel
>>> On 18.09.19 15:26, Andrew Chen wrote:
>>>
>>> Hi Daniel,
>>> Which apt repository can we get this workaround?   Today I noticed our
>>> Kamailio 5.2.4 cored during one of our load test sessions:
>>>
>>> Wed Sep 18 09:31:14 2019] kamailio[26997]: segfault at 7f8501366000 ip
>>> 7f8501e58585 sp 7fffd5c84248 error 4 in
>>> libcrypto.so.1.1[7f8501dd4000+29b000]
>>>
>>> [Wed Sep 18 10:12:29 2019] kamailio[27110]: segfault at 7f1a8eea1000 ip
>>> 7f1a8f993585 sp 7ffddc8848c8 error 4 in
>>> libcrypto.so.1.1[7f1a8f90f000+29b000]
>>>
>>> [Wed Sep 18 10:12:43 2019] kamailio[11060]: segfault at 20 ip
>>> 7f0a85dac128 sp 7fff6847aad0 error 4 in
>>> libcrypto.so.1.1[7f0a85c4+29b000]
>>>
>>> [Wed Sep 18 10:12:44 2019] kamailio[11059]: segfault at f0 ip
>>> 7f0a85cc43ea sp 7fff6847a9e8 error 4 in
>>> libcrypto.so.1.1[7f0a85c4+29b000]
>>>
>>> [Wed Sep 18 10:13:02 2019] kamailio[11187]: segfault at 7f75e06c8000 ip
>>> 7f75e11ba585 sp 7ffe29b47c88 error 4 in
>>> libcrypto.so.1.1[7f75e1136000+29b000]
>>>
>>> [Wed Sep 18 10:13:17 2019] kamailio[11445]: segfault at 7f0f3743f000 ip
>>> 7f0f37f31585 sp 7ffde54daa38 error 4 in
>>> libcrypto.so.1.1[7f0f37ead000+29b000]
>>>
>>> [Wed Sep 18 10:13:36 2019] kamailio[11644]: segfault at 7f804309c000 ip
>>> 7f8043b8e585 sp 7ffe89fe8228 error 4 in
>>> libcrypto.so.1.1[7f8043b0a000+29b000]
>>>
>>> [Wed Sep 18 10:13:52 2019] kamailio[11799]: segfault at 7ff59c7e2000 ip
>>> 7ff59d2d4585 sp 7ffd69d76bb8 error 4 in
>>> libcrypto.so.1.1[7ff59d25+29b000]
>>>
>>> [Wed Sep 18 10:13:52 2019] kamailio[11792]: segfault at 7ff59c7e2000 ip
>>> 7ff59d2d4585 sp 7ffd69d76bb8 error 4 in
>>> libcrypto.so.1.1[7ff59d25+29b000]
>>>
>>> [Wed Sep 18 12:48:01 2019] kamailio[12066]: segfault at 7f22dca6d000 ip
>>> 7f22dd55f585 sp 7fffbc766ab8 error 4 in
>>> libcrypto.so.1.1[7f22dd4db000+29b000]
>>>
>>> [Wed Sep 18 12:48:14 2019] kamailio[16344]: segfault at 7f7cca42d000 ip
>>> 7f7ccaf1f585 sp 7ffe99f16108 error 4 in
>>> libcrypto.so.1.1[7f7ccae9b000+29b000]
>>>
>>> [Wed Sep 18 12:48:32 2019] kamailio[16708]: segfault at 7fb309141000 ip
>>> 7fb309c33585 sp 7ffd07a5f3c8 error 4 in
>>> libcrypto.so.1.1[7fb309baf000+29b000]
>>>
>>> [Wed Sep 18 12:48:49 2019] kamailio[16824]: segfault at f0 ip
>>> 7fc59095b3ea sp 7ffe58a490b8 error 4 in
>>> libcrypto.so.1.1[7fc5908d7000+29b000]
>>>
>>> [Wed Sep 18 12:49:04 2019] kamailio[16956]: segfault at 7fcc22e58000 ip
>>> 7fcc2394a585 sp 7fffa9c52258 error 4 in
>>> libcrypto.so.1.1[7fcc238c6000+29b000]
>>>
>>> [Wed Sep 18 12:49:04 2019] kamailio[16945]: segfault at f0 ip
>>> 7fcc2394a3ea sp 7fffa9c52128 error 4 in
>>> libcrypto.so.1.1[7fcc238c6000+29b000]
>>>
>>> [Wed Sep 18 12:49:16 2019] kamailio[17244]: segfault at 7f586ed2 ip
>>> 7f586f812585 sp 7ffeae1adcd8 error 4 in
>>> libcrypto.so.1.1[7f586f78e000+29b000]
>>>
>>> [Wed Sep 18 12:49:33 2019] kamailio[17431]: segfault at 8 ip
>>> 562fcc44c5d5 sp 7ffe825c9dd0 error 4 in
>>> kamailio[562fcc17c000+4a2000]
>>>
>>> [Wed Sep 18 12:49:33 2019] kamailio[17386]: segfault at 10 ip
>>> 

Re: [sr-dev] [SR-Users] Info: initialization of libssl 1.1.+ with PTHREAD_PROCESS_SHARED attribute for pthread mutex and rwlock

2019-09-19 Thread Andrew Chen
backtrace output:


(gdb) bt

#0  0x562fcc3544c0 in ?? ()

#1  0x562fcc354632 in ?? ()

#2  0x562fcc354974 in local_timer_run ()

#3  0x562fcc3fb256 in ?? ()

#4  0x562fcc3fb64c in tcp_receive_loop ()

#5  0x562fcc2acf52 in tcp_init_children ()

#6  0x562fcc1ad94a in main_loop ()

#7  0x562fcc1b4a7b in main ()

(gdb)




On Wed, Sep 18, 2019 at 10:01 AM Andrew Chen  wrote:

> I'll look for the core.
>
> As part of our release process, I don't think we can release master branch
> of Kamailio.
>
> On Wed, Sep 18, 2019 at 9:54 AM Daniel-Constantin Mierla <
> mico...@gmail.com> wrote:
>
>> Hello,
>>
>> did you get core files? If yes, it would be good to see the gdb
>> bracktraces.
>>
>> Have you used the pre-loaded library workaround?
>>
>> The code was not backported to branch 5.2 yet, I wanted to wait a bit and
>> see if there are reports with good/bad results. If you want to use it, then
>> you have to install nightly builds from master branch (development version,
>> should be 5.3.0-pre1 at this moment).
>>
>> Cheers,
>> Daniel
>> On 18.09.19 15:26, Andrew Chen wrote:
>>
>> Hi Daniel,
>> Which apt repository can we get this workaround?   Today I noticed our
>> Kamailio 5.2.4 cored during one of our load test sessions:
>>
>> Wed Sep 18 09:31:14 2019] kamailio[26997]: segfault at 7f8501366000 ip
>> 7f8501e58585 sp 7fffd5c84248 error 4 in
>> libcrypto.so.1.1[7f8501dd4000+29b000]
>>
>> [Wed Sep 18 10:12:29 2019] kamailio[27110]: segfault at 7f1a8eea1000 ip
>> 7f1a8f993585 sp 7ffddc8848c8 error 4 in
>> libcrypto.so.1.1[7f1a8f90f000+29b000]
>>
>> [Wed Sep 18 10:12:43 2019] kamailio[11060]: segfault at 20 ip
>> 7f0a85dac128 sp 7fff6847aad0 error 4 in
>> libcrypto.so.1.1[7f0a85c4+29b000]
>>
>> [Wed Sep 18 10:12:44 2019] kamailio[11059]: segfault at f0 ip
>> 7f0a85cc43ea sp 7fff6847a9e8 error 4 in
>> libcrypto.so.1.1[7f0a85c4+29b000]
>>
>> [Wed Sep 18 10:13:02 2019] kamailio[11187]: segfault at 7f75e06c8000 ip
>> 7f75e11ba585 sp 7ffe29b47c88 error 4 in
>> libcrypto.so.1.1[7f75e1136000+29b000]
>>
>> [Wed Sep 18 10:13:17 2019] kamailio[11445]: segfault at 7f0f3743f000 ip
>> 7f0f37f31585 sp 7ffde54daa38 error 4 in
>> libcrypto.so.1.1[7f0f37ead000+29b000]
>>
>> [Wed Sep 18 10:13:36 2019] kamailio[11644]: segfault at 7f804309c000 ip
>> 7f8043b8e585 sp 7ffe89fe8228 error 4 in
>> libcrypto.so.1.1[7f8043b0a000+29b000]
>>
>> [Wed Sep 18 10:13:52 2019] kamailio[11799]: segfault at 7ff59c7e2000 ip
>> 7ff59d2d4585 sp 7ffd69d76bb8 error 4 in
>> libcrypto.so.1.1[7ff59d25+29b000]
>>
>> [Wed Sep 18 10:13:52 2019] kamailio[11792]: segfault at 7ff59c7e2000 ip
>> 7ff59d2d4585 sp 7ffd69d76bb8 error 4 in
>> libcrypto.so.1.1[7ff59d25+29b000]
>>
>> [Wed Sep 18 12:48:01 2019] kamailio[12066]: segfault at 7f22dca6d000 ip
>> 7f22dd55f585 sp 7fffbc766ab8 error 4 in
>> libcrypto.so.1.1[7f22dd4db000+29b000]
>>
>> [Wed Sep 18 12:48:14 2019] kamailio[16344]: segfault at 7f7cca42d000 ip
>> 7f7ccaf1f585 sp 7ffe99f16108 error 4 in
>> libcrypto.so.1.1[7f7ccae9b000+29b000]
>>
>> [Wed Sep 18 12:48:32 2019] kamailio[16708]: segfault at 7fb309141000 ip
>> 7fb309c33585 sp 7ffd07a5f3c8 error 4 in
>> libcrypto.so.1.1[7fb309baf000+29b000]
>>
>> [Wed Sep 18 12:48:49 2019] kamailio[16824]: segfault at f0 ip
>> 7fc59095b3ea sp 7ffe58a490b8 error 4 in
>> libcrypto.so.1.1[7fc5908d7000+29b000]
>>
>> [Wed Sep 18 12:49:04 2019] kamailio[16956]: segfault at 7fcc22e58000 ip
>> 7fcc2394a585 sp 7fffa9c52258 error 4 in
>> libcrypto.so.1.1[7fcc238c6000+29b000]
>>
>> [Wed Sep 18 12:49:04 2019] kamailio[16945]: segfault at f0 ip
>> 7fcc2394a3ea sp 7fffa9c52128 error 4 in
>> libcrypto.so.1.1[7fcc238c6000+29b000]
>>
>> [Wed Sep 18 12:49:16 2019] kamailio[17244]: segfault at 7f586ed2 ip
>> 7f586f812585 sp 7ffeae1adcd8 error 4 in
>> libcrypto.so.1.1[7f586f78e000+29b000]
>>
>> [Wed Sep 18 12:49:33 2019] kamailio[17431]: segfault at 8 ip
>> 562fcc44c5d5 sp 7ffe825c9dd0 error 4 in
>> kamailio[562fcc17c000+4a2000]
>>
>> [Wed Sep 18 12:49:33 2019] kamailio[17386]: segfault at 10 ip
>> 7f96c3735c3e sp 7ffe825ca270 error 4 in
>> dialog.so[7f96c36d6000+be000]
>>
>> [Wed Sep 18 12:49:33 2019] kamailio[17423]: segfault at 0 ip
>> 562fcc3544c0 sp 7ffe825ca1f0 error 6 in
>> kamailio[562fcc17c000+4a2000]
>>
>> [Wed Sep 18 12:49:33 2019] kamailio[17378]: segfault at 0 ip
>> 7f96c5dd099f sp 7ffe825c98e0 error 4 in tm.so[7f96c5da5000+13f000]
>>
>> [Wed Sep 18 12:49:33 2019] kamailio[17417]: segfault at 0 ip
>> 562fcc3544c0 sp 7ffe825ca1f0 error 6 in
>> kamailio[562fcc17c000+4a2000]
>>
>> [Wed Sep 18 12:49:33 2019] kamailio[17416]: segfault at 0 ip
>> 562fcc3544c0 sp 7ffe825ca1f0 error 6 in
>> kamailio[562fcc17c000+4a2000]
>>
>> [Wed Sep 18 12:49:33 2019] kamailio[17380]: segfault at 0 ip
>> 7f96c5dd099f sp 7ffe825c98e0 error 4 in tm.so[7f96c5da5000+13f000]
>>

Re: [sr-dev] [SR-Users] Info: initialization of libssl 1.1.+ with PTHREAD_PROCESS_SHARED attribute for pthread mutex and rwlock

2019-09-19 Thread Andrew Chen
I'll look for the core.

As part of our release process, I don't think we can release master branch
of Kamailio.

On Wed, Sep 18, 2019 at 9:54 AM Daniel-Constantin Mierla 
wrote:

> Hello,
>
> did you get core files? If yes, it would be good to see the gdb
> bracktraces.
>
> Have you used the pre-loaded library workaround?
>
> The code was not backported to branch 5.2 yet, I wanted to wait a bit and
> see if there are reports with good/bad results. If you want to use it, then
> you have to install nightly builds from master branch (development version,
> should be 5.3.0-pre1 at this moment).
>
> Cheers,
> Daniel
> On 18.09.19 15:26, Andrew Chen wrote:
>
> Hi Daniel,
> Which apt repository can we get this workaround?   Today I noticed our
> Kamailio 5.2.4 cored during one of our load test sessions:
>
> Wed Sep 18 09:31:14 2019] kamailio[26997]: segfault at 7f8501366000 ip
> 7f8501e58585 sp 7fffd5c84248 error 4 in
> libcrypto.so.1.1[7f8501dd4000+29b000]
>
> [Wed Sep 18 10:12:29 2019] kamailio[27110]: segfault at 7f1a8eea1000 ip
> 7f1a8f993585 sp 7ffddc8848c8 error 4 in
> libcrypto.so.1.1[7f1a8f90f000+29b000]
>
> [Wed Sep 18 10:12:43 2019] kamailio[11060]: segfault at 20 ip
> 7f0a85dac128 sp 7fff6847aad0 error 4 in
> libcrypto.so.1.1[7f0a85c4+29b000]
>
> [Wed Sep 18 10:12:44 2019] kamailio[11059]: segfault at f0 ip
> 7f0a85cc43ea sp 7fff6847a9e8 error 4 in
> libcrypto.so.1.1[7f0a85c4+29b000]
>
> [Wed Sep 18 10:13:02 2019] kamailio[11187]: segfault at 7f75e06c8000 ip
> 7f75e11ba585 sp 7ffe29b47c88 error 4 in
> libcrypto.so.1.1[7f75e1136000+29b000]
>
> [Wed Sep 18 10:13:17 2019] kamailio[11445]: segfault at 7f0f3743f000 ip
> 7f0f37f31585 sp 7ffde54daa38 error 4 in
> libcrypto.so.1.1[7f0f37ead000+29b000]
>
> [Wed Sep 18 10:13:36 2019] kamailio[11644]: segfault at 7f804309c000 ip
> 7f8043b8e585 sp 7ffe89fe8228 error 4 in
> libcrypto.so.1.1[7f8043b0a000+29b000]
>
> [Wed Sep 18 10:13:52 2019] kamailio[11799]: segfault at 7ff59c7e2000 ip
> 7ff59d2d4585 sp 7ffd69d76bb8 error 4 in
> libcrypto.so.1.1[7ff59d25+29b000]
>
> [Wed Sep 18 10:13:52 2019] kamailio[11792]: segfault at 7ff59c7e2000 ip
> 7ff59d2d4585 sp 7ffd69d76bb8 error 4 in
> libcrypto.so.1.1[7ff59d25+29b000]
>
> [Wed Sep 18 12:48:01 2019] kamailio[12066]: segfault at 7f22dca6d000 ip
> 7f22dd55f585 sp 7fffbc766ab8 error 4 in
> libcrypto.so.1.1[7f22dd4db000+29b000]
>
> [Wed Sep 18 12:48:14 2019] kamailio[16344]: segfault at 7f7cca42d000 ip
> 7f7ccaf1f585 sp 7ffe99f16108 error 4 in
> libcrypto.so.1.1[7f7ccae9b000+29b000]
>
> [Wed Sep 18 12:48:32 2019] kamailio[16708]: segfault at 7fb309141000 ip
> 7fb309c33585 sp 7ffd07a5f3c8 error 4 in
> libcrypto.so.1.1[7fb309baf000+29b000]
>
> [Wed Sep 18 12:48:49 2019] kamailio[16824]: segfault at f0 ip
> 7fc59095b3ea sp 7ffe58a490b8 error 4 in
> libcrypto.so.1.1[7fc5908d7000+29b000]
>
> [Wed Sep 18 12:49:04 2019] kamailio[16956]: segfault at 7fcc22e58000 ip
> 7fcc2394a585 sp 7fffa9c52258 error 4 in
> libcrypto.so.1.1[7fcc238c6000+29b000]
>
> [Wed Sep 18 12:49:04 2019] kamailio[16945]: segfault at f0 ip
> 7fcc2394a3ea sp 7fffa9c52128 error 4 in
> libcrypto.so.1.1[7fcc238c6000+29b000]
>
> [Wed Sep 18 12:49:16 2019] kamailio[17244]: segfault at 7f586ed2 ip
> 7f586f812585 sp 7ffeae1adcd8 error 4 in
> libcrypto.so.1.1[7f586f78e000+29b000]
>
> [Wed Sep 18 12:49:33 2019] kamailio[17431]: segfault at 8 ip
> 562fcc44c5d5 sp 7ffe825c9dd0 error 4 in
> kamailio[562fcc17c000+4a2000]
>
> [Wed Sep 18 12:49:33 2019] kamailio[17386]: segfault at 10 ip
> 7f96c3735c3e sp 7ffe825ca270 error 4 in
> dialog.so[7f96c36d6000+be000]
>
> [Wed Sep 18 12:49:33 2019] kamailio[17423]: segfault at 0 ip
> 562fcc3544c0 sp 7ffe825ca1f0 error 6 in
> kamailio[562fcc17c000+4a2000]
>
> [Wed Sep 18 12:49:33 2019] kamailio[17378]: segfault at 0 ip
> 7f96c5dd099f sp 7ffe825c98e0 error 4 in tm.so[7f96c5da5000+13f000]
>
> [Wed Sep 18 12:49:33 2019] kamailio[17417]: segfault at 0 ip
> 562fcc3544c0 sp 7ffe825ca1f0 error 6 in
> kamailio[562fcc17c000+4a2000]
>
> [Wed Sep 18 12:49:33 2019] kamailio[17416]: segfault at 0 ip
> 562fcc3544c0 sp 7ffe825ca1f0 error 6 in
> kamailio[562fcc17c000+4a2000]
>
> [Wed Sep 18 12:49:33 2019] kamailio[17380]: segfault at 0 ip
> 7f96c5dd099f sp 7ffe825c98e0 error 4 in tm.so[7f96c5da5000+13f000]
>
> [Wed Sep 18 12:49:33 2019] kamailio[17381]: segfault at 0 ip
> 7f96c5dd099f sp 7ffe825c98e0 error 4 in tm.so[7f96c5da5000+13f000]
>
> [Wed Sep 18 12:49:34 2019] kamailio[17387]: segfault at 8 ip
> 562fcc25d1f3 sp 7ffe825ca370 error 6 in
> kamailio[562fcc17c000+4a2000]
>
>
> and I was wondering if this core is related.
>
> Thanks
>
>
> On Fri, Sep 13, 2019 at 5:18 PM Alex Balashov 
> wrote:
>
>> Hi Daniel,
>>
>> Thanks a lot for this work; it's definitely important that Kamailio
>> build against OpenSSL v1.1, and I'll be happy to 

Re: [sr-dev] [SR-Users] Info: initialization of libssl 1.1.+ with PTHREAD_PROCESS_SHARED attribute for pthread mutex and rwlock

2019-09-19 Thread Andrew Chen
Hi Daniel,
Which apt repository can we get this workaround?   Today I noticed our
Kamailio 5.2.4 cored during one of our load test sessions:

Wed Sep 18 09:31:14 2019] kamailio[26997]: segfault at 7f8501366000 ip
7f8501e58585 sp 7fffd5c84248 error 4 in
libcrypto.so.1.1[7f8501dd4000+29b000]

[Wed Sep 18 10:12:29 2019] kamailio[27110]: segfault at 7f1a8eea1000 ip
7f1a8f993585 sp 7ffddc8848c8 error 4 in
libcrypto.so.1.1[7f1a8f90f000+29b000]

[Wed Sep 18 10:12:43 2019] kamailio[11060]: segfault at 20 ip
7f0a85dac128 sp 7fff6847aad0 error 4 in
libcrypto.so.1.1[7f0a85c4+29b000]

[Wed Sep 18 10:12:44 2019] kamailio[11059]: segfault at f0 ip
7f0a85cc43ea sp 7fff6847a9e8 error 4 in
libcrypto.so.1.1[7f0a85c4+29b000]

[Wed Sep 18 10:13:02 2019] kamailio[11187]: segfault at 7f75e06c8000 ip
7f75e11ba585 sp 7ffe29b47c88 error 4 in
libcrypto.so.1.1[7f75e1136000+29b000]

[Wed Sep 18 10:13:17 2019] kamailio[11445]: segfault at 7f0f3743f000 ip
7f0f37f31585 sp 7ffde54daa38 error 4 in
libcrypto.so.1.1[7f0f37ead000+29b000]

[Wed Sep 18 10:13:36 2019] kamailio[11644]: segfault at 7f804309c000 ip
7f8043b8e585 sp 7ffe89fe8228 error 4 in
libcrypto.so.1.1[7f8043b0a000+29b000]

[Wed Sep 18 10:13:52 2019] kamailio[11799]: segfault at 7ff59c7e2000 ip
7ff59d2d4585 sp 7ffd69d76bb8 error 4 in
libcrypto.so.1.1[7ff59d25+29b000]

[Wed Sep 18 10:13:52 2019] kamailio[11792]: segfault at 7ff59c7e2000 ip
7ff59d2d4585 sp 7ffd69d76bb8 error 4 in
libcrypto.so.1.1[7ff59d25+29b000]

[Wed Sep 18 12:48:01 2019] kamailio[12066]: segfault at 7f22dca6d000 ip
7f22dd55f585 sp 7fffbc766ab8 error 4 in
libcrypto.so.1.1[7f22dd4db000+29b000]

[Wed Sep 18 12:48:14 2019] kamailio[16344]: segfault at 7f7cca42d000 ip
7f7ccaf1f585 sp 7ffe99f16108 error 4 in
libcrypto.so.1.1[7f7ccae9b000+29b000]

[Wed Sep 18 12:48:32 2019] kamailio[16708]: segfault at 7fb309141000 ip
7fb309c33585 sp 7ffd07a5f3c8 error 4 in
libcrypto.so.1.1[7fb309baf000+29b000]

[Wed Sep 18 12:48:49 2019] kamailio[16824]: segfault at f0 ip
7fc59095b3ea sp 7ffe58a490b8 error 4 in
libcrypto.so.1.1[7fc5908d7000+29b000]

[Wed Sep 18 12:49:04 2019] kamailio[16956]: segfault at 7fcc22e58000 ip
7fcc2394a585 sp 7fffa9c52258 error 4 in
libcrypto.so.1.1[7fcc238c6000+29b000]

[Wed Sep 18 12:49:04 2019] kamailio[16945]: segfault at f0 ip
7fcc2394a3ea sp 7fffa9c52128 error 4 in
libcrypto.so.1.1[7fcc238c6000+29b000]

[Wed Sep 18 12:49:16 2019] kamailio[17244]: segfault at 7f586ed2 ip
7f586f812585 sp 7ffeae1adcd8 error 4 in
libcrypto.so.1.1[7f586f78e000+29b000]

[Wed Sep 18 12:49:33 2019] kamailio[17431]: segfault at 8 ip
562fcc44c5d5 sp 7ffe825c9dd0 error 4 in
kamailio[562fcc17c000+4a2000]

[Wed Sep 18 12:49:33 2019] kamailio[17386]: segfault at 10 ip
7f96c3735c3e sp 7ffe825ca270 error 4 in
dialog.so[7f96c36d6000+be000]

[Wed Sep 18 12:49:33 2019] kamailio[17423]: segfault at 0 ip
562fcc3544c0 sp 7ffe825ca1f0 error 6 in
kamailio[562fcc17c000+4a2000]

[Wed Sep 18 12:49:33 2019] kamailio[17378]: segfault at 0 ip
7f96c5dd099f sp 7ffe825c98e0 error 4 in tm.so[7f96c5da5000+13f000]

[Wed Sep 18 12:49:33 2019] kamailio[17417]: segfault at 0 ip
562fcc3544c0 sp 7ffe825ca1f0 error 6 in
kamailio[562fcc17c000+4a2000]

[Wed Sep 18 12:49:33 2019] kamailio[17416]: segfault at 0 ip
562fcc3544c0 sp 7ffe825ca1f0 error 6 in
kamailio[562fcc17c000+4a2000]

[Wed Sep 18 12:49:33 2019] kamailio[17380]: segfault at 0 ip
7f96c5dd099f sp 7ffe825c98e0 error 4 in tm.so[7f96c5da5000+13f000]

[Wed Sep 18 12:49:33 2019] kamailio[17381]: segfault at 0 ip
7f96c5dd099f sp 7ffe825c98e0 error 4 in tm.so[7f96c5da5000+13f000]

[Wed Sep 18 12:49:34 2019] kamailio[17387]: segfault at 8 ip
562fcc25d1f3 sp 7ffe825ca370 error 6 in
kamailio[562fcc17c000+4a2000]


and I was wondering if this core is related.

Thanks


On Fri, Sep 13, 2019 at 5:18 PM Alex Balashov 
wrote:

> Hi Daniel,
>
> Thanks a lot for this work; it's definitely important that Kamailio
> build against OpenSSL v1.1, and I'll be happy to contribute some testing
> in a live environment in the coming weeks. Much appreciated.
>
> Have a good weekend,
>
> -- Alex
>
> On Fri, Sep 13, 2019 at 01:34:12PM +0200, Daniel-Constantin Mierla wrote:
>
> > Hello,
> > after couple of months waiting for feedback about the workaround with the
> > preloaded shared library to set the PTHREAD_PROCESS_SHARED attribute for
> > pthread mutex/rwlock in order to avoid deadlocks and as it seems to be
> the
> > solution, I just pushed a few commits to move that code in the core of
> > kamailio.
> >
> > It this way the initialization with the PTHREAD_PROCESS_SHARED attribute
> is
> > done by default when libssl v1.1 is detected at compile time, without the
> > need of using the approach with a preloaded library.
> >
> > The shared library is still kept in the tls module:
> >   *
> >
> 

Re: [sr-dev] [SR-Users] Info: initialization of libssl 1.1.+ with PTHREAD_PROCESS_SHARED attribute for pthread mutex and rwlock

2019-09-18 Thread Henning Westerholt
Hi Andrew,

the 5.2.4 does not contain the 5.3-pre1 workaround yet.

So if you test the workaround you need to install the lastest 5.3 from the git 
master debian repository.

But nevertheless it would be good to look at the backtrace, while you have it.

Cheers,

Henning

Am 18.09.19 um 22:10 schrieb Joel Serrano:
Hi Andrew,

Download from here: http://deb.kamailio.org/kamailio52/pool/main/k/kamailio/

You have kamailio-dbg v5.2.4 (latest 5.2) for all distros...

Example for amd64+stretch: 
http://deb.kamailio.org/kamailio52/pool/main/k/kamailio/kamailio-dbg_5.2.4%2Bstretch_amd64.deb

Cheers,
Joel.





On Wed, Sep 18, 2019 at 12:16 PM Andrew Chen 
mailto:ac...@fuze.com>> wrote:
Hi Henning,

I'm running 5.2.4.  Will this deb package work?

On Wed, Sep 18, 2019 at 2:39 PM Andrew Chen 
mailto:ac...@fuze.com>> wrote:
Thanks Henning

On Wed, Sep 18, 2019 at 2:13 PM Henning Westerholt 
mailto:h...@skalatan.de>> wrote:

Hello Andrew,

strange - it should be there, as it is available on 
deb.kamailio.org.

Here e.g. the one for 64bit stretch:

https://deb.kamailio.org/kamailiodev-nightly/pool/main/k/kamailio/kamailio-dbg_5.3.0~pre1%2B0~20190918005413.1490%2Bstretch_amd64.deb

Cheers,

Henning

Am 18.09.19 um 18:52 schrieb Andrew Chen:
I don't see one for debug:


root@ashintgkama51:~ # apt-cache search kamailio

resource-agents - Cluster Resource Agents

kamailio - very fast, dynamic and configurable SIP server

kamailio-autheph-modules - authentication using ephemeral credentials for the 
Kamailio SIP server

kamailio-berkeley-bin - Berkeley database module for Kamailio - helper program

kamailio-berkeley-modules - Berkeley database module for the Kamailio SIP server

kamailio-carrierroute-modules - carrierroute module for the Kamailio SIP server

kamailio-cnxcc-modules - cnxcc modules for the Kamailio SIP server

kamailio-cpl-modules - CPL module (CPL interpreter engine) for the Kamailio SIP 
server

kamailio-erlang-modules - Erlang modules for the Kamailio SIP server

kamailio-geoip-modules - geoip module for the Kamailio SIP Server

kamailio-geoip2-modules - geoip2 module for the Kamailio SIP Server

kamailio-ims-modules - IMS module for the Kamailio SIP server

kamailio-json-modules - Json parser and Json-RPC modules for the Kamailio SIP 
server

On Wed, Sep 18, 2019 at 11:26 AM Daniel-Constantin Mierla 
mailto:mico...@gmail.com>> wrote:

You have to install the debug symbols package, otherwise the backtrace doesn't 
show any useful information. It just require to install that package and then 
get again the backtraces. The package name should be kamailio-dbg.

Cheers,
Daniel

On 18.09.19 16:37, Andrew Chen wrote:
Sorry..forgot bt full output


(gdb) bt full

#0  0x562fcc3544c0 in ?? ()

No symbol table info available.

#1  0x562fcc354632 in ?? ()

No symbol table info available.

#2  0x562fcc354974 in local_timer_run ()

No symbol table info available.

#3  0x562fcc3fb256 in ?? ()

No symbol table info available.

#4  0x562fcc3fb64c in tcp_receive_loop ()

No symbol table info available.

#5  0x562fcc2acf52 in tcp_init_children ()

No symbol table info available.

#6  0x562fcc1ad94a in main_loop ()

No symbol table info available.

#7  0x562fcc1b4a7b in main ()

No symbol table info available.

(gdb)

On Wed, Sep 18, 2019 at 10:35 AM Andrew Chen 
mailto:ac...@fuze.com>> wrote:
backtrace output:


(gdb) bt

#0  0x562fcc3544c0 in ?? ()

#1  0x562fcc354632 in ?? ()

#2  0x562fcc354974 in local_timer_run ()

#3  0x562fcc3fb256 in ?? ()

#4  0x562fcc3fb64c in tcp_receive_loop ()

#5  0x562fcc2acf52 in tcp_init_children ()

#6  0x562fcc1ad94a in main_loop ()

#7  0x562fcc1b4a7b in main ()

(gdb)



On Wed, Sep 18, 2019 at 10:01 AM Andrew Chen 
mailto:ac...@fuze.com>> wrote:
I'll look for the core.

As part of our release process, I don't think we can release master branch of 
Kamailio.

On Wed, Sep 18, 2019 at 9:54 AM Daniel-Constantin Mierla 
mailto:mico...@gmail.com>> wrote:

Hello,

did you get core files? If yes, it would be good to see the gdb bracktraces.

Have you used the pre-loaded library workaround?

The code was not backported to branch 5.2 yet, I wanted to wait a bit and see 
if there are reports with good/bad results. If you want to use it, then you 
have to install nightly builds from master branch (development version, should 
be 5.3.0-pre1 at this moment).

Cheers,
Daniel

On 18.09.19 15:26, Andrew Chen wrote:
Hi Daniel,
Which apt repository can we get this workaround?   Today I noticed our Kamailio 
5.2.4 cored during one of our load test sessions:

Wed Sep 18 09:31:14 2019] kamailio[26997]: segfault at 7f8501366000 ip 
7f8501e58585 sp 7fffd5c84248 error 4 in 
libcrypto.so.1.1[7f8501dd4000+29b000]

[Wed Sep 18 10:12:29 2019] kamailio[27110]: segfault at 7f1a8eea1000 ip 
7f1a8f993585 sp 7ffddc8848c8 error 4 in 
libcrypto.so.1.1[7f1a8f90f000+29b000]

[Wed Sep 18 10:12:43 2019] 

Re: [sr-dev] [SR-Users] Info: initialization of libssl 1.1.+ with PTHREAD_PROCESS_SHARED attribute for pthread mutex and rwlock

2019-09-18 Thread Henning Westerholt
Hello Andrew,

strange - it should be there, as it is available on deb.kamailio.org.

Here e.g. the one for 64bit stretch:

https://deb.kamailio.org/kamailiodev-nightly/pool/main/k/kamailio/kamailio-dbg_5.3.0~pre1%2B0~20190918005413.1490%2Bstretch_amd64.deb

Cheers,

Henning

Am 18.09.19 um 18:52 schrieb Andrew Chen:
I don't see one for debug:


root@ashintgkama51:~ # apt-cache search kamailio

resource-agents - Cluster Resource Agents

kamailio - very fast, dynamic and configurable SIP server

kamailio-autheph-modules - authentication using ephemeral credentials for the 
Kamailio SIP server

kamailio-berkeley-bin - Berkeley database module for Kamailio - helper program

kamailio-berkeley-modules - Berkeley database module for the Kamailio SIP server

kamailio-carrierroute-modules - carrierroute module for the Kamailio SIP server

kamailio-cnxcc-modules - cnxcc modules for the Kamailio SIP server

kamailio-cpl-modules - CPL module (CPL interpreter engine) for the Kamailio SIP 
server

kamailio-erlang-modules - Erlang modules for the Kamailio SIP server

kamailio-geoip-modules - geoip module for the Kamailio SIP Server

kamailio-geoip2-modules - geoip2 module for the Kamailio SIP Server

kamailio-ims-modules - IMS module for the Kamailio SIP server

kamailio-json-modules - Json parser and Json-RPC modules for the Kamailio SIP 
server

On Wed, Sep 18, 2019 at 11:26 AM Daniel-Constantin Mierla 
mailto:mico...@gmail.com>> wrote:

You have to install the debug symbols package, otherwise the backtrace doesn't 
show any useful information. It just require to install that package and then 
get again the backtraces. The package name should be kamailio-dbg.

Cheers,
Daniel

On 18.09.19 16:37, Andrew Chen wrote:
Sorry..forgot bt full output


(gdb) bt full

#0  0x562fcc3544c0 in ?? ()

No symbol table info available.

#1  0x562fcc354632 in ?? ()

No symbol table info available.

#2  0x562fcc354974 in local_timer_run ()

No symbol table info available.

#3  0x562fcc3fb256 in ?? ()

No symbol table info available.

#4  0x562fcc3fb64c in tcp_receive_loop ()

No symbol table info available.

#5  0x562fcc2acf52 in tcp_init_children ()

No symbol table info available.

#6  0x562fcc1ad94a in main_loop ()

No symbol table info available.

#7  0x562fcc1b4a7b in main ()

No symbol table info available.

(gdb)

On Wed, Sep 18, 2019 at 10:35 AM Andrew Chen 
mailto:ac...@fuze.com>> wrote:
backtrace output:


(gdb) bt

#0  0x562fcc3544c0 in ?? ()

#1  0x562fcc354632 in ?? ()

#2  0x562fcc354974 in local_timer_run ()

#3  0x562fcc3fb256 in ?? ()

#4  0x562fcc3fb64c in tcp_receive_loop ()

#5  0x562fcc2acf52 in tcp_init_children ()

#6  0x562fcc1ad94a in main_loop ()

#7  0x562fcc1b4a7b in main ()

(gdb)



On Wed, Sep 18, 2019 at 10:01 AM Andrew Chen 
mailto:ac...@fuze.com>> wrote:
I'll look for the core.

As part of our release process, I don't think we can release master branch of 
Kamailio.

On Wed, Sep 18, 2019 at 9:54 AM Daniel-Constantin Mierla 
mailto:mico...@gmail.com>> wrote:

Hello,

did you get core files? If yes, it would be good to see the gdb bracktraces.

Have you used the pre-loaded library workaround?

The code was not backported to branch 5.2 yet, I wanted to wait a bit and see 
if there are reports with good/bad results. If you want to use it, then you 
have to install nightly builds from master branch (development version, should 
be 5.3.0-pre1 at this moment).

Cheers,
Daniel

On 18.09.19 15:26, Andrew Chen wrote:
Hi Daniel,
Which apt repository can we get this workaround?   Today I noticed our Kamailio 
5.2.4 cored during one of our load test sessions:

Wed Sep 18 09:31:14 2019] kamailio[26997]: segfault at 7f8501366000 ip 
7f8501e58585 sp 7fffd5c84248 error 4 in 
libcrypto.so.1.1[7f8501dd4000+29b000]

[Wed Sep 18 10:12:29 2019] kamailio[27110]: segfault at 7f1a8eea1000 ip 
7f1a8f993585 sp 7ffddc8848c8 error 4 in 
libcrypto.so.1.1[7f1a8f90f000+29b000]

[Wed Sep 18 10:12:43 2019] kamailio[11060]: segfault at 20 ip 7f0a85dac128 
sp 7fff6847aad0 error 4 in libcrypto.so.1.1[7f0a85c4+29b000]

[Wed Sep 18 10:12:44 2019] kamailio[11059]: segfault at f0 ip 7f0a85cc43ea 
sp 7fff6847a9e8 error 4 in libcrypto.so.1.1[7f0a85c4+29b000]

[Wed Sep 18 10:13:02 2019] kamailio[11187]: segfault at 7f75e06c8000 ip 
7f75e11ba585 sp 7ffe29b47c88 error 4 in 
libcrypto.so.1.1[7f75e1136000+29b000]

[Wed Sep 18 10:13:17 2019] kamailio[11445]: segfault at 7f0f3743f000 ip 
7f0f37f31585 sp 7ffde54daa38 error 4 in 
libcrypto.so.1.1[7f0f37ead000+29b000]

[Wed Sep 18 10:13:36 2019] kamailio[11644]: segfault at 7f804309c000 ip 
7f8043b8e585 sp 7ffe89fe8228 error 4 in 
libcrypto.so.1.1[7f8043b0a000+29b000]

[Wed Sep 18 10:13:52 2019] kamailio[11799]: segfault at 7ff59c7e2000 ip 
7ff59d2d4585 sp 7ffd69d76bb8 error 4 in 
libcrypto.so.1.1[7ff59d25+29b000]

[Wed Sep 18 10:13:52 2019] kamailio[11792]: segfault 

Re: [sr-dev] [SR-Users] Info: initialization of libssl 1.1.+ with PTHREAD_PROCESS_SHARED attribute for pthread mutex and rwlock

2019-09-18 Thread Daniel-Constantin Mierla
You have to install the debug symbols package, otherwise the backtrace
doesn't show any useful information. It just require to install that
package and then get again the backtraces. The package name should be
kamailio-dbg.

Cheers,
Daniel

On 18.09.19 16:37, Andrew Chen wrote:
> Sorry..forgot bt full output
>
> (gdb) bt full
>
> #0  0x562fcc3544c0 in ?? ()
>
> No symbol table info available.
>
> #1  0x562fcc354632 in ?? ()
>
> No symbol table info available.
>
> #2  0x562fcc354974 in local_timer_run ()
>
> No symbol table info available.
>
> #3  0x562fcc3fb256 in ?? ()
>
> No symbol table info available.
>
> #4  0x562fcc3fb64c in tcp_receive_loop ()
>
> No symbol table info available.
>
> #5  0x562fcc2acf52 in tcp_init_children ()
>
> No symbol table info available.
>
> #6  0x562fcc1ad94a in main_loop ()
>
> No symbol table info available.
>
> #7  0x562fcc1b4a7b in main ()
>
> No symbol table info available.
>
> (gdb) 
>
>
> On Wed, Sep 18, 2019 at 10:35 AM Andrew Chen  > wrote:
>
> backtrace output:
>
>
> (gdb) bt
>
> #0  0x562fcc3544c0 in ?? ()
>
> #1  0x562fcc354632 in ?? ()
>
> #2  0x562fcc354974 in local_timer_run ()
>
> #3  0x562fcc3fb256 in ?? ()
>
> #4  0x562fcc3fb64c in tcp_receive_loop ()
>
> #5  0x562fcc2acf52 in tcp_init_children ()
>
> #6  0x562fcc1ad94a in main_loop ()
>
> #7  0x562fcc1b4a7b in main ()
>
> (gdb) 
>
>
>
>
> On Wed, Sep 18, 2019 at 10:01 AM Andrew Chen  > wrote:
>
> I'll look for the core.
>
> As part of our release process, I don't think we can
> release master branch of Kamailio.
>
> On Wed, Sep 18, 2019 at 9:54 AM Daniel-Constantin Mierla
> mailto:mico...@gmail.com>> wrote:
>
> Hello,
>
> did you get core files? If yes, it would be good to see
> the gdb bracktraces.
>
> Have you used the pre-loaded library workaround?
>
> The code was not backported to branch 5.2 yet, I wanted to
> wait a bit and see if there are reports with good/bad
> results. If you want to use it, then you have to install
> nightly builds from master branch (development version,
> should be 5.3.0-pre1 at this moment).
>
> Cheers,
> Daniel
>
> On 18.09.19 15:26, Andrew Chen wrote:
>> Hi Daniel,
>> Which apt repository can we get this workaround?   Today
>> I noticed our Kamailio 5.2.4 cored during one of our load
>> test sessions:
>>
>> Wed Sep 18 09:31:14 2019] kamailio[26997]: segfault at
>> 7f8501366000 ip 7f8501e58585 sp 7fffd5c84248
>> error 4 in libcrypto.so.1.1[7f8501dd4000+29b000]
>>
>> [Wed Sep 18 10:12:29 2019] kamailio[27110]: segfault at
>> 7f1a8eea1000 ip 7f1a8f993585 sp 7ffddc8848c8
>> error 4 in libcrypto.so.1.1[7f1a8f90f000+29b000]
>>
>> [Wed Sep 18 10:12:43 2019] kamailio[11060]: segfault at
>> 20 ip 7f0a85dac128 sp 7fff6847aad0 error 4 in
>> libcrypto.so.1.1[7f0a85c4+29b000]
>>
>> [Wed Sep 18 10:12:44 2019] kamailio[11059]: segfault at
>> f0 ip 7f0a85cc43ea sp 7fff6847a9e8 error 4 in
>> libcrypto.so.1.1[7f0a85c4+29b000]
>>
>> [Wed Sep 18 10:13:02 2019] kamailio[11187]: segfault at
>> 7f75e06c8000 ip 7f75e11ba585 sp 7ffe29b47c88
>> error 4 in libcrypto.so.1.1[7f75e1136000+29b000]
>>
>> [Wed Sep 18 10:13:17 2019] kamailio[11445]: segfault at
>> 7f0f3743f000 ip 7f0f37f31585 sp 7ffde54daa38
>> error 4 in libcrypto.so.1.1[7f0f37ead000+29b000]
>>
>> [Wed Sep 18 10:13:36 2019] kamailio[11644]: segfault at
>> 7f804309c000 ip 7f8043b8e585 sp 7ffe89fe8228
>> error 4 in libcrypto.so.1.1[7f8043b0a000+29b000]
>>
>> [Wed Sep 18 10:13:52 2019] kamailio[11799]: segfault at
>> 7ff59c7e2000 ip 7ff59d2d4585 sp 7ffd69d76bb8
>> error 4 in libcrypto.so.1.1[7ff59d25+29b000]
>>
>> [Wed Sep 18 10:13:52 2019] kamailio[11792]: segfault at
>> 7ff59c7e2000 ip 7ff59d2d4585 sp 7ffd69d76bb8
>> error 4 in libcrypto.so.1.1[7ff59d25+29b000]
>>
>> [Wed Sep 18 12:48:01 2019] kamailio[12066]: segfault at
>> 7f22dca6d000 ip 7f22dd55f585 sp 7fffbc766ab8
>> error 4 in libcrypto.so.1.1[7f22dd4db000+29b000]
>>
>> [Wed Sep 18 12:48:14 2019] kamailio[16344]: segfault at
>> 7f7cca42d000 ip 7f7ccaf1f585 sp 7ffe99f16108
>> error 4 in libcrypto.so.1.1[7f7ccae9b000+29b000]
>>
>> [Wed Sep 18 12:48:32 2019] kamailio[16708]: segfault at
>>   

Re: [sr-dev] [SR-Users] Info: initialization of libssl 1.1.+ with PTHREAD_PROCESS_SHARED attribute for pthread mutex and rwlock

2019-09-18 Thread Daniel-Constantin Mierla
I understood it happened on a load test session, which typically is not
done in production, but some test/staging system.

Cheers,
Daniel

On 18.09.19 16:01, Andrew Chen wrote:
> I'll look for the core.
>
> As part of our release process, I don't think we can release master
> branch of Kamailio.
>
> On Wed, Sep 18, 2019 at 9:54 AM Daniel-Constantin Mierla
> mailto:mico...@gmail.com>> wrote:
>
> Hello,
>
> did you get core files? If yes, it would be good to see the gdb
> bracktraces.
>
> Have you used the pre-loaded library workaround?
>
> The code was not backported to branch 5.2 yet, I wanted to wait a
> bit and see if there are reports with good/bad results. If you
> want to use it, then you have to install nightly builds from
> master branch (development version, should be 5.3.0-pre1 at this
> moment).
>
> Cheers,
> Daniel
>
> On 18.09.19 15:26, Andrew Chen wrote:
>> Hi Daniel,
>> Which apt repository can we get this workaround?   Today I
>> noticed our Kamailio 5.2.4 cored during one of our load test
>> sessions:
>>
>> Wed Sep 18 09:31:14 2019] kamailio[26997]: segfault at
>> 7f8501366000 ip 7f8501e58585 sp 7fffd5c84248 error 4 in
>> libcrypto.so.1.1[7f8501dd4000+29b000]
>>
>> [Wed Sep 18 10:12:29 2019] kamailio[27110]: segfault at
>> 7f1a8eea1000 ip 7f1a8f993585 sp 7ffddc8848c8 error 4 in
>> libcrypto.so.1.1[7f1a8f90f000+29b000]
>>
>> [Wed Sep 18 10:12:43 2019] kamailio[11060]: segfault at 20 ip
>> 7f0a85dac128 sp 7fff6847aad0 error 4 in
>> libcrypto.so.1.1[7f0a85c4+29b000]
>>
>> [Wed Sep 18 10:12:44 2019] kamailio[11059]: segfault at f0 ip
>> 7f0a85cc43ea sp 7fff6847a9e8 error 4 in
>> libcrypto.so.1.1[7f0a85c4+29b000]
>>
>> [Wed Sep 18 10:13:02 2019] kamailio[11187]: segfault at
>> 7f75e06c8000 ip 7f75e11ba585 sp 7ffe29b47c88 error 4 in
>> libcrypto.so.1.1[7f75e1136000+29b000]
>>
>> [Wed Sep 18 10:13:17 2019] kamailio[11445]: segfault at
>> 7f0f3743f000 ip 7f0f37f31585 sp 7ffde54daa38 error 4 in
>> libcrypto.so.1.1[7f0f37ead000+29b000]
>>
>> [Wed Sep 18 10:13:36 2019] kamailio[11644]: segfault at
>> 7f804309c000 ip 7f8043b8e585 sp 7ffe89fe8228 error 4 in
>> libcrypto.so.1.1[7f8043b0a000+29b000]
>>
>> [Wed Sep 18 10:13:52 2019] kamailio[11799]: segfault at
>> 7ff59c7e2000 ip 7ff59d2d4585 sp 7ffd69d76bb8 error 4 in
>> libcrypto.so.1.1[7ff59d25+29b000]
>>
>> [Wed Sep 18 10:13:52 2019] kamailio[11792]: segfault at
>> 7ff59c7e2000 ip 7ff59d2d4585 sp 7ffd69d76bb8 error 4 in
>> libcrypto.so.1.1[7ff59d25+29b000]
>>
>> [Wed Sep 18 12:48:01 2019] kamailio[12066]: segfault at
>> 7f22dca6d000 ip 7f22dd55f585 sp 7fffbc766ab8 error 4 in
>> libcrypto.so.1.1[7f22dd4db000+29b000]
>>
>> [Wed Sep 18 12:48:14 2019] kamailio[16344]: segfault at
>> 7f7cca42d000 ip 7f7ccaf1f585 sp 7ffe99f16108 error 4 in
>> libcrypto.so.1.1[7f7ccae9b000+29b000]
>>
>> [Wed Sep 18 12:48:32 2019] kamailio[16708]: segfault at
>> 7fb309141000 ip 7fb309c33585 sp 7ffd07a5f3c8 error 4 in
>> libcrypto.so.1.1[7fb309baf000+29b000]
>>
>> [Wed Sep 18 12:48:49 2019] kamailio[16824]: segfault at f0 ip
>> 7fc59095b3ea sp 7ffe58a490b8 error 4 in
>> libcrypto.so.1.1[7fc5908d7000+29b000]
>>
>> [Wed Sep 18 12:49:04 2019] kamailio[16956]: segfault at
>> 7fcc22e58000 ip 7fcc2394a585 sp 7fffa9c52258 error 4 in
>> libcrypto.so.1.1[7fcc238c6000+29b000]
>>
>> [Wed Sep 18 12:49:04 2019] kamailio[16945]: segfault at f0 ip
>> 7fcc2394a3ea sp 7fffa9c52128 error 4 in
>> libcrypto.so.1.1[7fcc238c6000+29b000]
>>
>> [Wed Sep 18 12:49:16 2019] kamailio[17244]: segfault at
>> 7f586ed2 ip 7f586f812585 sp 7ffeae1adcd8 error 4 in
>> libcrypto.so.1.1[7f586f78e000+29b000]
>>
>> [Wed Sep 18 12:49:33 2019] kamailio[17431]: segfault at 8 ip
>> 562fcc44c5d5 sp 7ffe825c9dd0 error 4 in
>> kamailio[562fcc17c000+4a2000]
>>
>> [Wed Sep 18 12:49:33 2019] kamailio[17386]: segfault at 10 ip
>> 7f96c3735c3e sp 7ffe825ca270 error 4 in
>> dialog.so[7f96c36d6000+be000]
>>
>> [Wed Sep 18 12:49:33 2019] kamailio[17423]: segfault at 0 ip
>> 562fcc3544c0 sp 7ffe825ca1f0 error 6 in
>> kamailio[562fcc17c000+4a2000]
>>
>> [Wed Sep 18 12:49:33 2019] kamailio[17378]: segfault at 0 ip
>> 7f96c5dd099f sp 7ffe825c98e0 error 4 in
>> tm.so[7f96c5da5000+13f000]
>>
>> [Wed Sep 18 12:49:33 2019] kamailio[17417]: segfault at 0 ip
>> 562fcc3544c0 sp 7ffe825ca1f0 error 6 in
>> kamailio[562fcc17c000+4a2000]
>>
>> [Wed Sep 18 12:49:33 2019] kamailio[17416]: segfault at 0 ip
>> 562fcc3544c0 sp 7ffe825ca1f0 error 6 in
>> kamailio[562fcc17c000+4a2000]
>>
>> [Wed Sep 18 12:49:33 2019] kamailio[17380]: 

Re: [sr-dev] [SR-Users] Info: initialization of libssl 1.1.+ with PTHREAD_PROCESS_SHARED attribute for pthread mutex and rwlock

2019-09-18 Thread Daniel-Constantin Mierla
Hello,

did you get core files? If yes, it would be good to see the gdb bracktraces.

Have you used the pre-loaded library workaround?

The code was not backported to branch 5.2 yet, I wanted to wait a bit
and see if there are reports with good/bad results. If you want to use
it, then you have to install nightly builds from master branch
(development version, should be 5.3.0-pre1 at this moment).

Cheers,
Daniel

On 18.09.19 15:26, Andrew Chen wrote:
> Hi Daniel,
> Which apt repository can we get this workaround?   Today I noticed our
> Kamailio 5.2.4 cored during one of our load test sessions:
>
> Wed Sep 18 09:31:14 2019] kamailio[26997]: segfault at 7f8501366000 ip
> 7f8501e58585 sp 7fffd5c84248 error 4 in
> libcrypto.so.1.1[7f8501dd4000+29b000]
>
> [Wed Sep 18 10:12:29 2019] kamailio[27110]: segfault at 7f1a8eea1000
> ip 7f1a8f993585 sp 7ffddc8848c8 error 4 in
> libcrypto.so.1.1[7f1a8f90f000+29b000]
>
> [Wed Sep 18 10:12:43 2019] kamailio[11060]: segfault at 20 ip
> 7f0a85dac128 sp 7fff6847aad0 error 4 in
> libcrypto.so.1.1[7f0a85c4+29b000]
>
> [Wed Sep 18 10:12:44 2019] kamailio[11059]: segfault at f0 ip
> 7f0a85cc43ea sp 7fff6847a9e8 error 4 in
> libcrypto.so.1.1[7f0a85c4+29b000]
>
> [Wed Sep 18 10:13:02 2019] kamailio[11187]: segfault at 7f75e06c8000
> ip 7f75e11ba585 sp 7ffe29b47c88 error 4 in
> libcrypto.so.1.1[7f75e1136000+29b000]
>
> [Wed Sep 18 10:13:17 2019] kamailio[11445]: segfault at 7f0f3743f000
> ip 7f0f37f31585 sp 7ffde54daa38 error 4 in
> libcrypto.so.1.1[7f0f37ead000+29b000]
>
> [Wed Sep 18 10:13:36 2019] kamailio[11644]: segfault at 7f804309c000
> ip 7f8043b8e585 sp 7ffe89fe8228 error 4 in
> libcrypto.so.1.1[7f8043b0a000+29b000]
>
> [Wed Sep 18 10:13:52 2019] kamailio[11799]: segfault at 7ff59c7e2000
> ip 7ff59d2d4585 sp 7ffd69d76bb8 error 4 in
> libcrypto.so.1.1[7ff59d25+29b000]
>
> [Wed Sep 18 10:13:52 2019] kamailio[11792]: segfault at 7ff59c7e2000
> ip 7ff59d2d4585 sp 7ffd69d76bb8 error 4 in
> libcrypto.so.1.1[7ff59d25+29b000]
>
> [Wed Sep 18 12:48:01 2019] kamailio[12066]: segfault at 7f22dca6d000
> ip 7f22dd55f585 sp 7fffbc766ab8 error 4 in
> libcrypto.so.1.1[7f22dd4db000+29b000]
>
> [Wed Sep 18 12:48:14 2019] kamailio[16344]: segfault at 7f7cca42d000
> ip 7f7ccaf1f585 sp 7ffe99f16108 error 4 in
> libcrypto.so.1.1[7f7ccae9b000+29b000]
>
> [Wed Sep 18 12:48:32 2019] kamailio[16708]: segfault at 7fb309141000
> ip 7fb309c33585 sp 7ffd07a5f3c8 error 4 in
> libcrypto.so.1.1[7fb309baf000+29b000]
>
> [Wed Sep 18 12:48:49 2019] kamailio[16824]: segfault at f0 ip
> 7fc59095b3ea sp 7ffe58a490b8 error 4 in
> libcrypto.so.1.1[7fc5908d7000+29b000]
>
> [Wed Sep 18 12:49:04 2019] kamailio[16956]: segfault at 7fcc22e58000
> ip 7fcc2394a585 sp 7fffa9c52258 error 4 in
> libcrypto.so.1.1[7fcc238c6000+29b000]
>
> [Wed Sep 18 12:49:04 2019] kamailio[16945]: segfault at f0 ip
> 7fcc2394a3ea sp 7fffa9c52128 error 4 in
> libcrypto.so.1.1[7fcc238c6000+29b000]
>
> [Wed Sep 18 12:49:16 2019] kamailio[17244]: segfault at 7f586ed2
> ip 7f586f812585 sp 7ffeae1adcd8 error 4 in
> libcrypto.so.1.1[7f586f78e000+29b000]
>
> [Wed Sep 18 12:49:33 2019] kamailio[17431]: segfault at 8 ip
> 562fcc44c5d5 sp 7ffe825c9dd0 error 4 in
> kamailio[562fcc17c000+4a2000]
>
> [Wed Sep 18 12:49:33 2019] kamailio[17386]: segfault at 10 ip
> 7f96c3735c3e sp 7ffe825ca270 error 4 in
> dialog.so[7f96c36d6000+be000]
>
> [Wed Sep 18 12:49:33 2019] kamailio[17423]: segfault at 0 ip
> 562fcc3544c0 sp 7ffe825ca1f0 error 6 in
> kamailio[562fcc17c000+4a2000]
>
> [Wed Sep 18 12:49:33 2019] kamailio[17378]: segfault at 0 ip
> 7f96c5dd099f sp 7ffe825c98e0 error 4 in tm.so[7f96c5da5000+13f000]
>
> [Wed Sep 18 12:49:33 2019] kamailio[17417]: segfault at 0 ip
> 562fcc3544c0 sp 7ffe825ca1f0 error 6 in
> kamailio[562fcc17c000+4a2000]
>
> [Wed Sep 18 12:49:33 2019] kamailio[17416]: segfault at 0 ip
> 562fcc3544c0 sp 7ffe825ca1f0 error 6 in
> kamailio[562fcc17c000+4a2000]
>
> [Wed Sep 18 12:49:33 2019] kamailio[17380]: segfault at 0 ip
> 7f96c5dd099f sp 7ffe825c98e0 error 4 in tm.so[7f96c5da5000+13f000]
>
> [Wed Sep 18 12:49:33 2019] kamailio[17381]: segfault at 0 ip
> 7f96c5dd099f sp 7ffe825c98e0 error 4 in tm.so[7f96c5da5000+13f000]
>
> [Wed Sep 18 12:49:34 2019] kamailio[17387]: segfault at 8 ip
> 562fcc25d1f3 sp 7ffe825ca370 error 6 in
> kamailio[562fcc17c000+4a2000]
>
>
> and I was wondering if this core is related.
>
>
> Thanks
>
>
> On Fri, Sep 13, 2019 at 5:18 PM Alex Balashov
> mailto:abalas...@evaristesys.com>> wrote:
>
> Hi Daniel,
>
> Thanks a lot for this work; it's definitely important that Kamailio
> build against OpenSSL v1.1, and I'll be happy to contribute some
> testing
> in a live environment in the coming weeks. Much appreciated.
>
> Have a good weekend,
>
> -- Alex
>
> On Fri, Sep 

Re: [sr-dev] [SR-Users] Info: initialization of libssl 1.1.+ with PTHREAD_PROCESS_SHARED attribute for pthread mutex and rwlock

2019-09-14 Thread Julien Klingenmeyer
Hi Daniel,

Glad to hear you integrated this workaround into the master branch!
We compiled it for testing and for now it seems to be OK. We do not notice any 
issue regarding it.
We will let you know if so.

Thanks,
Julien

De : sr-users  au nom de Daniel-Constantin 
Mierla 
Répondre à : "Kamailio (SER) - Users Mailing List" 
Date : vendredi 13 septembre 2019 à 13:34
À : "Kamailio (SER) - Users Mailing List" , sr-dev 

Objet : [SR-Users] Info: initialization of libssl 1.1.+ with 
PTHREAD_PROCESS_SHARED attribute for pthread mutex and rwlock

Hello,
after couple of months waiting for feedback about the workaround with the 
preloaded shared library to set the PTHREAD_PROCESS_SHARED attribute for 
pthread mutex/rwlock in order to avoid deadlocks and as it seems to be the 
solution, I just pushed a few commits to move that code in the core of kamailio.

It this way the initialization with the PTHREAD_PROCESS_SHARED attribute is 
done by default when libssl v1.1 is detected at compile time, without the need 
of using the approach with a preloaded library.

The shared library is still kept in the tls module:
  * 
https://github.com/kamailio/kamailio/tree/master/src/modules/tls/utils/openssl_mutex_shared

Probably is going to be removed in the near future.

I am asking the community members that use Kamailio on systems with libssl 
v1.1+ to test the master branch and give feedback. The master branch is anyhow 
in testing phase for preparing the next major release v5.3.0, so it will help 
for that as well.

If no issue is going to be reported soon, the commits will be backported to 
stable branches, to re-enable smooth use of Kamailio with libssl v1.1+.

When libssl v1.1+ is detected, the core links with pthread, but that was 
already present in the Makefiles.defs for different compile options. The 
pthread more or less a default library on linuxes/unixes, so this should not 
introduce any major dependency to the Kamailio core.

Cheers,
Daniel

--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [SR-Users] Info: initialization of libssl 1.1.+ with PTHREAD_PROCESS_SHARED attribute for pthread mutex and rwlock

2019-09-13 Thread Alex Balashov
Hi Daniel,

Thanks a lot for this work; it's definitely important that Kamailio
build against OpenSSL v1.1, and I'll be happy to contribute some testing
in a live environment in the coming weeks. Much appreciated. 

Have a good weekend,

-- Alex

On Fri, Sep 13, 2019 at 01:34:12PM +0200, Daniel-Constantin Mierla wrote:

> Hello,
> after couple of months waiting for feedback about the workaround with the
> preloaded shared library to set the PTHREAD_PROCESS_SHARED attribute for
> pthread mutex/rwlock in order to avoid deadlocks and as it seems to be the
> solution, I just pushed a few commits to move that code in the core of
> kamailio.
> 
> It this way the initialization with the PTHREAD_PROCESS_SHARED attribute is
> done by default when libssl v1.1 is detected at compile time, without the
> need of using the approach with a preloaded library.
> 
> The shared library is still kept in the tls module:
>   *
> https://github.com/kamailio/kamailio/tree/master/src/modules/tls/utils/openssl_mutex_shared
> 
> Probably is going to be removed in the near future.
> 
> I am asking the community members that use Kamailio on systems with libssl
> v1.1+ to test the master branch and give feedback. The master branch is
> anyhow in testing phase for preparing the next major release v5.3.0, so it
> will help for that as well.
> 
> If no issue is going to be reported soon, the commits will be backported to
> stable branches, to re-enable smooth use of Kamailio with libssl v1.1+.
> 
> When libssl v1.1+ is detected, the core links with pthread, but that was
> already present in the Makefiles.defs for different compile options. The
> pthread more or less a default library on linuxes/unixes, so this should
> not introduce any major dependency to the Kamailio core.
> 
> Cheers,
> Daniel
> 
> -- 
> Daniel-Constantin Mierla - http://www.asipto.com
> http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

> ___
> Kamailio (SER) - Users Mailing List
> sr-us...@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


-- 
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) 
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev