Thread 25 (Thread 0x7fb408837700 (LWP 952)): #0 __libc_recv (flags=0, len=5, buf=0x7fb3d44f10c3, fd=354) at ../sysdeps/unix/sysv/linux/recv.c:28 #1 __libc_recv (fd=354, buf=0x7fb3d44f10c3, buf@entry=0x7fb3d40698a0, len=5, len@entry=0, flags=flags@entry=0) at ../sysdeps/unix/sysv/linux/recv.c:23 #2 0x00007fb409ab7c65 in recv (__flags=0, __n=0, __buf=0x7fb3d40698a0, __fd=) at /usr/include/x86_64-linux-gnu/bits/socket2.h:44 #3 pqsecure_raw_read (conn=0x7fb3d40698a0, ptr=ptr@entry=0x7fb3d44f10c3, len=len@entry=5) at ./build/../src/interfaces/libpq/fe-secure.c:238 #4 0x00007fb409abd8f8 in my_sock_read (h=0x7fb3d44f0440, buf=0x7fb3d44f10c3 "\027\003\003", size=5) at ./build/../src/interfaces/libpq/fe-secure-openssl.c:1467 #5 0x00007fb40c1bcd8a in bread_conv (bio=, data=, datal=, readbytes=0x7fb408836460) at ../crypto/bio/bio_meth.c:123 #6 0x00007fb40c1bbc33 in bio_read_intern (b=0x7fb3d44f0440, data=data@entry=0x7fb3d44f10c3, dlen=dlen@entry=5, readbytes=readbytes@entry=0x7fb408836460) at ../crypto/bio/bio_lib.c:270 #7 0x00007fb40c1bc1e3 in BIO_read (b=, data=data@entry=0x7fb3d44f10c3, dlen=dlen@entry=5) at ../crypto/bio/bio_lib.c:296 #8 0x00007fb40c40b61f in ssl3_read_n (s=s@entry=0x7fb3d441da70, n=n@entry=5, max=, extend=extend@entry=0, clearold=clearold@entry=1, readbytes=readbytes@entry=0x7fb408836528) at ../ssl/record/rec_layer_s3.c:296 #9 0x00007fb40c40f4aa in ssl3_get_record (s=s@entry=0x7fb3d441da70) at ../ssl/record/ssl3_record.c:207 #10 0x00007fb40c40ce10 in ssl3_read_bytes (s=0x7fb3d441da70, type=23, recvd_type=0x0, buf=0x7fb3d46302a0 "Z", len=16384, peek=0, readbytes=0x7fb408836770) at ../ssl/record/rec_layer_s3.c:1321 #11 0x00007fb40c414255 in ssl3_read_internal (s=0x7fb3d441da70, buf=0x7fb3d46302a0, len=16384, peek=0, readbytes=0x7fb408836770) at ../ssl/s3_lib.c:4473 #12 0x00007fb40c41ecea in ssl_read_internal (readbytes=0x7fb408836770, num=16384, buf=0x7fb3d46302a0, s=0x7fb3d441da70) at ../ssl/ssl_lib.c:1761 #13 ssl_read_internal (s=0x7fb3d441da70, buf=0x7fb3d46302a0, num=16384, readbytes=0x7fb408836770) at ../ssl/ssl_lib.c:1724 #14 0x00007fb40c41edf3 in SSL_read (s=, buf=buf@entry=0x7fb3d46302a0, num=num@entry=16384) at ../ssl/ssl_lib.c:1775 #15 0x00007fb409abdacc in pgtls_read (conn=conn@entry=0x7fb3d40698a0, ptr=0x7fb3d46302a0, len=) at ./build/../src/interfaces/libpq/fe-secure-openssl.c:162 #16 0x00007fb409ab7d2e in pqsecure_read (conn=conn@entry=0x7fb3d40698a0, ptr=, len=) at ./build/../src/interfaces/libpq/fe-secure.c:220 #17 0x00007fb409aaf57a in pqReadData (conn=conn@entry=0x7fb3d40698a0) at ./build/../src/interfaces/libpq/fe-misc.c:681 #18 0x00007fb409aacab2 in PQconsumeInput (conn=0x7fb3d40698a0) at ./build/../src/interfaces/libpq/fe-exec.c:1704 #19 0x00007fb40cded7d4 in db_is_up (handle=handle@entry=0x7fb3d4758590) at mod_pgsql.c:135 #20 0x00007fb40cdee68e in pgsql_handle_exec_base_detailed (file=file@entry=0x7fb40cdf001a "mod_pgsql.c", func=func@entry=0x7fb40cdf06e0 <__func__.23691> "pgsql_handle_callback_exec_detailed", line=line@entry=908, handle=handle@entry=0x7fb3d4758590, sql=sql@entry=0x7fb39c075950 "select call_id,sip_user,sip_host,contact,status,rpid,expires,user_agent,server_user,server_host,profile_name from sip_registrations where force_ping=1 and hostname='taxi-m9-phone1.yndx.net' and profil"..., err=err@entry=0x7fb408836b40) at mod_pgsql.c:453 #21 0x00007fb40cdeea87 in pgsql_handle_callback_exec_detailed (file=0x7fb40c8f0559 "src/switch_core_sqldb.c", func=0x7fb40c8f3a60 <__func__.31970> "switch_cache_db_execute_sql_callback", line=1347, dih=, sql=0x7fb39c075950 "select call_id,sip_user,sip_host,contact,status,rpid,expires,user_agent,server_user,server_host,profile_name from sip_registrations where force_ping=1 and hostname='taxi-m9-phone1.yndx.net' and profil"..., callback=0x7fb409625f10 , pdata=0x55a79b46c740, err=0x7fb408836b40) at mod_pgsql.c:908 #22 0x00007fb40c56099b in switch_cache_db_execute_sql_callback (dbh=0x7fb3d4534360, sql=sql@entry=0x7fb39c075950 "select call_id,sip_user,sip_host,contact,status,rpid,expires,user_agent,server_user,server_host,profile_name from sip_registrations where force_ping=1 and hostname='taxi-m9-phone1.yndx.net' and profil"..., callback=callback@entry=0x7fb409625f10 , pdata=pdata@entry=0x55a79b46c740, err=err@entry=0x7fb408836b40) at src/switch_core_sqldb.c:1347 #23 0x00007fb40961194a in sofia_glue_execute_sql_callback (profile=profile@entry=0x55a79b46c740, mutex=0x55a79b46ebf0, sql=0x7fb39c075950 "select call_id,sip_user,sip_host,contact,status,rpid,expires,user_agent,server_user,server_host,profile_name from sip_registrations where force_ping=1 and hostname='taxi-m9-phone1.yndx.net' and profil"..., callback=callback@entry=0x7fb409625f10 , pdata=pdata@entry=0x55a79b46c740) at sofia_glue.c:2840 #24 0x00007fb40962849b in sofia_reg_check_ping_expire (profile=profile@entry=0x55a79b46c740, now=1591330476, interval=30) at sofia_reg.c:932 #25 0x00007fb4095df0e3 in sofia_profile_worker_thread_run (thread=, obj=0x55a79b46c740) at sofia.c:3008 #26 0x00007fb40c8b34fc in dummy_worker (opaque=0x7fb408a60b50) at threadproc/unix/thread.c:151 #27 0x00007fb40c0e4fa3 in start_thread (arg=) at pthread_create.c:486 #28 0x00007fb40c0154cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95