<div dir="ltr"><div style="font-size:12.8px">(resending with truncated log since my last message was oversized for the list)</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Hi Devs,</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I have an existing config with a working rest_post() query without issue.</div><div style="font-size:12.8px">By simply wrapping with async() and specifying a resume route, OpenSIPS is crashing every time the request is made via https. </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Interestingly, this seems to happen only when making https request with async()... that is a) http works with async() and b) both http and https work without async().<br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Logs and stack trace below.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks,</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Alec</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div>version: opensips 2.2.2 (x86_64/linux)</div><div>flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT</div><div>ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535</div><div>poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.</div><div>git revision: d250e1c</div><div>main.c compiled on  with gcc 4.8</div><div><br></div><div><br></div><div><br></div><div><div style="font-size:12.8px">[New LWP 8915]</div><div style="font-size:12.8px">[Thread debugging using libthread_db enabled]</div><div style="font-size:12.8px">Using host libthread_db library &quot;/usr/grte/v4/lib64/libthread_<wbr>db.so.1&quot;.</div><div style="font-size:12.8px">Core was generated by `opensips -w /tmp&#39;.</div><div style="font-size:12.8px">Program terminated with signal SIGSEGV, Segmentation fault.</div><div style="font-size:12.8px">#0  0x00007fdf4f8fd5b3 in ?? () from /usr/lib/x86_64-linux-gnu/libc<wbr>url-gnutls.so.4</div><div style="font-size:12.8px">(gdb) bt full</div><div style="font-size:12.8px">#0  0x00007fdf4f8fd5b3 in ?? () from /usr/lib/x86_64-linux-gnu/libc<wbr>url-gnutls.so.4</div><div style="font-size:12.8px">No symbol table info available.</div><div style="font-size:12.8px">#1  0x00007fdf4f8d38df in ?? () from /usr/lib/x86_64-linux-gnu/libc<wbr>url-gnutls.so.4</div><div style="font-size:12.8px">No symbol table info available.</div><div style="font-size:12.8px">#2  0x00007fdf4f8d4dff in ?? () from /usr/lib/x86_64-linux-gnu/libc<wbr>url-gnutls.so.4</div><div style="font-size:12.8px">No symbol table info available.</div><div style="font-size:12.8px">#3  0x00007fdf4f8e66db in ?? () from /usr/lib/x86_64-linux-gnu/libc<wbr>url-gnutls.so.4</div><div style="font-size:12.8px">No symbol table info available.</div><div style="font-size:12.8px">#4  0x00007fdf4f8f6047 in ?? () from /usr/lib/x86_64-linux-gnu/libc<wbr>url-gnutls.so.4</div><div style="font-size:12.8px">No symbol table info available.</div><div style="font-size:12.8px">#5  0x00007fdf4f8f6671 in curl_multi_perform () from /usr/lib/x86_64-linux-gnu/libc<wbr>url-gnutls.so.4</div><div style="font-size:12.8px">No symbol table info available.</div><div style="font-size:12.8px">#6  0x00007fdf4fb2d01d in resume_async_http_req () from /usr/lib/x86_64-linux-gnu/open<wbr>sips/modules/rest_client.so</div><div style="font-size:12.8px">No symbol table info available.</div><div style="font-size:12.8px">#7  0x00007fdf511efc49 in t_resume_async () from /usr/lib/x86_64-linux-gnu/open<wbr>sips/modules/tm.so</div><div style="font-size:12.8px">No symbol table info available.</div><div style="font-size:12.8px">#8  0x0000000000519f7a in ?? ()</div><div style="font-size:12.8px">No symbol table info available.</div><div style="font-size:12.8px">#9  0x000000000051bf47 in tcp_worker_proc ()</div><div style="font-size:12.8px">No symbol table info available.</div><div style="font-size:12.8px">#10 0x0000000000514c88 in tcp_start_processes ()</div><div style="font-size:12.8px">No symbol table info available.</div><div style="font-size:12.8px">#11 0x00000000004197da in main ()</div><div style="font-size:12.8px">No symbol table info available.</div><div style="font-size:12.8px">(gdb) </div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div style="font-size:12.8px">2016-11-19T02:35:25.626123+00:<wbr>00 <a href="http://cc-foosipas1.foo.voip.example.com" target="_blank">cc-foosipas1.foo.voip.example.<wbr>com</a> opensips[8915]: DBG:tm:io_watch_add: [TCP_worker] io_watch_add op (27 on 6) (0x7e4020, 27, 16, 0x7fdf51b77df0,1), fd_no=3/1024</div><div style="font-size:12.8px">2016-11-19T02:35:25.626135+00:<wbr>00 <a href="http://cc-foosipas1.foo.voip.example.com" target="_blank">cc-foosipas1.foo.voip.example.<wbr>com</a> opensips[8915]: DBG:core:destroy_avp_list: destroying list (nil)</div><div style="font-size:12.8px">2016-11-19T02:35:25.626139+00:<wbr>00 <a href="http://cc-foosipas1.foo.voip.example.com" target="_blank">cc-foosipas1.foo.voip.example.<wbr>com</a> opensips[8915]: DBG:core:receive_msg: cleaning up</div><div style="font-size:12.8px">2016-11-19T02:35:25.626160+00:<wbr>00 <a href="http://cc-foosipas1.foo.voip.example.com" target="_blank">cc-foosipas1.foo.voip.example.<wbr>com</a> opensips[8915]: DBG:core:tcp_read_req: tcp_read_req end</div><div style="font-size:12.8px">2016-11-19T02:35:25.627576+00:<wbr>00 <a href="http://cc-foosipas1.foo.voip.example.com" target="_blank">cc-foosipas1.foo.voip.example.<wbr>com</a> opensips[8915]: DBG:tm:t_resume_async: resuming on fd 27, transaction 0x7fdf51b72d60 </div><div style="font-size:12.8px">2016-11-19T02:35:25.628876+00:<wbr>00 <a href="http://cc-foosipas1.foo.voip.example.com" target="_blank">cc-foosipas1.foo.voip.example.<wbr>com</a> opensips[8915]: DBG:rest_client:resume_async_<wbr>http_req: running handles: 1</div><div style="font-size:12.8px">2016-11-19T02:35:25.672898+00:<wbr>00 <a href="http://cc-foosipas1.foo.voip.example.com" target="_blank">cc-foosipas1.foo.voip.example.<wbr>com</a> opensips[8915]: DBG:tm:t_resume_async: resuming on fd 27, transaction 0x7fdf51b72d60 </div><div style="font-size:12.8px">2016-11-19T02:35:25.828337+00:<wbr>00 <a href="http://cc-foosipas1.foo.voip.example.com" target="_blank">cc-foosipas1.foo.voip.example.<wbr>com</a> opensips[8924]: DBG:core:io_wait_loop_epoll: [TCP_main] EPOLLHUP on IN -&gt;connection closed by the remote peer!</div><div style="font-size:12.8px">2016-11-19T02:35:25.828363+00:<wbr>00 <a href="http://cc-foosipas1.foo.voip.example.com" target="_blank">cc-foosipas1.foo.voip.example.<wbr>com</a> opensips[8924]: CRITICAL:core:receive_fd: EOF on 25</div><div style="font-size:12.8px">2016-11-19T02:35:25.828367+00:<wbr>00 <a href="http://cc-foosipas1.foo.voip.example.com" target="_blank">cc-foosipas1.foo.voip.example.<wbr>com</a> opensips[8924]: DBG:core:handle_worker: dead child 12, pid 8915 (shutting down?)</div><div style="font-size:12.8px">2016-11-19T02:35:25.828372+00:<wbr>00 <a href="http://cc-foosipas1.foo.voip.example.com" target="_blank">cc-foosipas1.foo.voip.example.<wbr>com</a> opensips[8924]: DBG:core:io_watch_del: [TCP_main] io_watch_del op on index 12 25 (0x7e4020, 25, 12, 0x0,0x1) fd_no=29 called</div><div style="font-size:12.8px">2016-11-19T02:35:25.828468+00:<wbr>00 <a href="http://cc-foosipas1.foo.voip.example.com" target="_blank">cc-foosipas1.foo.voip.example.<wbr>com</a> opensips[8924]: DBG:core:io_wait_loop_epoll: [TCP_main] EPOLLHUP on IN -&gt;connection closed by the remote peer!</div><div style="font-size:12.8px">2016-11-19T02:35:25.828485+00:<wbr>00 <a href="http://cc-foosipas1.foo.voip.example.com" target="_blank">cc-foosipas1.foo.voip.example.<wbr>com</a> opensips[8924]: DBG:core:handle_tcp_worker: dead tcp worker 0 (pid 8915, no 0) (shutting down?)</div><div style="font-size:12.8px">2016-11-19T02:35:25.828490+00:<wbr>00 <a href="http://cc-foosipas1.foo.voip.example.com" target="_blank">cc-foosipas1.foo.voip.example.<wbr>com</a> opensips[8924]: DBG:core:io_watch_del: [TCP_main] io_watch_del op on index 20 23 (0x7e4020, 23, 20, 0x0,0x1) fd_no=28 called</div><div style="font-size:12.8px">2016-11-19T02:35:26.140655+00:<wbr>00 <a href="http://cc-foosipas1.foo.voip.example.com" target="_blank">cc-foosipas1.foo.voip.example.<wbr>com</a> opensips[8903]: DBG:core:handle_sigs: status = 139</div><div style="font-size:12.8px">2016-11-19T02:35:26.140759+00:<wbr>00 <a href="http://cc-foosipas1.foo.voip.example.com" target="_blank">cc-foosipas1.foo.voip.example.<wbr>com</a> opensips[8903]: INFO:core:handle_sigs: child process 8915 exited by a signal 11</div><div style="font-size:12.8px">2016-11-19T02:35:26.140805+00:<wbr>00 <a href="http://cc-foosipas1.foo.voip.example.com" target="_blank">cc-foosipas1.foo.voip.example.<wbr>com</a> opensips[8903]: INFO:core:handle_sigs: core was generated</div><div style="font-size:12.8px">2016-11-19T02:35:26.140850+00:<wbr>00 <a href="http://cc-foosipas1.foo.voip.example.com" target="_blank">cc-foosipas1.foo.voip.example.<wbr>com</a> opensips[8903]: INFO:core:handle_sigs: terminating due to SIGCHLD</div><div style="font-size:12.8px">2016-11-19T02:35:26.141012+00:<wbr>00 <a href="http://cc-foosipas1.foo.voip.example.com" target="_blank">cc-foosipas1.foo.voip.example.<wbr>com</a> opensips[8924]: INFO:core:sig_usr: signal 15 received</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div></div></div>