From nobody Sat Jul 27 06:55:12 2024 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WWFkL1Yzwz5RY0y for ; Sat, 27 Jul 2024 06:55:21 +0000 (UTC) (envelope-from xavier@groumpf.org) Received: from aragorn.amdh.fr (aragorn.groumpf.org [176.31.180.205]) by mx1.freebsd.org (Postfix) with ESMTP id 4WWFkK0mXRz4lTB for ; Sat, 27 Jul 2024 06:55:21 +0000 (UTC) (envelope-from xavier@groumpf.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=groumpf.org header.s=dkim header.b=IqJ7HRio; dmarc=none; spf=pass (mx1.freebsd.org: domain of xavier@groumpf.org designates 176.31.180.205 as permitted sender) smtp.mailfrom=xavier@groumpf.org Received: from numenor.groumpf.org (freebox-server.groumpf.org [82.64.247.11]) by aragorn.amdh.fr (Postfix) with ESMTP id 1BDB83E60473 for ; Sat, 27 Jul 2024 08:55:20 +0200 (CEST) Received: from numenor.groumpf.org (localhost [127.0.0.1]) by numenor.groumpf.org (Postfix) with ESMTP id EC2CB1CDA0A for ; Sat, 27 Jul 2024 08:55:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groumpf.org; h= content-transfer-encoding:content-type:content-type:in-reply-to :content-language:references:from:from:subject:subject :user-agent:mime-version:date:date:message-id:received:received; s=dkim; t=1722063312; x=1722927313; bh=IxbKBGI1bZV8sVsFOwntwr1W Z2/+IZSJCwL/b7PZ1to=; b=IqJ7HRioY8IBCMs+QOABsQS/JY0yH3g+/XU8ZfDe 4q8/14OHRB9kaAjWPhX+qEp95ZhR6ebdQseC/Qn1jYRHgoKZ2HUdmroKZSg5tmhP D+WtNH8WO1I3No457RQpVP0M68cs/D92oo1Yk6dp1/EhQs6dHMRQbH9ZoBwk4wnB IcZUr6j4aPM3e4PCRZd1dAkq+BgozHdRQP5i6RFV9kJFrLja3VsdAYbfmCqt5uFk FZrewQdF0j1I9LadZ4scUWi0Bk3dzDsr4SBvzef08U2RvJi77bvB1NgVf2Z3Mycg w1Ilr3FxvYn4bL6SD1/7xx8/AOZwk+Joy5aBHI1nmPQN8anLTf4KBcXq8OBmq8ba xrznvnQhfBVvoznxHQPCYaNU9KwuWE69AM6I83fiDJKpJMyYpyL4lsViOuwg77T3 hrFuTF5l0/YF4UpmOv6FnrFbqoOrYJJv8av49GD2bw37n+7IkwavK7lzMTLqUFbb GJblWMsVfLMcJMtN4+O4hPdETXnLzr+1QOnLOe2Xt1W4SMiVnzK5ubtixrq5eVz/ mzyFjJs07tK5NcNAYq2mFs45bz5R8HhYBuxewKy8i2C0bEy1U4bXrXGp71Bfcieu Wl/BhRO3eDIvYyNZok9VRgyw1JRVzUeo3dJU8BBP2tbmUYxJq88E0gqX3Z26jiyf wa0= Received: from numenor.groumpf.org ([127.0.0.1]) by numenor.groumpf.org (ns3.groumpf.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id GlGg3ENIJMY1 for ; Sat, 27 Jul 2024 08:55:12 +0200 (CEST) Received: from [192.168.100.30] (imladris.groumpf.org [192.168.100.30]) by numenor.groumpf.org (Postfix) with ESMTPSA id 777701CD93A for ; Sat, 27 Jul 2024 08:55:12 +0200 (CEST) Message-ID: Date: Sat, 27 Jul 2024 08:55:12 +0200 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Beta Subject: [FIXED] Re: Certbot crash From: Xavier Humbert To: FreeBSD Ports ML References: <989e4ee2-629e-4616-a092-d183613c6f25@groumpf.org> <8df15fce-14fe-45bf-8662-708463f77fae@groumpf.org> Content-Language: fr, en-US In-Reply-To: <8df15fce-14fe-45bf-8662-708463f77fae@groumpf.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.39 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; R_SPF_ALLOW(-0.20)[+ip4:176.31.180.205:c]; R_DKIM_ALLOW(-0.20)[groumpf.org:s=dkim]; MIME_GOOD(-0.10)[text/plain]; RCVD_NO_TLS_LAST(0.10)[]; XM_UA_NO_VERSION(0.01)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; ASN(0.00)[asn:16276, ipnet:176.31.0.0/16, country:FR]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DMARC_NA(0.00)[groumpf.org]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[groumpf.org:+] X-Rspamd-Queue-Id: 4WWFkK0mXRz4lTB Le 27/07/2024 08:29, Xavier Humbert a écrit : > Le 27/07/2024 08:24, Xavier Humbert a écrit : >> Hi, >> >> I'm always in trouble with my python applications, since I upgraded >> to python311. >> >> certbot crashes : >> >> [root@numenor ~]# certbot certificates >> Objects/typeobject.c:4083: type_dealloc: Assertion "type->tp_flags & >> (1UL << 9)" failed >> Enable tracemalloc to get the memory block allocation traceback >> >> object address  : 0x823702688 >> object refcount : 0 >> object type     : 0x8237251a8 >> object type name: type >> object repr     : >> >> Fatal Python error: _PyObject_AssertFailed: _PyObject_AssertFailed >> Python runtime state: initialized >> >> Current thread 0x0000000827806000 (most recent call first): >>   File "", line 241 in >> _call_with_frames_removed >>   File "", line 1233 in >> create_module >>   File "", line 573 in module_from_spec >>   File "", line 676 in _load_unlocked >>   File "", line 1147 in >> _find_and_load_unlocked >>   File "", line 1176 in _find_and_load >>   File >> "/usr/local/lib/python3.11/site-packages/cryptography/exceptions.py", >> line 9 in >>   File "", line 241 in >> _call_with_frames_removed >>   File "", line 940 in exec_module >>   File "", line 690 in _load_unlocked >>   File "", line 1147 in >> _find_and_load_unlocked >>   File "", line 1176 in _find_and_load >>   File >> "/usr/local/lib/python3.11/site-packages/cryptography/hazmat/bindings/openssl/binding.py", >> line 15 in >>   File "", line 241 in >> _call_with_frames_removed >>   File "", line 940 in exec_module >>   File "", line 690 in _load_unlocked >>   File "", line 1147 in >> _find_and_load_unlocked >>   File "", line 1176 in _find_and_load >>   File "/usr/local/lib/python3.11/site-packages/OpenSSL/_util.py", >> line 6 in >>   File "", line 241 in >> _call_with_frames_removed >>   File "", line 940 in exec_module >>   File "", line 690 in _load_unlocked >>   File "", line 1147 in >> _find_and_load_unlocked >>   File "", line 1176 in _find_and_load >>   File "/usr/local/lib/python3.11/site-packages/OpenSSL/SSL.py", line >> 10 in >>   File "", line 241 in >> _call_with_frames_removed >>   File "", line 940 in exec_module >>   File "", line 690 in _load_unlocked >>   File "", line 1147 in >> _find_and_load_unlocked >>   File "", line 1176 in _find_and_load >>   File "", line 241 in >> _call_with_frames_removed >>   File "", line 1232 in _handle_fromlist >>   File "/usr/local/lib/python3.11/site-packages/OpenSSL/__init__.py", >> line 8 in >>   File "", line 241 in >> _call_with_frames_removed >>   File "", line 940 in exec_module >>   File "", line 690 in _load_unlocked >>   File "", line 1147 in >> _find_and_load_unlocked >>   File "", line 1176 in _find_and_load >>   File "/usr/local/lib/python3.11/site-packages/josepy/json_util.py", >> line 24 in >>   File "", line 241 in >> _call_with_frames_removed >>   File "", line 940 in exec_module >>   File "", line 690 in _load_unlocked >>   File "", line 1147 in >> _find_and_load_unlocked >>   File "", line 1176 in _find_and_load >>   File "/usr/local/lib/python3.11/site-packages/josepy/__init__.py", >> line 40 in >>   File "", line 241 in >> _call_with_frames_removed >>   File "", line 940 in exec_module >>   File "", line 690 in _load_unlocked >>   File "", line 1147 in >> _find_and_load_unlocked >>   File "", line 1176 in _find_and_load >>   File >> "/usr/local/lib/python3.11/site-packages/certbot/_internal/main.py", >> line 21 in >>   File "", line 241 in >> _call_with_frames_removed >>   File "", line 940 in exec_module >>   File "", line 690 in _load_unlocked >>   File "", line 1147 in >> _find_and_load_unlocked >>   File "", line 1176 in _find_and_load >>   File "", line 241 in >> _call_with_frames_removed >>   File "", line 1232 in _handle_fromlist >>   File "/usr/local/lib/python3.11/site-packages/certbot/main.py", >> line 6 in >>   File "", line 241 in >> _call_with_frames_removed >>   File "", line 940 in exec_module >>   File "", line 690 in _load_unlocked >>   File "", line 1147 in >> _find_and_load_unlocked >>   File "", line 1176 in _find_and_load >>   File "/usr/local/bin/certbot", line 5 in >> >> Extension modules: _cffi_backend (total: 1) >> Abort trap (core dumped) >> >> Any clue ? >> >> Thanks, and regards, >> >> Xavier >> > In fact all python applications (duplicity for example)  have the same > problem. > > This night, I rebuilded python and all the py311\* stuff > > Regards, > > Xavier > By digging into the error messages, I had to reinstall devel/py-cffi and security/py-cryptography and all errors vanished. I still don't know what happened... Xavier -- Xavier HUMBERT - Unix/Win/MacOSX Sysadmin/Network Engineer https://www.amdh.fr