[sr-dev] [kamailio/kamailio] core on start (#2788)

sergey-safarov notifications at github.com
Sat Jun 26 14:26:54 CEST 2021


```
[root at safarov-dell kamailio]# /usr/local/sbin/kamailio -v
version: kamailio 5.6.0-dev0 (x86_64/linux) df23ea
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLOCKLIST, HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: df23ea 
compiled on 12:48:46 Jun 18 2021 with gcc 10.2.1
```
Here is a master with my commits. As base used 5d03c9235f79ce4af35b6f79eddebae9f512f1d3

```
[root at safarov-dell kamailio]# uname -a
Linux safarov-dell.home 5.9.10-200.fc33.x86_64 #1 SMP Mon Nov 23 18:12:50 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
```
Here Fedora 33 (Not CentOS 8, but same behavior on CentOS8).

```
(gdb) frame 1
#1  0x00007ffff639d5df in pv_parse_hdr_name (sp=0x7ffff6ae4c08, in=0x7fffffffd610) at pv_core.c:3594
3594		memcpy(p, in->s, in->len);
(gdb) list
3589		{
3590			LM_ERR("name too long\n");
3591			return -1;
3592		}
3593		p = pv_get_buffer();
3594		memcpy(p, in->s, in->len);
3595		p[in->len] = ':';
3596		s.s = p;
3597		s.len = in->len+1;
3598	
(gdb) p p
$1 = 0x82be18 <__func__.9> "pv_init_buffer"
(gdb) p in->s
$2 = 0x7ffff6ae4c6e "X-CID)[0])"
(gdb) p in
$3 = (str *) 0x7fffffffd610
(gdb) p *in
$4 = {s = 0x7ffff6ae4c6e "X-CID)[0])", len = 5}
```

Relevant [string](https://github.com/kamailio/kamailio/blob/master/src/modules/pv/pv_core.c#L3617) in current master.

I will retest on the 14d92c0d7ab1229996176b131ab8edcabc3a5717 commit.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2788#issuecomment-868994087
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20210626/823e1efe/attachment.htm>


More information about the sr-dev mailing list