<p>Unfortunately that didn't fix the problem, however the core dump has changed.</p>
<pre><code>Reading symbols from /usr/local/kamailio/sbin/kamailio...done.
[New LWP 26088]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/local/kamailio/sbin/kamailio -P /var/run/kamailio/kamailio.pid -f /usr/loc'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 aesni_ecb_encrypt () at crypto/aes/aesni-x86_64.s:624
624 movups (%rcx),%xmm1
</code></pre>
<pre><code>(gdb) disas aesni_ecb_encrypt
Dump of assembler code for function aesni_ecb_encrypt:
0x00007ffba23869e0 <+0>: and $0xfffffffffffffff0,%rdx
0x00007ffba23869e4 <+4>: je 0x7ffba2386f34 <aesni_ecb_encrypt+1364>
0x00007ffba23869ea <+10>: mov 0xf0(%rcx),%eax
0x00007ffba23869f0 <+16>: movups (%rcx),%xmm0
0x00007ffba23869f3 <+19>: mov %rcx,%r11
0x00007ffba23869f6 <+22>: mov %eax,%r10d
0x00007ffba23869f9 <+25>: test %r8d,%r8d
0x00007ffba23869fc <+28>: je 0x7ffba2386c50 <aesni_ecb_encrypt+624>
0x00007ffba2386a02 <+34>: cmp $0x80,%rdx
0x00007ffba2386a09 <+41>: jb 0x7ffba2386af7 <aesni_ecb_encrypt+279>
0x00007ffba2386a0f <+47>: movdqu (%rdi),%xmm2
0x00007ffba2386a13 <+51>: movdqu 0x10(%rdi),%xmm3
0x00007ffba2386a18 <+56>: movdqu 0x20(%rdi),%xmm4
0x00007ffba2386a1d <+61>: movdqu 0x30(%rdi),%xmm5
0x00007ffba2386a22 <+66>: movdqu 0x40(%rdi),%xmm6
0x00007ffba2386a27 <+71>: movdqu 0x50(%rdi),%xmm7
0x00007ffba2386a2c <+76>: movdqu 0x60(%rdi),%xmm8
0x00007ffba2386a32 <+82>: movdqu 0x70(%rdi),%xmm9
0x00007ffba2386a38 <+88>: lea 0x80(%rdi),%rdi
0x00007ffba2386a3f <+95>: sub $0x80,%rdx
0x00007ffba2386a46 <+102>: jmp 0x7ffba2386aae <aesni_ecb_encrypt+206>
0x00007ffba2386a48 <+104>: nopl 0x0(%rax,%rax,1)
0x00007ffba2386a50 <+112>: movups %xmm2,(%rsi)
0x00007ffba2386a53 <+115>: mov %r11,%rcx
0x00007ffba2386a56 <+118>: movdqu (%rdi),%xmm2
0x00007ffba2386a5a <+122>: mov %r10d,%eax
0x00007ffba2386a5d <+125>: movups %xmm3,0x10(%rsi)
0x00007ffba2386a61 <+129>: movdqu 0x10(%rdi),%xmm3
0x00007ffba2386a66 <+134>: movups %xmm4,0x20(%rsi)
0x00007ffba2386a6a <+138>: movdqu 0x20(%rdi),%xmm4
0x00007ffba2386a6f <+143>: movups %xmm5,0x30(%rsi)
0x00007ffba2386a73 <+147>: movdqu 0x30(%rdi),%xmm5
0x00007ffba2386a78 <+152>: movups %xmm6,0x40(%rsi)
0x00007ffba2386a7c <+156>: movdqu 0x40(%rdi),%xmm6
0x00007ffba2386a81 <+161>: movups %xmm7,0x50(%rsi)
0x00007ffba2386a85 <+165>: movdqu 0x50(%rdi),%xmm7
0x00007ffba2386a8a <+170>: movups %xmm8,0x60(%rsi)
0x00007ffba2386a8f <+175>: movdqu 0x60(%rdi),%xmm8
0x00007ffba2386a95 <+181>: movups %xmm9,0x70(%rsi)
0x00007ffba2386a9a <+186>: lea 0x80(%rsi),%rsi
0x00007ffba2386aa1 <+193>: movdqu 0x70(%rdi),%xmm9
0x00007ffba2386aa7 <+199>: lea 0x80(%rdi),%rdi
0x00007ffba2386aae <+206>: callq 0x7ffba23867c0 <_aesni_encrypt8>
0x00007ffba2386ab3 <+211>: sub $0x80,%rdx
0x00007ffba2386aba <+218>: jae 0x7ffba2386a50 <aesni_ecb_encrypt+112>
0x00007ffba2386abc <+220>: movups %xmm2,(%rsi)
0x00007ffba2386abf <+223>: mov %r11,%rcx
0x00007ffba2386ac2 <+226>: movups %xmm3,0x10(%rsi)
0x00007ffba2386ac6 <+230>: mov %r10d,%eax
0x00007ffba2386ac9 <+233>: movups %xmm4,0x20(%rsi)
0x00007ffba2386acd <+237>: movups %xmm5,0x30(%rsi)
0x00007ffba2386ad1 <+241>: movups %xmm6,0x40(%rsi)
0x00007ffba2386ad5 <+245>: movups %xmm7,0x50(%rsi)
0x00007ffba2386ad9 <+249>: movups %xmm8,0x60(%rsi)
0x00007ffba2386ade <+254>: movups %xmm9,0x70(%rsi)
0x00007ffba2386ae3 <+259>: lea 0x80(%rsi),%rsi
0x00007ffba2386aea <+266>: add $0x80,%rdx
0x00007ffba2386af1 <+273>: je 0x7ffba2386f34 <aesni_ecb_encrypt+1364>
0x00007ffba2386af7 <+279>: movups (%rdi),%xmm2
0x00007ffba2386afa <+282>: cmp $0x20,%rdx
0x00007ffba2386afe <+286>: jb 0x7ffba2386b70 <aesni_ecb_encrypt+400>
0x00007ffba2386b00 <+288>: movups 0x10(%rdi),%xmm3
0x00007ffba2386b04 <+292>: je 0x7ffba2386ba0 <aesni_ecb_encrypt+448>
0x00007ffba2386b0a <+298>: movups 0x20(%rdi),%xmm4
0x00007ffba2386b0e <+302>: cmp $0x40,%rdx
0x00007ffba2386b12 <+306>: jb 0x7ffba2386bc0 <aesni_ecb_encrypt+480>
0x00007ffba2386b18 <+312>: movups 0x30(%rdi),%xmm5
0x00007ffba2386b1c <+316>: je 0x7ffba2386be0 <aesni_ecb_encrypt+512>
0x00007ffba2386b22 <+322>: movups 0x40(%rdi),%xmm6
0x00007ffba2386b26 <+326>: cmp $0x60,%rdx
0x00007ffba2386b2a <+330>: jb 0x7ffba2386c00 <aesni_ecb_encrypt+544>
0x00007ffba2386b30 <+336>: movups 0x50(%rdi),%xmm7
0x00007ffba2386b34 <+340>: je 0x7ffba2386c20 <aesni_ecb_encrypt+576>
0x00007ffba2386b3a <+346>: movdqu 0x60(%rdi),%xmm8
0x00007ffba2386b40 <+352>: xorps %xmm9,%xmm9
0x00007ffba2386b44 <+356>: callq 0x7ffba23867c0 <_aesni_encrypt8>
0x00007ffba2386b49 <+361>: movups %xmm2,(%rsi)
0x00007ffba2386b4c <+364>: movups %xmm3,0x10(%rsi)
0x00007ffba2386b50 <+368>: movups %xmm4,0x20(%rsi)
0x00007ffba2386b54 <+372>: movups %xmm5,0x30(%rsi)
0x00007ffba2386b58 <+376>: movups %xmm6,0x40(%rsi)
0x00007ffba2386b5c <+380>: movups %xmm7,0x50(%rsi)
0x00007ffba2386b60 <+384>: movups %xmm8,0x60(%rsi)
0x00007ffba2386b65 <+389>: jmpq 0x7ffba2386f34 <aesni_ecb_encrypt+1364>
0x00007ffba2386b6a <+394>: nopw 0x0(%rax,%rax,1)
0x00007ffba2386b70 <+400>: movups (%rcx),%xmm0
0x00007ffba2386b73 <+403>: movups 0x10(%rcx),%xmm1
0x00007ffba2386b77 <+407>: lea 0x20(%rcx),%rcx
0x00007ffba2386b7b <+411>: xorps %xmm0,%xmm2
0x00007ffba2386b7e <+414>: aesenc %xmm1,%xmm2
0x00007ffba2386b83 <+419>: dec %eax
=> 0x00007ffba2386b85 <+421>: movups (%rcx),%xmm1
0x00007ffba2386b88 <+424>: lea 0x10(%rcx),%rcx
0x00007ffba2386b8c <+428>: jne 0x7ffba2386b7e <aesni_ecb_encrypt+414>
0x00007ffba2386b8e <+430>: aesenclast %xmm1,%xmm2
0x00007ffba2386b93 <+435>: movups %xmm2,(%rsi)
0x00007ffba2386b96 <+438>: jmpq 0x7ffba2386f34 <aesni_ecb_encrypt+1364>
0x00007ffba2386b9b <+443>: nopl 0x0(%rax,%rax,1)
0x00007ffba2386ba0 <+448>: callq 0x7ffba2386340 <_aesni_encrypt2>
0x00007ffba2386ba5 <+453>: movups %xmm2,(%rsi)
0x00007ffba2386ba8 <+456>: movups %xmm3,0x10(%rsi)
0x00007ffba2386bac <+460>: jmpq 0x7ffba2386f34 <aesni_ecb_encrypt+1364>
0x00007ffba2386bb1 <+465>: nopl 0x0(%rax,%rax,1)
0x00007ffba2386bb6 <+470>: nopw %cs:0x0(%rax,%rax,1)
0x00007ffba2386bc0 <+480>: callq 0x7ffba2386400 <_aesni_encrypt3>
0x00007ffba2386bc5 <+485>: movups %xmm2,(%rsi)
0x00007ffba2386bc8 <+488>: movups %xmm3,0x10(%rsi)
0x00007ffba2386bcc <+492>: movups %xmm4,0x20(%rsi)
0x00007ffba2386bd0 <+496>: jmpq 0x7ffba2386f34 <aesni_ecb_encrypt+1364>
</code></pre>
<pre><code>(gdb) i r
rax 0xfc3ba328 4231766824
rbx 0x1 1
rcx 0x7ffb96805000 140718538510336
rdx 0x10 16
rsi 0x7ffb58c04108 140717502513416
rdi 0x7ffb56b0c898 140717467945112
rbp 0x7ffcff3bd080 0x7ffcff3bd080
rsp 0x7ffcff3bd038 0x7ffcff3bd038
r8 0x1 1
r9 0x0 0
r10 0x0 0
r11 0x7ffb5a3a8270 140717527302768
r12 0x55e1430f52d3 94425981080275
r13 0x40000000 1073741824
r14 0x10000000 268435456
r15 0x6 6
rip 0x7ffba2386b85 0x7ffba2386b85 <aesni_ecb_encrypt+421>
eflags 0x10287 [ CF PF SF IF RF ]
cs 0x33 51
ss 0x2b 43
ds 0x0 0
es 0x0 0
fs 0x0 0
gs 0x0 0
</code></pre>
<p>I've been looking at buffers and limits to see if we're perhaps hitting some kind of limit that could be triggering this and have found that increasing tls_max_connections and tcp_max_connections to 32768 appears to increase the threshold before the segmentation fault occurs. We're now able to get >20000 presence subscriptions with-out any segmentation faults.</p>
<p>I have more testing to do before I can reach a conclusion but it appears there may be a correlation between tls_max_connections and the segmentation fault.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1860#issuecomment-483804879">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZeW8jBJwYrua6PPp-WyhC6yNMTq8ks5vhh_ZgaJpZM4bFbhy">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZV1OLo2xYfnmnuQ1Dkg-VUFVrB1yks5vhh_ZgaJpZM4bFbhy.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@shaunjstokes in #1860: Unfortunately that didn't fix the problem, however the core dump has changed.\r\n\r\n```\r\nReading symbols from /usr/local/kamailio/sbin/kamailio...done.\r\n[New LWP 26088]\r\n[Thread debugging using libthread_db enabled]\r\nUsing host libthread_db library \"/lib/x86_64-linux-gnu/libthread_db.so.1\".\r\nCore was generated by `/usr/local/kamailio/sbin/kamailio -P /var/run/kamailio/kamailio.pid -f /usr/loc'.\r\nProgram terminated with signal SIGSEGV, Segmentation fault.\r\n#0 aesni_ecb_encrypt () at crypto/aes/aesni-x86_64.s:624\r\n624 movups (%rcx),%xmm1\r\n```\r\n\r\n```\r\n(gdb) disas aesni_ecb_encrypt\r\nDump of assembler code for function aesni_ecb_encrypt:\r\n 0x00007ffba23869e0 \u003c+0\u003e: and $0xfffffffffffffff0,%rdx\r\n 0x00007ffba23869e4 \u003c+4\u003e: je 0x7ffba2386f34 \u003caesni_ecb_encrypt+1364\u003e\r\n 0x00007ffba23869ea \u003c+10\u003e: mov 0xf0(%rcx),%eax\r\n 0x00007ffba23869f0 \u003c+16\u003e: movups (%rcx),%xmm0\r\n 0x00007ffba23869f3 \u003c+19\u003e: mov %rcx,%r11\r\n 0x00007ffba23869f6 \u003c+22\u003e: mov %eax,%r10d\r\n 0x00007ffba23869f9 \u003c+25\u003e: test %r8d,%r8d\r\n 0x00007ffba23869fc \u003c+28\u003e: je 0x7ffba2386c50 \u003caesni_ecb_encrypt+624\u003e\r\n 0x00007ffba2386a02 \u003c+34\u003e: cmp $0x80,%rdx\r\n 0x00007ffba2386a09 \u003c+41\u003e: jb 0x7ffba2386af7 \u003caesni_ecb_encrypt+279\u003e\r\n 0x00007ffba2386a0f \u003c+47\u003e: movdqu (%rdi),%xmm2\r\n 0x00007ffba2386a13 \u003c+51\u003e: movdqu 0x10(%rdi),%xmm3\r\n 0x00007ffba2386a18 \u003c+56\u003e: movdqu 0x20(%rdi),%xmm4\r\n 0x00007ffba2386a1d \u003c+61\u003e: movdqu 0x30(%rdi),%xmm5\r\n 0x00007ffba2386a22 \u003c+66\u003e: movdqu 0x40(%rdi),%xmm6\r\n 0x00007ffba2386a27 \u003c+71\u003e: movdqu 0x50(%rdi),%xmm7\r\n 0x00007ffba2386a2c \u003c+76\u003e: movdqu 0x60(%rdi),%xmm8\r\n 0x00007ffba2386a32 \u003c+82\u003e: movdqu 0x70(%rdi),%xmm9\r\n 0x00007ffba2386a38 \u003c+88\u003e: lea 0x80(%rdi),%rdi\r\n 0x00007ffba2386a3f \u003c+95\u003e: sub $0x80,%rdx\r\n 0x00007ffba2386a46 \u003c+102\u003e: jmp 0x7ffba2386aae \u003caesni_ecb_encrypt+206\u003e\r\n 0x00007ffba2386a48 \u003c+104\u003e: nopl 0x0(%rax,%rax,1)\r\n 0x00007ffba2386a50 \u003c+112\u003e: movups %xmm2,(%rsi)\r\n 0x00007ffba2386a53 \u003c+115\u003e: mov %r11,%rcx\r\n 0x00007ffba2386a56 \u003c+118\u003e: movdqu (%rdi),%xmm2\r\n 0x00007ffba2386a5a \u003c+122\u003e: mov %r10d,%eax\r\n 0x00007ffba2386a5d \u003c+125\u003e: movups %xmm3,0x10(%rsi)\r\n 0x00007ffba2386a61 \u003c+129\u003e: movdqu 0x10(%rdi),%xmm3\r\n 0x00007ffba2386a66 \u003c+134\u003e: movups %xmm4,0x20(%rsi)\r\n 0x00007ffba2386a6a \u003c+138\u003e: movdqu 0x20(%rdi),%xmm4\r\n 0x00007ffba2386a6f \u003c+143\u003e: movups %xmm5,0x30(%rsi)\r\n 0x00007ffba2386a73 \u003c+147\u003e: movdqu 0x30(%rdi),%xmm5\r\n 0x00007ffba2386a78 \u003c+152\u003e: movups %xmm6,0x40(%rsi)\r\n 0x00007ffba2386a7c \u003c+156\u003e: movdqu 0x40(%rdi),%xmm6\r\n 0x00007ffba2386a81 \u003c+161\u003e: movups %xmm7,0x50(%rsi)\r\n 0x00007ffba2386a85 \u003c+165\u003e: movdqu 0x50(%rdi),%xmm7\r\n 0x00007ffba2386a8a \u003c+170\u003e: movups %xmm8,0x60(%rsi)\r\n 0x00007ffba2386a8f \u003c+175\u003e: movdqu 0x60(%rdi),%xmm8\r\n 0x00007ffba2386a95 \u003c+181\u003e: movups %xmm9,0x70(%rsi)\r\n 0x00007ffba2386a9a \u003c+186\u003e: lea 0x80(%rsi),%rsi\r\n 0x00007ffba2386aa1 \u003c+193\u003e: movdqu 0x70(%rdi),%xmm9\r\n 0x00007ffba2386aa7 \u003c+199\u003e: lea 0x80(%rdi),%rdi\r\n 0x00007ffba2386aae \u003c+206\u003e: callq 0x7ffba23867c0 \u003c_aesni_encrypt8\u003e\r\n 0x00007ffba2386ab3 \u003c+211\u003e: sub $0x80,%rdx\r\n 0x00007ffba2386aba \u003c+218\u003e: jae 0x7ffba2386a50 \u003caesni_ecb_encrypt+112\u003e\r\n 0x00007ffba2386abc \u003c+220\u003e: movups %xmm2,(%rsi)\r\n 0x00007ffba2386abf \u003c+223\u003e: mov %r11,%rcx\r\n 0x00007ffba2386ac2 \u003c+226\u003e: movups %xmm3,0x10(%rsi)\r\n 0x00007ffba2386ac6 \u003c+230\u003e: mov %r10d,%eax\r\n 0x00007ffba2386ac9 \u003c+233\u003e: movups %xmm4,0x20(%rsi)\r\n 0x00007ffba2386acd \u003c+237\u003e: movups %xmm5,0x30(%rsi)\r\n 0x00007ffba2386ad1 \u003c+241\u003e: movups %xmm6,0x40(%rsi)\r\n 0x00007ffba2386ad5 \u003c+245\u003e: movups %xmm7,0x50(%rsi)\r\n 0x00007ffba2386ad9 \u003c+249\u003e: movups %xmm8,0x60(%rsi)\r\n 0x00007ffba2386ade \u003c+254\u003e: movups %xmm9,0x70(%rsi)\r\n 0x00007ffba2386ae3 \u003c+259\u003e: lea 0x80(%rsi),%rsi\r\n 0x00007ffba2386aea \u003c+266\u003e: add $0x80,%rdx\r\n 0x00007ffba2386af1 \u003c+273\u003e: je 0x7ffba2386f34 \u003caesni_ecb_encrypt+1364\u003e\r\n 0x00007ffba2386af7 \u003c+279\u003e: movups (%rdi),%xmm2\r\n 0x00007ffba2386afa \u003c+282\u003e: cmp $0x20,%rdx\r\n 0x00007ffba2386afe \u003c+286\u003e: jb 0x7ffba2386b70 \u003caesni_ecb_encrypt+400\u003e\r\n 0x00007ffba2386b00 \u003c+288\u003e: movups 0x10(%rdi),%xmm3\r\n 0x00007ffba2386b04 \u003c+292\u003e: je 0x7ffba2386ba0 \u003caesni_ecb_encrypt+448\u003e\r\n 0x00007ffba2386b0a \u003c+298\u003e: movups 0x20(%rdi),%xmm4\r\n 0x00007ffba2386b0e \u003c+302\u003e: cmp $0x40,%rdx\r\n 0x00007ffba2386b12 \u003c+306\u003e: jb 0x7ffba2386bc0 \u003caesni_ecb_encrypt+480\u003e\r\n 0x00007ffba2386b18 \u003c+312\u003e: movups 0x30(%rdi),%xmm5\r\n 0x00007ffba2386b1c \u003c+316\u003e: je 0x7ffba2386be0 \u003caesni_ecb_encrypt+512\u003e\r\n 0x00007ffba2386b22 \u003c+322\u003e: movups 0x40(%rdi),%xmm6\r\n 0x00007ffba2386b26 \u003c+326\u003e: cmp $0x60,%rdx\r\n 0x00007ffba2386b2a \u003c+330\u003e: jb 0x7ffba2386c00 \u003caesni_ecb_encrypt+544\u003e\r\n 0x00007ffba2386b30 \u003c+336\u003e: movups 0x50(%rdi),%xmm7\r\n 0x00007ffba2386b34 \u003c+340\u003e: je 0x7ffba2386c20 \u003caesni_ecb_encrypt+576\u003e\r\n 0x00007ffba2386b3a \u003c+346\u003e: movdqu 0x60(%rdi),%xmm8\r\n 0x00007ffba2386b40 \u003c+352\u003e: xorps %xmm9,%xmm9\r\n 0x00007ffba2386b44 \u003c+356\u003e: callq 0x7ffba23867c0 \u003c_aesni_encrypt8\u003e\r\n 0x00007ffba2386b49 \u003c+361\u003e: movups %xmm2,(%rsi)\r\n 0x00007ffba2386b4c \u003c+364\u003e: movups %xmm3,0x10(%rsi)\r\n 0x00007ffba2386b50 \u003c+368\u003e: movups %xmm4,0x20(%rsi)\r\n 0x00007ffba2386b54 \u003c+372\u003e: movups %xmm5,0x30(%rsi)\r\n 0x00007ffba2386b58 \u003c+376\u003e: movups %xmm6,0x40(%rsi)\r\n 0x00007ffba2386b5c \u003c+380\u003e: movups %xmm7,0x50(%rsi)\r\n 0x00007ffba2386b60 \u003c+384\u003e: movups %xmm8,0x60(%rsi)\r\n 0x00007ffba2386b65 \u003c+389\u003e: jmpq 0x7ffba2386f34 \u003caesni_ecb_encrypt+1364\u003e\r\n 0x00007ffba2386b6a \u003c+394\u003e: nopw 0x0(%rax,%rax,1)\r\n 0x00007ffba2386b70 \u003c+400\u003e: movups (%rcx),%xmm0\r\n 0x00007ffba2386b73 \u003c+403\u003e: movups 0x10(%rcx),%xmm1\r\n 0x00007ffba2386b77 \u003c+407\u003e: lea 0x20(%rcx),%rcx\r\n 0x00007ffba2386b7b \u003c+411\u003e: xorps %xmm0,%xmm2\r\n 0x00007ffba2386b7e \u003c+414\u003e: aesenc %xmm1,%xmm2\r\n 0x00007ffba2386b83 \u003c+419\u003e: dec %eax\r\n=\u003e 0x00007ffba2386b85 \u003c+421\u003e: movups (%rcx),%xmm1\r\n 0x00007ffba2386b88 \u003c+424\u003e: lea 0x10(%rcx),%rcx\r\n 0x00007ffba2386b8c \u003c+428\u003e: jne 0x7ffba2386b7e \u003caesni_ecb_encrypt+414\u003e\r\n 0x00007ffba2386b8e \u003c+430\u003e: aesenclast %xmm1,%xmm2\r\n 0x00007ffba2386b93 \u003c+435\u003e: movups %xmm2,(%rsi)\r\n 0x00007ffba2386b96 \u003c+438\u003e: jmpq 0x7ffba2386f34 \u003caesni_ecb_encrypt+1364\u003e\r\n 0x00007ffba2386b9b \u003c+443\u003e: nopl 0x0(%rax,%rax,1)\r\n 0x00007ffba2386ba0 \u003c+448\u003e: callq 0x7ffba2386340 \u003c_aesni_encrypt2\u003e\r\n 0x00007ffba2386ba5 \u003c+453\u003e: movups %xmm2,(%rsi)\r\n 0x00007ffba2386ba8 \u003c+456\u003e: movups %xmm3,0x10(%rsi)\r\n 0x00007ffba2386bac \u003c+460\u003e: jmpq 0x7ffba2386f34 \u003caesni_ecb_encrypt+1364\u003e\r\n 0x00007ffba2386bb1 \u003c+465\u003e: nopl 0x0(%rax,%rax,1)\r\n 0x00007ffba2386bb6 \u003c+470\u003e: nopw %cs:0x0(%rax,%rax,1)\r\n 0x00007ffba2386bc0 \u003c+480\u003e: callq 0x7ffba2386400 \u003c_aesni_encrypt3\u003e\r\n 0x00007ffba2386bc5 \u003c+485\u003e: movups %xmm2,(%rsi)\r\n 0x00007ffba2386bc8 \u003c+488\u003e: movups %xmm3,0x10(%rsi)\r\n 0x00007ffba2386bcc \u003c+492\u003e: movups %xmm4,0x20(%rsi)\r\n 0x00007ffba2386bd0 \u003c+496\u003e: jmpq 0x7ffba2386f34 \u003caesni_ecb_encrypt+1364\u003e\r\n```\r\n\r\n```\r\n(gdb) i r\r\nrax 0xfc3ba328 4231766824\r\nrbx 0x1 1\r\nrcx 0x7ffb96805000 140718538510336\r\nrdx 0x10 16\r\nrsi 0x7ffb58c04108 140717502513416\r\nrdi 0x7ffb56b0c898 140717467945112\r\nrbp 0x7ffcff3bd080 0x7ffcff3bd080\r\nrsp 0x7ffcff3bd038 0x7ffcff3bd038\r\nr8 0x1 1\r\nr9 0x0 0\r\nr10 0x0 0\r\nr11 0x7ffb5a3a8270 140717527302768\r\nr12 0x55e1430f52d3 94425981080275\r\nr13 0x40000000 1073741824\r\nr14 0x10000000 268435456\r\nr15 0x6 6\r\nrip 0x7ffba2386b85 0x7ffba2386b85 \u003caesni_ecb_encrypt+421\u003e\r\neflags 0x10287 [ CF PF SF IF RF ]\r\ncs 0x33 51\r\nss 0x2b 43\r\nds 0x0 0\r\nes 0x0 0\r\nfs 0x0 0\r\ngs 0x0 0\r\n```\r\n\r\nI've been looking at buffers and limits to see if we're perhaps hitting some kind of limit that could be triggering this and have found that increasing tls_max_connections and tcp_max_connections to 32768 appears to increase the threshold before the segmentation fault occurs. We're now able to get \u003e20000 presence subscriptions with-out any segmentation faults.\r\n\r\nI have more testing to do before I can reach a conclusion but it appears there may be a correlation between tls_max_connections and the segmentation fault."}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1860#issuecomment-483804879"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1860#issuecomment-483804879",
"url": "https://github.com/kamailio/kamailio/issues/1860#issuecomment-483804879",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>