Open
Description
Buildbot https://buildbot.python.org/all/#/builders/435 has been failing test_gdb with errors like these:
======================================================================
FAIL: test_pycfunction (test.test_gdb.PyBtTests.test_pycfunction) [_testcapi.meth_varargs]
Verify that "py-bt" displays invocations of PyCFunction instances
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang/build/Lib/test/test_gdb.py", line 944, in test_pycfunction
self.assertIn(f'<built-in method {func_name}', gdb_output)
AssertionError: '<built-in method meth_varargs' not found in 'Breakpoint 1 (meth_varargs) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n\nBreakpoint 1, meth_varargs (self=<module at remote 0x7fffea347230>, args=()) at ./Modules/_testcapimodule.c:2307\n2307\t return Py_BuildValue("NO", _null_to_none(self), args);\n#0 meth_varargs (self=<module at remote 0x7fffea347230>, args=()) at ./Modules/_testcapimodule.c:2307\n#1 PyModuleDef_Type ()\nBacktrace stopped: frame did not save the PC\nUnable to locate python frame\n'
It last succeeded on commit 373bca0 and first failed on fcd5fb4, suggesting that the culprit is one of these commits:
- fcd5fb4 Comprehension inlining: Bug if comprehension contains a lambda #104357: fix inlined comprehensions that close over iteration var (gh-104357: fix inlined comprehensions that close over iteration var #104368)
- 94f30c7 [pathlib] Option so that OSError does not block glob in pathlib library #90208: Suppress OSError exceptions from
pathlib.Path.glob()
(GH-90208: Suppress OSError exceptions frompathlib.Path.glob()
#104141)
Neither looks likely to affect test_gdb though.