Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 703490 - app-crypt/certbot-0.40.1 segfault
Summary: app-crypt/certbot-0.40.1 segfault
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-21 16:52 UTC by Alistair Boyle
Modified: 2020-05-09 18:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alistair Boyle 2019-12-21 16:52:06 UTC
app-crypt/certbot-0.40.1 segfaults on certificate renewal.

Reproducible: Always

Steps to Reproduce:
1. /usr/bin/certbot renew --keep-until-expiring 

Actual Results:  
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/<<<URL1>>>.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert not yet due for renewal

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/<<<URL2>>>.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert is due for renewal, auto-renewing...
Plugins selected: Authenticator webroot, Installer None
Segmentation fault


Expected Results:  
Expected a successful certificate renewal for <<<URL2>>>. The <<<URL1>>> is not yet due for renewal.

---

Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/<<<URL1>>>.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert not yet due for renewal

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/<<<URL2>>>.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert is due for renewal, auto-renewing...
Plugins selected: Authenticator webroot, Installer None
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for <<<URL2>>>
Waiting for verification...
Cleaning up challenges

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
new certificate deployed without reload, fullchain is
/etc/letsencrypt/live/<<<URL2>>>/fullchain.pem
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

The following certs are not due for renewal yet:
  /etc/letsencrypt/live/<<<URL1>>>/fullchain.pem expires on 2020-02-07 (skipped)
Congratulations, all renewals succeeded. The following certs have been renewed:
  /etc/letsencrypt/live/<<<URL2>>>/fullchain.pem (success)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



This appears to be an issue that upstream has identified with certbot>=0.31 using older dev-python/cryptography. Forcing an upgrade of dev-python/cryptography from 2.6.1 to 2.8 (both stable in portage) solved the problem.

> $ emerge -vat1 dev-python/cryptography
> [ebuild     U  ] dev-python/cryptography-2.8::gentoo [2.6.1::gentoo] ...

https://github.com/certbot/certbot/issues/6808

The ebuild dependency should be updated

> >=dev-python/cryptography-2.8

Thanks!
Comment 1 Larry the Git Cow gentoo-dev 2019-12-21 19:05:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f99ef7b5814713f078684634b59456798780a555

commit f99ef7b5814713f078684634b59456798780a555
Author:     Matthew Thode <prometheanfire@gentoo.org>
AuthorDate: 2019-12-21 19:05:16 +0000
Commit:     Matthew Thode <prometheanfire@gentoo.org>
CommitDate: 2019-12-21 19:05:41 +0000

    app-crypt/certbot: update cryptography dep for to 2.8
    
    Fixes: https://bugs.gentoo.org/703490
    Package-Manager: Portage-2.3.81, Repoman-2.3.20
    Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>

 app-crypt/certbot/certbot-9999.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 2 Alistair Boyle 2019-12-21 20:05:56 UTC
> app-crypt/certbot/certbot-9999.ebuild | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Thanks for the quick response.

I can see you updated certbot-9999. This issue also applies to app-crypt/certbot-0.40.1, as indicated in the bug title.
Comment 3 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2019-12-21 20:08:47 UTC
true, but it'd require a revbump, then a wait for update, It'll be included in the next release bump.  Also, 2.8 has been stable for a while so this should not impact most users.
Comment 4 Alistair Boyle 2020-05-09 18:54:04 UTC
This has been long resolved. We're now at certbot-1.3.0