Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

3.13.0rc1 regression in PyEval_GetLocals():SystemError: Objects/dictobject.c:3774: bad argument to internal function #122728

Closed
Labels
3.13bugs and security fixes3.14bugs and security fixestype-crashA hard crash of the interpreter, possibly with a core dump
@mgorny

Description

@mgorny

Crash report

What happened?

After upgrading to CPython 3.13.0rc1, thegpgme test suite started failing. The tests fail with errors resembling:

Traceback (most recent call last):  File"/tmp/gpgme-1.23.2/lang/python/tests/./final.py", line24, in<module>import support  File"/tmp/gpgme-1.23.2/lang/python/tests/support.py", line60, in<module>    assert_gpg_version((2,1,12))~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^  File"/tmp/gpgme-1.23.2/lang/python/tests/support.py", line35, inassert_gpg_version    c.engine_info.version).group(0)^^^^^^^^^^^^^  File"/tmp/gpgme-1.23.2/lang/python/python3.13-gpg/lib.linux-x86_64-cpython-313/gpg/core.py", line1352, inengine_info    infos= [ifor iinself.get_engine_info()if i.protocol== p]~~~~~~~~~~~~~~~~~~~~^^  File"/tmp/gpgme-1.23.2/lang/python/python3.13-gpg/lib.linux-x86_64-cpython-313/gpg/core.py", line1366, inget_engine_inforeturn gpgme.gpgme_ctx_get_engine_info(self.wrapped)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^  File"/tmp/gpgme-1.23.2/lang/python/python3.13-gpg/lib.linux-x86_64-cpython-313/gpg/gpgme.py", line880, ingpgme_ctx_get_engine_inforeturn _gpgme.gpgme_ctx_get_engine_info(ctx)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^  File"<frozen importlib._bootstrap>", line649, inparentSystemError:Objects/dictobject.c:3774: bad argument to internal functionFAIL:final.py

I've been able to bisect it to233ed46 (#121869). However, on this commit I'm getting also a bunch ofpython3.13: Objects/typeobject.c:5257: _PyType_LookupRef: Assertion '!PyErr_Occurred()' failed. — they are fixed in some subsequent commit. But thefinal.py failure occurs from that commit to tip of 3.13 (fe65a8b).

Now, gpgme's build system is horrible. To reproduce, I've done the following:

  1. Built CPython with--with-assertions.
  2. Createdln -s python python3.13 symlink in the build directory.
  3. Installed the gpgme C library 1.23.2 using the system package manager.
  4. Then:
wget https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-1.23.2.tar.bz2tar -xf gpgme-1.23.2.tar.bz2cd gpgme-1.23.2export PATH=${CPYTHON_BUILD_DIRECTORY}:$PATH./configure  # will probably need some -dev packagescd lang/pythonmake PYTHONS=python3.13 check

Note that in order to rebuild, you need torm -rf python3.13-gpg.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Output from running 'python -VV' on the command line:

Python 3.13.0rc1 (main, Aug 2 2024, 18:56:30) [GCC 14.2.0]

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixes3.14bugs and security fixestype-crashA hard crash of the interpreter, possibly with a core dump

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp