<!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">
<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"><a href="https://marlam.de/msmtp/" rel="nofollow noreferrer noopener" target="_blank">msmtp</a> gets stuck in a deadlock on mutex session->internals.epoch_lock in function _gnutls_epoch_get with gnutls version 3.6.7. The mutex has been introduced in commit <a href="https://gitlab.com/gnutls/gnutls/commit/2db896b7fd3258851898652e9ddef7335f23e450" data-original="2db896b7fd3258851898652e9ddef7335f23e450" data-link="false" data-link-reference="false" data-project="179611" data-commit="2db896b7fd3258851898652e9ddef7335f23e450" data-reference-type="commit" data-container="body" data-placement="bottom" title="Protected _gnutls_epoch_get from _gnutls_epoch_gc on false start" class="gfm gfm-commit has-tooltip">2db896b7</a>. I am not sure if this is a bug in gnutls or in msmtp. Maybe msmtp fails to initialize gnutls correctly, but it works with version 3.6.6 so I suspect, that the commit may assume a specific usage of the gnutls API that msmtp (and maybe other software) does not adhere.</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">3.6.7</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">Gentoo</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">Use msmtp with gnutls 3.6.7. It gets stuck trying to initiate a TLS connection to the SMTP server using STARTTLS.</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">Deadlock.</p>
<h2 dir="auto">
<a id="user-content-expected-results" class="anchor" href="#expected-results" aria-hidden="true"></a>Expected results:</h2>
<p dir="auto">msmtp successfully sending an e-mail over a TLS connection to an SMTP server.</p>
</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777;">
—
<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/issues/758">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/bca36c2734f45f52e661aa85cee505b5/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/758"}}</script>
</p>
</div>
</body>
</html>