<h3>Description</h3>
<p>I'm having crashes on the Http worker process. I didn't find a way to reproduce the crash yet. Crashes are happening on two servers after a couple of days.</p>
<h4>Debugging Data</h4>
<p>Not very useful</p>
<pre><code>Core was generated by `/usr/sbin/kamailio -f /etc/kamailio/kamailio.cfg -P /var/run/kamailio/kamailio.'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  __GI__IO_wfile_underflow (fp=0x7f45900008c0) at wfileops.c:280
280     wfileops.c: No such file or directory.
(gdb) bt
#0  __GI__IO_wfile_underflow (fp=0x7f45900008c0) at wfileops.c:280
#1  0x00000000000004b0 in ?? ()
#2  0x0000000000000428 in ?? ()
#3  0x00007f459d9e2640 in ?? ()
#4  0x0000000000000000 in ?? ()
(gdb)
</code></pre>
<h4>Log Messages</h4>
<p>I have debug enabled for http_async_client module, and this is the last messages before the crash</p>
<pre><code>Jan  3 11:02:11 vox-kamailio-1887-0 kamailio[2685]: DEBUG: http_async_client [http_multi.c:67]: timer_cb(): timeout on socket -1
Jan  3 11:02:11 vox-kamailio-1887-0 kamailio[2685]: DEBUG: http_async_client [http_multi.c:53]: multi_timer_cb(): multi_timer_cb: Setting timeout to 1 ms
Jan  3 11:02:11 vox-kamailio-1887-0 kamailio[2685]: DEBUG: http_async_client [http_multi.c:561]: check_multi_info(): REMAINING: 2
[...]
Jan  3 11:02:15 vox-kamailio-1887-0 kamailio[2702]: CRITICAL: <core> [core/pass_fd.c:277]: receive_fd(): EOF on 89
Jan  3 11:02:15 vox-kamailio-1887-0 kamailio[2618]: ALERT: <core> [main.c:743]: handle_sigs(): child process 2685 exited by a signal 11
Jan  3 11:02:15 vox-kamailio-1887-0 kamailio[2618]: ALERT: <core> [main.c:746]: handle_sigs(): core was generated
</code></pre>
<h3>Additional Information</h3>
<ul>
<li><strong>Kamailio Version</strong> - output of <code>kamailio -v</code></li>
</ul>
<pre><code>version: kamailio 5.0.5 (x86_64/linux) 
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, 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_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown 
compiled with gcc 4.8.2
</code></pre>
<p>This is 5.0.5 + <a href="https://github.com/kamailio/kamailio/commit/388ba3642338992a04ca1c98612aa4b58c9d9e91" class="commit-link"><tt>388ba36</tt></a></p>
<p>Module parameters are:</p>
<pre><code>modparam("http_async_client", "connection_timeout", 10000)
modparam("http_async_client", "tls_verify_host", 0)
modparam("http_async_client", "tls_verify_peer", 0)
modparam("http_async_client", "hash_size", 1024)
</code></pre>
<p>The use of the module is like this:</p>
<pre><code>    $var(url) = $avp(s:deviceStateURL)+"ari/deviceStates/Custom:" +
        $avp(s:queueDevice);
    $http_req(timeout) = 100;
    $http_req(suspend) = 0;
    $http_req(authmethod) = 1;
    $http_req(username) = $sht(lcr=>ari_user);
    $http_req(password) = $sht(lcr=>ari_pass);
    http_async_query("$var(url)", "QUEUE_CHECK_STATUS_OR_SET");
</code></pre>
<ul>
<li><strong>Operating System</strong>:</li>
</ul>
<p>Ubuntu Trusty</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/1391">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZYrKcAfO2tbiu0qWJVj3rh2U8Ti3ks5tHJLOgaJpZM4RSunx">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZXaVIApRXYZIVwE9ljkLzdqS7wATks5tHJLOgaJpZM4RSunx.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/1391"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<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://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"http_async_client: coredump on 5.0.5 (#1391)"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1391"}}}</script>