Same here with `init_mode` set to `1`
```
#0  0x0000561af309da18 in qm_debug_check_frag (qm=qm@entry=0x7f881ca00000, 
f=f@entry=0x7f881e1926d0, file=file@entry=0x7f883cfdde1e "tls: tls_init.c", 
line=line@entry=422, eline=eline@entry=544, efile=0x561af31dc96c 
"core/mem/q_malloc.c") at core/mem/q_malloc.c:134
#1  0x0000561af309e929 in qm_free (qmp=<optimized out>, p=0x7f881e192710, 
file=0x7f883cfdde1e "tls: tls_init.c", func=0x7f883cfdf128 <__func__.6> 
"ser_free", line=422, mname=0x7f883cfd800a "tls") at core/mem/q_malloc.c:544
#2  0x0000561af30a3aff in qm_shm_free (qmp=<optimized out>, p=0x7f881e192710, 
file=0x7f883cfdde1e "tls: tls_init.c", func=0x7f883cfdf128 <__func__.6> 
"ser_free", line=422, mname=0x7f883cfd800a "tls") at core/mem/q_malloc.c:1525
#3  0x00007f883cfad4a7 in ser_free (ptr=0x7f881e192710, fname=<optimized out>, 
fline=<optimized out>) at ./src/modules/tls/tls_init.c:422
#4  0x00007f883cbe8aac in err_clear (deall=0, i=<optimized out>, 
es=0x7f881caaf2d0) at ../crypto/err/err_local.h:86
#5  ERR_pop_to_mark () at ../crypto/err/err.c:902
#6  0x00007f883cc2e2d2 in ossl_namemap_doall_names (namemap=<optimized out>, 
number=<optimized out>, fn=fn@entry=0x7f883cc19420 <find_ameth>, 
data=data@entry=0x7ffc4fda6490) at ../crypto/core_namemap.c:171
#7  0x00007f883cc0b79d in evp_names_do_all (prov=<optimized out>, 
number=<optimized out>, fn=fn@entry=0x7f883cc19420 <find_ameth>, 
data=data@entry=0x7ffc4fda6490) at ../crypto/evp/evp_fetch.c:689
#8  0x00007f883cc14663 in EVP_KEYMGMT_names_do_all 
(keymgmt=keymgmt@entry=0x7f881cd9e800, fn=fn@entry=0x7f883cc19420 <find_ameth>, 
data=data@entry=0x7ffc4fda6490) at ../crypto/evp/keymgmt_meth.c:302
#9  0x00007f883cc1ab58 in EVP_PKEY_set_type_by_keymgmt 
(pkey=pkey@entry=0x7f881e18d020, keymgmt=0x7f881cd9e800) at 
../crypto/evp/p_lib.c:1642
#10 0x00007f883cc1be41 in EVP_PKEY_copy_parameters (to=to@entry=0x7f881e18d020, 
from=from@entry=0x7f881dfc2130) at ../crypto/evp/p_lib.c:155
#11 0x00007f883cf588e0 in tls_process_cke_ecdhe (pkt=0x7ffc4fda66a0, 
s=0x7f881e0bb340) at ../ssl/statem/statem_srvr.c:3037
#12 tls_process_client_key_exchange (s=0x7f881e0bb340, pkt=0x7ffc4fda66a0) at 
../ssl/statem/statem_srvr.c:3316
#13 0x00007f883cf44672 in read_state_machine (s=0x7f881e0bb340) at 
../ssl/statem/statem.c:647
#14 state_machine (s=0x7f881e0bb340, server=1) at ../ssl/statem/statem.c:442
#15 0x00007f883cfc8c36 in tls_accept (c=c@entry=0x7f881dffd5d0, 
error=error@entry=0x7ffc4fda6888) at ./src/modules/tls/tls_server.c:471
#16 0x00007f883cfd14ed in tls_h_read_f (c=c@entry=0x7f881dffd5d0, 
flags=flags@entry=0x7ffc4fdc6cb0) at ./src/modules/tls/tls_server.c:1173
#17 0x0000561af304aa36 in tcp_read_headers (c=c@entry=0x7f881dffd5d0, 
read_flags=read_flags@entry=0x7ffc4fdc6cb0) at core/tcp_read.c:445
#18 0x0000561af304db36 in tcp_read_req (con=0x7f881dffd5d0, 
bytes_read=bytes_read@entry=0x7ffc4fdc6ca8, 
read_flags=read_flags@entry=0x7ffc4fdc6cb0) at core/tcp_read.c:1509
#19 0x0000561af3052cf7 in handle_io (fm=fm@entry=0x7f883d68e7f8, 
events=events@entry=1, idx=idx@entry=-1) at core/tcp_read.c:1906
#20 0x0000561af3058dad in io_wait_loop_epoll (repeat=repeat@entry=0, 
t=<optimized out>, h=<optimized out>) at core/io_wait.h:1073
#21 0x0000561af30595b7 in tcp_receive_loop (unix_sock=<optimized out>) at 
core/tcp_read.c:2026
#22 0x0000561af3041207 in tcp_init_children 
(woneinit=woneinit@entry=0x7ffc4fdc71ec) at core/tcp_main.c:5360
#23 0x0000561af2e4d070 in main_loop () at ./src/main.c:1946
#24 0x0000561af2e40aac in main (argc=<optimized out>, argv=<optimized out>) at 
./src/main.c:3236
```
```
(gdb) p ((struct qm_frag_end *)((char *)(f) + sizeof(struct qm_frag) + 
(f)->size))
$3 = (struct qm_frag_end *) 0x5c6bc564a435e6f7
(gdb) p *((struct qm_frag_end *)((char *)(f) + sizeof(struct qm_frag) + 
(f)->size))
Cannot access memory at address 0x5c6bc564a435e6f7
```
As far as I can see, there's only `tls.so` using OpenSSL
```
% grep "^loadm" kamailio.cfg | cut -d\" -f2 | while read mod ; do ldd 
/usr/lib/x86_64-linux-gnu/kamailio/modules/$mod | grep -qE 'crypto|ssl' && echo 
$mod ; done
tls.so
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3635#issuecomment-1823025201
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/issues/3635/1823025...@github.com>
_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org

Reply via email to