<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>
<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">
<p class="details" style="font-style: italic; color: #666;">
<a href="https://gitlab.com/asosedkin">Alexander Sosedkin</a> created an issue: <a href="https://gitlab.com/gnutls/gnutls/-/issues/1274">#1274</a>
</p>
<div></div>
<h2 dir="auto">
<a id="user-content-description-of-problem" class="anchor" href="#description-of-problem" aria-hidden="true"></a>Description of problem:</h2>
<p dir="auto">mini-dtls-eagain has a chance to hang under valgrind</p>
<h2 dir="auto">
<a id="user-content-version-of-gnutls-used" class="anchor" href="#version-of-gnutls-used" aria-hidden="true"></a>Version of gnutls used:</h2>
<p dir="auto"><a href="https://gitlab.com/gnutls/gnutls/-/commit/4989ed12f83ad59faea236a8093e0abec87a93fc" data-original="4989ed12f8" data-link="false" data-link-reference="false" data-project="179611" data-commit="4989ed12f83ad59faea236a8093e0abec87a93fc" data-reference-type="commit" data-container="body" data-placement="top" title="Merge branch 'fix-tls13-post-hanshake-with-cert' into 'master'" class="gfm gfm-commit has-tooltip">4989ed12</a></p>
<h2 dir="auto">
<a id="user-content-distributor-of-gnutls-eg-ubuntu-fedora-rhel" class="anchor" href="#distributor-of-gnutls-eg-ubuntu-fedora-rhel" aria-hidden="true"></a>Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL):</h2>
<p dir="auto">observed on Fedora 33 x86_64</p>
<h2 dir="auto">
<a id="user-content-how-reproducible" class="anchor" href="#how-reproducible" aria-hidden="true"></a>How reproducible</h2>
<p dir="auto">probabilistically, can take hundreds of iterations to manifest</p>
<p dir="auto">Steps to Reproduce:
<code>while true; do valgrind --leak-check=full ./tests/mini-eagain-dtls -v 2>&1 | tee mini-eagain-dtls.log; sleep 2; done</code></p>
<h2 dir="auto">
<a id="user-content-actual-results" class="anchor" href="#actual-results" aria-hidden="true"></a>Actual results:</h2>
<p dir="auto">execution sometimes hangs way past the normal execution times with</p>
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">server|<9>| ENC[0x50c41e0]: cipher: AES-256-CBC, MAC: SHA1, Epoch: 1</span>
<span id="LC2" class="line" lang="plaintext">server|<11>| WRITE: enqueued 77 bytes for 0x50c41e0. Total 91 bytes.</span>
<span id="LC3" class="line" lang="plaintext">server|<5>| REC[0x50c41e0]: Sent Packet[281474976710657] Handshake(22) in epoch 1 and length: 77</span>
<span id="LC4" class="line" lang="plaintext">server|<11>| WRITE FLUSH: 91 bytes in buffer.</span>
<span id="LC5" class="line" lang="plaintext">server|<3>| ASSERT: buffers.c[_gnutls_writev_emu]:464</span>
<span id="LC6" class="line" lang="plaintext">server|<2>| WRITE: -1 returned from 0x50c41e0, errno: 11</span>
<span id="LC7" class="line" lang="plaintext">server|<11>| WRITE interrupted: 91 bytes left.</span>
<span id="LC8" class="line" lang="plaintext">server|<3>| ASSERT: dtls.c[_dtls_transmit]:348</span>
<span id="LC9" class="line" lang="plaintext">server|<3>| ASSERT: handshake.c[send_handshake_final]:3340</span>
<span id="LC10" class="line" lang="plaintext">client|<11>| WRITE FLUSH: 0 bytes in buffer.</span>
<span id="LC11" class="line" lang="plaintext">client|<3>| ASSERT: buffers.c[_gnutls_io_write_flush]:696</span>
<span id="LC12" class="line" lang="plaintext">client|<3>| ASSERT: dtls.c[_dtls_transmit]:263</span>
<span id="LC13" class="line" lang="plaintext">client|<3>| ASSERT: dtls.c[_dtls_transmit]:420</span>
<span id="LC14" class="line" lang="plaintext">client|<3>| ASSERT: dtls.c[_dtls_wait_and_retransmit]:440</span>
<span id="LC15" class="line" lang="plaintext">client|<3>| ASSERT: handshake.c[recv_handshake_final]:3383</span>
<span id="LC16" class="line" lang="plaintext">server|<11>| HWRITE FLUSH: 25 bytes in buffer.</span>
<span id="LC17" class="line" lang="plaintext">server|<11>| WRITE FLUSH: 91 bytes in buffer.</span>
<span id="LC18" class="line" lang="plaintext">server|<3>| ASSERT: buffers.c[_gnutls_writev_emu]:464</span>
<span id="LC19" class="line" lang="plaintext">-- keeps repeating from here on --</span></code></pre>
<h2 dir="auto">
<a id="user-content-expected-results" class="anchor" href="#expected-results" aria-hidden="true"></a>Expected results:</h2>
<p dir="auto">execution doesn't hang</p>
</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #666;">
—
<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/issues/1274">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/-/sent_notifications/c9f6303cd55e260d17cb7231dbbd2afa/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/-/issues/1274"}}</script>
</p>
</div>
</body>
</html>