Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-87695: Fix OSError from pathlib.Path.glob() #104292

Merged
merged 2 commits into from
May 10, 2023

Conversation

barneygale
Copy link
Contributor

@barneygale barneygale commented May 8, 2023

Fix issue where pathlib.Path.glob() raised OSError when it encountered a symlink to an overly long path.

Fix issue where `pathlib.Path.glob()` raised `OSError` when it encountered
a symlink to an overly long path.
@barneygale
Copy link
Contributor Author

Thank you for the review Jelle!

@barneygale barneygale enabled auto-merge (squash) May 10, 2023 16:45
@barneygale barneygale merged commit a33ce66 into python:main May 10, 2023
@miss-islington
Copy link
Contributor

Thanks @barneygale for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-104362 is a backport of this pull request to the 3.11 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label May 10, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 10, 2023
Fix issue where `pathlib.Path.glob()` raised `OSError` when it encountered
a symlink to an overly long path.
(cherry picked from commit a33ce66)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
@AlexWaygood AlexWaygood added the needs backport to 3.11 only security fixes label May 10, 2023
@miss-islington
Copy link
Contributor

Thanks @barneygale for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 10, 2023
Fix issue where `pathlib.Path.glob()` raised `OSError` when it encountered
a symlink to an overly long path.
(cherry picked from commit a33ce66)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
@AlexWaygood AlexWaygood removed the needs backport to 3.11 only security fixes label May 10, 2023
carljm added a commit to carljm/cpython that referenced this pull request May 10, 2023
* main:
  pythonGH-102181: Improve specialization stats for SEND (pythonGH-102182)
  pythongh-103000: Optimise `dataclasses.asdict` for the common case (python#104364)
  pythongh-103538: Remove unused TK_AQUA code (pythonGH-103539)
  pythonGH-87695: Fix OSError from `pathlib.Path.glob()` (pythonGH-104292)
  pythongh-104263: Rely on Py_NAN and introduce Py_INFINITY (pythonGH-104202)
  pythongh-104010: Separate and improve docs for `typing.get_origin` and `typing.get_args` (python#104013)
  pythongh-101819: Adapt _io._BufferedIOBase_Type methods to Argument Clinic (python#104355)
  pythongh-103960: Dark mode: invert image brightness (python#103983)
  pythongh-104252: Immortalize Py_EMPTY_KEYS (pythongh-104253)
  pythongh-101819: Clean up _io windows console io after pythongh-104197 (python#104354)
  pythongh-101819: Harden _io init (python#104352)
  pythongh-103247: clear the module cache in a test in test_importlib/extensions/test_loader.py (pythonGH-104226)
  pythongh-103848: Adds checks to ensure that bracketed hosts found by urlsplit are of IPv6 or IPvFuture format (python#103849)
  pythongh-74895: adjust tests to work on Solaris (python#104326)
  pythongh-101819: Refactor _io in preparation for module isolation (python#104334)
  pythongh-90953: Don't use deprecated AST nodes in clinic.py (python#104322)
  pythongh-102327: Extend docs for "url" and "headers" parameters to HTTPConnection.request()
  pythongh-104328: Fix typo in ``typing.Generic`` multiple inheritance error message (python#104335)
barneygale added a commit that referenced this pull request May 10, 2023
…H-104362)

Fix issue where `pathlib.Path.glob()` raised `OSError` when it encountered
a symlink to an overly long path.
(cherry picked from commit a33ce66)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot PPC64LE Fedora Stable Clang 3.11 has failed when building commit 846a23d.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/967/builds/679) and take a look at the build logs.
  4. Check if the failure is related to this commit (846a23d) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/967/builds/679

Failed tests:

  • test_gdb

Failed subtests:

  • test_pycfunction - test.test_gdb.PyBtTests.test_pycfunction

Summary of the results of the build (if available):

== Tests result: FAILURE then FAILURE ==

420 tests OK.

10 slowest tests:

  • test_concurrent_futures: 2 min 49 sec
  • test_multiprocessing_spawn: 2 min 18 sec
  • test_asyncio: 1 min 54 sec
  • test_capi: 1 min 52 sec
  • test_tokenize: 1 min 42 sec
  • test_multiprocessing_forkserver: 1 min 33 sec
  • test_lib2to3: 1 min 21 sec
  • test_unparse: 1 min 14 sec
  • test_gdb: 1 min 11 sec
  • test_multiprocessing_fork: 1 min 8 sec

1 test failed:
test_gdb

13 tests skipped:
test_devpoll test_ioctl test_kqueue test_launcher test_msilib
test_startfile test_tix test_tk test_ttk_guionly test_winconsoleio
test_winreg test_winsound test_zipfile64

1 re-run test:
test_gdb

Total duration: 6 min 10 sec

Click to see traceback logs
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.11.cstratak-fedora-stable-ppc64le.clang/build/Lib/multiprocessing/resource_tracker.py", line 209, in main
    cache[rtype].remove(name)
KeyError: '/psm_569d8e0d'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.11.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_fastcall_keywords' not found in 'Breakpoint 1 (meth_fastcall_keywords) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n\nBreakpoint 1, meth_fastcall_keywords (self=<type at remote 0x7fffea301e50>, args=, nargs=0, kwargs=0x0) at /home/buildbot/buildarea/3.11.cstratak-fedora-stable-ppc64le.clang/build/Modules/_testcapimodule.c:5684\n5684\t    PyObject *pyargs = _fastcall_to_tuple(args, nargs);\n#0  meth_fastcall_keywords (self=<type at remote 0x7fffea301e50>, args=, nargs=0, kwargs=0x0) at /home/buildbot/buildarea/3.11.cstratak-fedora-stable-ppc64le.clang/build/Modules/_testcapimodule.c:5684\n#1  ?? ()\n#2  _PyObject_VectorcallTstate (tstate=, callable=0x0, args=, nargsf=9223372036854775808, kwnames=<unknown at remote 0x105dfbc0>) at ./Include/internal/pycore_call.h:92\n#3  _PyEval_EvalFrameDefault (tstate=<optimized out>, frame=, throwflag=<optimized out>) at ./Include/object.h:523\n#4  _PyEval_EvalFrame (tstate=<_PyRuntime+166328>, frame=, throwflag=0) at ./Include/internal/pycore_ceval.h:73\n#5  _PyEval_Vector (tstate=<_PyRuntime+166328>, func=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=<optimized out>, kwnames=<optimized out>) at Python/ceval.c:6438\n#6  PyEval_EvalCode (co=<optimized out>, globals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x10672830>, \'__spec__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a870>, \'foo\': <function at remote 0x7fffea32fee0>, \'bar\': <function at remote 0x7fffea350b50>}, locals=<optimized out>) at Python/ceval.c:1154\n#7  run_eval_code_obj (tstate=<_PyRuntime+166328>, co=, globals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x10672830>, \'__spec__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a870>, \'foo\': <function at remote 0x7fffea32fee0>, \'bar\': <function at remote 0x7fffea350b50>}, locals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x10672830>, \'__spec__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a870>, \'foo\': <function at remote 0x7fffea32fee0>, \'bar\': <function at remote 0x7fffea350b50>}) at Python/pythonrun.c:1714\n#8  run_mod (mod=<optimized out>, filename=<optimized out>, globals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x10672830>, \'__spec__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a870>, \'foo\': <function at remote 0x7fffea32fee0>, \'bar\': <function at remote 0x7fffea350b50>}, locals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x10672830>, \'__spec__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a870>, \'foo\': <function at remote 0x7fffea32fee0>, \'bar\': <function at remote 0x7fffea350b50>}, flags=<optimized out>, arena=<optimized out>) at Python/pythonrun.c:1735\n#9  PyRun_StringFlags (str="\\nimport _testcapi\\ndef foo():\\n    _testcapi.MethClass.meth_fastcall_keywo
c__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a870>, \'foo\': <function at remote 0x7fffea32fee0>, \'bar\': <function at remote 0x7fffea350b50>}, flags=) at Python/pythonrun.c:1605\n#10 PyRun_SimpleStringFlags (command="\\nimport _testcapi\\ndef foo():\\n    _testcapi.MethClass.meth_fastcall_keywords()\\ndef bar():\\n    foo()\\nbar()\\n\\n", flags=) at Python/pythonrun.c:487\n#11 pymain_run_command (command=<optimized out>) at Modules/main.c:255\n#12 pymain_run_python (exitcode=<optimized out>) at Modules/main.c:592\n#13 Py_RunMain () at Modules/main.c:680\n#14 pymain_main (args=) at Modules/main.c:710\n#15 Py_BytesMain (argc=<optimized out>, argv=<optimized out>) at Modules/main.c:734\n#16 main (argc=<optimized out>, argv=<optimized out>) at ./Programs/python.c:15\nTraceback (most recent call first):\n  File "<string>", line 4, in foo\n  File "<string>", line 6, in bar\n  File "<string>", line 7, in <module>\n'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.11.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_fastcall_keywords' not found in 'Breakpoint 1 (meth_fastcall_keywords) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n\nBreakpoint 1, meth_fastcall_keywords (self=<type at remote 0x7fffea301e50>, args=, nargs=0, kwargs=0x0) at /home/buildbot/buildarea/3.11.cstratak-fedora-stable-ppc64le.clang/build/Modules/_testcapimodule.c:5684\n5684\t    PyObject *pyargs = _fastcall_to_tuple(args, nargs);\n#0  meth_fastcall_keywords (self=<type at remote 0x7fffea301e50>, args=, nargs=0, kwargs=0x0) at /home/buildbot/buildarea/3.11.cstratak-fedora-stable-ppc64le.clang/build/Modules/_testcapimodule.c:5684\n#1  ?? ()\n#2  _PyObject_VectorcallTstate (tstate=, callable=0x0, args=, nargsf=9223372036854775808, kwnames=<unknown at remote 0x105dfbc0>) at ./Include/internal/pycore_call.h:92\n#3  _PyEval_EvalFrameDefault (tstate=<optimized out>, frame=, throwflag=<optimized out>) at ./Include/object.h:523\n#4  _PyEval_EvalFrame (tstate=<_PyRuntime+166328>, frame=, throwflag=0) at ./Include/internal/pycore_ceval.h:73\n#5  _PyEval_Vector (tstate=<_PyRuntime+166328>, func=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=<optimized out>, kwnames=<optimized out>) at Python/ceval.c:6438\n#6  PyEval_EvalCode (co=<optimized out>, globals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x10672a20>, \'__spec__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a870>, \'foo\': <function at remote 0x7fffea32fee0>, \'bar\': <function at remote 0x7fffea350b50>}, locals=<optimized out>) at Python/ceval.c:1154\n#7  run_eval_code_obj (tstate=<_PyRuntime+166328>, co=, globals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x10672a20>, \'__spec__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a870>, \'foo\': <function at remote 0x7fffea32fee0>, \'bar\': <function at remote 0x7fffea350b50>}, locals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x10672a20>, \'__spec__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a870>, \'foo\': <function at remote 0x7fffea32fee0>, \'bar\': <function at remote 0x7fffea350b50>}) at Python/pythonrun.c:1714\n#8  run_mod (mod=<optimized out>, filename=<optimized out>, globals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x10672a20>, \'__spec__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a870>, \'foo\': <function at remote 0x7fffea32fee0>, \'bar\': <function at remote 0x7fffea350b50>}, locals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x10672a20>, \'__spec__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a870>, \'foo\': <function at remote 0x7fffea32fee0>, \'bar\': <function at remote 0x7fffea350b50>}, flags=<optimized out>, arena=<optimized out>) at Python/pythonrun.c:1735\n#9  PyRun_StringFlags (str="\\nimport _testcapi\\ndef foo():\\n    _testcapi.MethClass().meth_fastcall_keywords()\\ndef bar():\\n    foo()\\nbar()\\n\\n", start=257, globals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x10672a20>, \'__spec__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a870>, \'foo\': <function at remote 0x7fffea32fee0>, \'bar\': <function at remote 0x7fffea350b50>}, locals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x10672a20>, \'_
spec__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a870>, \'foo\': <function at remote 0x7fffea32fee0>, \'bar\': <function at remote 0x7fffea350b50>}, flags=) at Python/pythonrun.c:1605\n#10 PyRun_SimpleStringFlags (command="\\nimport _testcapi\\ndef foo():\\n    _testcapi.MethClass().meth_fastcall_keywords()\\ndef bar():\\n    foo()\\nbar()\\n\\n", flags=) at Python/pythonrun.c:487\n#11 pymain_run_command (command=<optimized out>) at Modules/main.c:255\n#12 pymain_run_python (exitcode=<optimized out>) at Modules/main.c:592\n#13 Py_RunMain () at Modules/main.c:680\n#14 pymain_main (args=) at Modules/main.c:710\n#15 Py_BytesMain (argc=<optimized out>, argv=<optimized out>) at Modules/main.c:734\n#16 main (argc=<optimized out>, argv=<optimized out>) at ./Programs/python.c:15\nTraceback (most recent call first):\n  File "<string>", line 4, in foo\n  File "<string>", line 6, in bar\n  File "<string>", line 7, in <module>\n'


Traceback (most recent call first):\n  File "<string>", line 4, in foo\n  File "<string>", line 6, in bar\n  File "<string>", line 7, in <module>\n'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.11.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_fastcall_keywords' not found in 'Breakpoint 1 (meth_fastcall_keywords) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n\nBreakpoint 1, meth_fastcall_keywords (self=<type at remote 0x7fffea301e50>, args=, nargs=0, kwargs=0x0) at /home/buildbot/buildarea/3.11.cstratak-fedora-stable-ppc64le.clang/build/Modules/_testcapimodule.c:5684\n5684\t    PyObject *pyargs = _fastcall_to_tuple(args, nargs);\n#0  meth_fastcall_keywords (self=<type at remote 0x7fffea301e50>, args=, nargs=0, kwargs=0x0) at /home/buildbot/buildarea/3.11.cstratak-fedora-stable-ppc64le.clang/build/Modules/_testcapimodule.c:5684\n#1  ?? ()\n#2  _PyObject_VectorcallTstate (tstate=, callable=0x0, args=, nargsf=9223372036854775808, kwnames=<unknown at remote 0x105dfbc0>) at ./Include/internal/pycore_call.h:92\n#3  _PyEval_EvalFrameDefault (tstate=<optimized out>, frame=, throwflag=<optimized out>) at ./Include/object.h:523\n#4  _PyEval_EvalFrame (tstate=<_PyRuntime+166328>, frame=, throwflag=0) at ./Include/internal/pycore_ceval.h:73\n#5  _PyEval_Vector (tstate=<_PyRuntime+166328>, func=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=<optimized out>, kwnames=<optimized out>) at Python/ceval.c:6438\n#6  PyEval_EvalCode (co=<optimized out>, globals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x10672a20>, \'__spec__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a870>, \'foo\': <function at remote 0x7fffea32fee0>, \'bar\': <function at remote 0x7fffea350b50>}, locals=<optimized out>) at Python/ceval.c:1154\n#7  run_eval_code_obj (tstate=<_PyRuntime+166328>, co=, globals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x10672a20>, \'__spec__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a870>, \'foo\': <function at remote 0x7fffea32fee0>, \'bar\': <function at remote 0x7fffea350b50>}, locals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x10672a20>, \'__spec__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a870>, \'foo\': <function at remote 0x7fffea32fee0>, \'bar\': <function at re
spec__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a870>, \'foo\': <function at remote 0x7fffea32fee0>, \'bar\': <function at remote 0x7fffea350b50>}, flags=) at Python/pythonrun.c:1605\n#10 PyRun_SimpleStringFlags (command="\\nimport _testcapi\\ndef foo():\\n    _testcapi.MethClass().meth_fastcall_keywords()\\ndef bar():\\n    foo()\\nbar()\\n\\n", flags=) at Python/pythonrun.c:487\n#11 pymain_run_command (command=<optimized out>) at Modules/main.c:255\n#12 pymain_run_python (exitcode=<optimized out>) at Modules/main.c:592\n#13 Py_RunMain () at Modules/main.c:680\n#14 pymain_main (args=) at Modules/main.c:710\n#15 Py_BytesMain (argc=<optimized out>, argv=<optimized out>) at Modules/main.c:734\n#16 main (argc=<optimized out>, argv=<optimized out>) at ./Programs/python.c:15\nTraceback (most recent call first):\n  File "<string>", line 4, in foo\n  File "<string>", line 6, in bar\n  File "<string>", line 7, in <module>\n'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.11.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)


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.11.cstratak-fedora-stable-ppc64le.clang/build/Lib/multiprocessing/resource_tracker.py", line 209, in main
    cache[rtype].remove(name)
KeyError: '/psm_c3407639'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.11.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_fastcall_keywords' not found in 'Breakpoint 1 (meth_fastcall_keywords) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n\nBreakpoint 1, meth_fastcall_keywords (self=<module at remote 0x7fffea34a750>, args=, nargs=0, kwargs=0x0) at /home/buildbot/buildarea/3.11.cstratak-fedora-stable-ppc64le.clang/build/Modules/_testcapimodule.c:5684\n5684\t    PyObject *pyargs = _fastcall_to_tuple(args, nargs);\n#0  meth_fastcall_keywords (self=<module at remote 0x7fffea34a750>, args=, nargs=0, kwargs=0x0) at /home/buildbot/buildarea/3.11.cstratak-fedora-stable-ppc64le.clang/build/Modules/_testcapimodule.c:5684\n#1  ?? ()\n#2  _PyObject_VectorcallTstate (tstate=, callable=0x0, args=, nargsf=9223372036854775808, kwnames=<unknown at remote 0x105dfbc0>) at ./Include/internal/pycore_call.h:92\n#3  _PyEval_EvalFrameDefault (tstate=<optimized out>, frame=, throwflag=<optimized out>) at ./Include/object.h:523\n#4  _PyEval_EvalFrame (tstate=<_PyRuntime+166328>, frame=, throwflag=0) at ./Include/internal/pycore_ceval.h:73\n#5  _PyEval_Vector (tstate=<_PyRuntime+166328>, func=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=<optimized out>, kwnames=<optimized out>) at Python/ceval.c:6438\n#6  PyEval_EvalCode (co=<optimized out>, globals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x106728d0>, \'__spec__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a750>, \'foo\': <function at remote 0x7fffea32f330>, \'bar\': <function at remote 0x7fffea350b50>}, locals=<optimized out>) at Python/ceval.c:1154\n#7  run_eval_code_obj (tstate=<_PyRuntime+166328>, co=, globals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x106728d0>, \'__spec__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a750>, \'foo\': <function at remote 0x7fffea32f330>, \'bar\': <function at remote 0x7fffea350b50>}, locals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x106728d0>, \'__spec__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a750>, \'foo\': <function at remote 0x7fffea32f330>, \'bar\': <function at remote 0x7fffea350b50>}) at Python/pythonrun.c:1714\n#8  run_mod (mod=<optimized out>, filename=<optimized out>, globals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x106728d0>, \'__spec__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a750>, \'foo\': <function at remote 0x7fffea32f330>, \'bar\': <function at remote 0x7fffea350b50>}, locals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x106728d0>, \'__spec__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a750>, \'foo\': <function at remote 0x7fffea32f330>, \'bar\': <function at remote 0x7fffea350b50>}, flags=<optimized out>, arena=<optimized out>) at Python/pythonrun.c:1735\n#9  PyRun_StringFlags (str="\\nimport _testcapi\\ndef foo():\\n    _testcapi.meth_fastcall_keywords()\\ndef bar():\\n    foo()\\nbar()\\n\\n", start=257, globals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x106728d0>, \'__spec__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a750>, \'foo\': <function at remote 0x7fffea32f330>, \'bar\': <function at remote 0x7fffea350b50>}, locals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x106728d0>, \'__spec__\
: None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a750>, \'foo\': <function at remote 0x7fffea32f330>, \'bar\': <function at remote 0x7fffea350b50>}, flags=) at Python/pythonrun.c:1605\n#10 PyRun_SimpleStringFlags (command="\\nimport _testcapi\\ndef foo():\\n    _testcapi.meth_fastcall_keywords()\\ndef bar():\\n    foo()\\nbar()\\n\\n", flags=) at Python/pythonrun.c:487\n#11 pymain_run_command (command=<optimized out>) at Modules/main.c:255\n#12 pymain_run_python (exitcode=<optimized out>) at Modules/main.c:592\n#13 Py_RunMain () at Modules/main.c:680\n#14 pymain_main (args=) at Modules/main.c:710\n#15 Py_BytesMain (argc=<optimized out>, argv=<optimized out>) at Modules/main.c:734\n#16 main (argc=<optimized out>, argv=<optimized out>) at ./Programs/python.c:15\nTraceback (most recent call first):\n  File "<string>", line 4, in foo\n  File "<string>", line 6, in bar\n  File "<string>", line 7, in <module>\n'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.11.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_fastcall_keywords' not found in 'Breakpoint 1 (meth_fastcall_keywords) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n\nBreakpoint 1, meth_fastcall_keywords (self=<module at remote 0x7fffea34a750>, args=, nargs=0, kwargs=0x0) at /home/buildbot/buildarea/3.11.cstratak-fedora-stable-ppc64le.clang/build/Modules/_testcapimodule.c:5684\n5684\t    PyObject *pyargs = _fastcall_to_tuple(args, nargs);\n#0  meth_fastcall_keywords (self=<module at remote 0x7fffea34a750>, args=, nargs=0, kwargs=0x0) at /home/buildbot/buildarea/3.11.cstratak-fedora-stable-ppc64le.clang/build/Modules/_testcapimodule.c:5684\n#1  ?? ()\n#2  _PyObject_VectorcallTstate (tstate=, callable=0x0, args=, nargsf=9223372036854775808, kwnames=<unknown at remote 0x105dfbc0>) at ./Include/internal/pycore_call.h:92\n#3  _PyEval_EvalFrameDefault (tstate=<optimized out>, frame=, throwflag=<optimized out>) at ./Include/object.h:523\n#4  _PyEval_EvalFrame (tstate=<_PyRuntime+166328>, frame=, throwflag=0) at ./Include/internal/pycore_ceval.h:73\n#5  _PyEval_Vector (tstate=<_PyRuntime+166328>, func=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=<optimized out>, kwnames=<optimized out>) at Python/ceval.c:6438\n#6  PyEval_EvalCode (co=<optimized out>, globals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x106728d0>, \'__spec__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a750>, \'foo\': <function at remote 0x7fffea32f330>, \'bar\': <function at remote 0x7fffea350b50>}, locals=<optimized out>) at Python/ceval.c:1154\n#7  run_eval_code_obj (tstate=<_PyRuntime+166328>, co=, globals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x106728d0>, \'__spec__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a750>, \'foo\': <function at remote 0x7fffea32f330>, \'bar\': <function at remote 0x7fffea350b50>}, locals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x106728d0>, \'__spec__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a750>, \'foo\': <function at remote 0x7fffea32f330>, \'bar\': <function at remote 0x7fffea350b50>}) at Python/pythonrun.c:1714\n#8  run_mod (mod=<optimized out>, filename=<optimized out>, globals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x106728d0>, \'__spec__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a750>, \'foo\': <function at remote 0x7fffea32f330>, \'bar\': <function at remote 0x7fffea350b50>}, locals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x106728d0>, \'__spec__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a750>, \'foo\': <function at remote 0x7fffea32f330>, \'bar\': <function at remote 0x7fffea350b50>}, flags=<optimized out>, arena=<optimized out>) at Python/pythonrun.c:1735\n#9  PyRun_StringFlags (str="\\nimport _testcapi\\ndef foo():\\n    _testcapi.meth_fastcall_keywords()\\ndef bar(
: None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a750>, \'foo\': <function at remote 0x7fffea32f330>, \'bar\': <function at remote 0x7fffea350b50>}, flags=) at Python/pythonrun.c:1605\n#10 PyRun_SimpleStringFlags (command="\\nimport _testcapi\\ndef foo():\\n    _testcapi.meth_fastcall_keywords()\\ndef bar():\\n    foo()\\nbar()\\n\\n", flags=) at Python/pythonrun.c:487\n#11 pymain_run_command (command=<optimized out>) at Modules/main.c:255\n#12 pymain_run_python (exitcode=<optimized out>) at Modules/main.c:592\n#13 Py_RunMain () at Modules/main.c:680\n#14 pymain_main (args=) at Modules/main.c:710\n#15 Py_BytesMain (argc=<optimized out>, argv=<optimized out>) at Modules/main.c:734\n#16 main (argc=<optimized out>, argv=<optimized out>) at ./Programs/python.c:15\nTraceback (most recent call first):\n  File "<string>", line 4, in foo\n  File "<string>", line 6, in bar\n  File "<string>", line 7, in <module>\n'


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.11.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_fastcall_keywords' not found in 'Breakpoint 1 (meth_fastcall_keywords) pending.\n[Thread debugging using libthread_db enabled]\nUsing host libthread_db library "/lib64/libthread_db.so.1".\n\nBreakpoint 1, meth_fastcall_keywords (self=0x0, args=, nargs=0, kwargs=0x0) at /home/buildbot/buildarea/3.11.cstratak-fedora-stable-ppc64le.clang/build/Modules/_testcapimodule.c:5684\n5684\t    PyObject *pyargs = _fastcall_to_tuple(args, nargs);\n#0  meth_fastcall_keywords (self=0x0, args=, nargs=0, kwargs=0x0) at /home/buildbot/buildarea/3.11.cstratak-fedora-stable-ppc64le.clang/build/Modules/_testcapimodule.c:5684\n#1  ?? ()\n#2  _PyObject_VectorcallTstate (tstate=, callable=0x0, args=, nargsf=9223372036854775808, kwnames=<unknown at remote 0x105dfbc0>) at ./Include/internal/pycore_call.h:92\n#3  _PyEval_EvalFrameDefault (tstate=<optimized out>, frame=, throwflag=<optimized out>) at ./Include/object.h:523\n#4  _PyEval_EvalFrame (tstate=<_PyRuntime+166328>, frame=, throwflag=0) at ./Include/internal/pycore_ceval.h:73\n#5  _PyEval_Vector (tstate=<_PyRuntime+166328>, func=<optimized out>, locals=<optimized out>, args=<optimized out>, argcount=<optimized out>, kwnames=<optimized out>) at Python/ceval.c:6438\n#6  PyEval_EvalCode (co=<optimized out>, globals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x10672890>, \'__spec__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a870>, \'foo\': <function at remote 0x7fffea32fee0>, \'bar\': <function at remote 0x7fffea350b50>}, locals=<optimized out>) at Python/ceval.c:1154\n#7  run_eval_code_obj (tstate=<_PyRuntime+166328>, co=, globals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x10672890>, \'__spec__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a870>, \'foo\': <function at remote 0x7fffea32fee0>, \'bar\': <function at remote 0x7fffea350b50>}, locals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x10672890>, \'__spec__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a870>, \'foo\': <function at remote 0x7fffea32fee0>, \'bar\': <function at remote 0x7fffea350b50>}) at Python/pythonrun.c:1714\n#8  run_mod (mod=<optimized out>, filename=<optimized out>, globals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x10672890>, \'__spec__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a870>, \'foo\': <function at remote 0x7fffea32fee0>, \'bar\': <function at remote 0x7fffea350b50>}, locals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x10672890>, \'__spec__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a870>, \'foo\': <function at remote 0x7fffea32fee0>, \'bar\': <function at remote 0x7fffea350b50>}, flags=<optimized out>, arena=<optimized out>) at Python/pythonrun.c:1735\n#9  PyRun_StringFlags (str="\\nimport _testcapi\\ndef foo():\\n    _testcapi.MethStatic().meth_fastcall_keywords()\\ndef bar():\\n    foo()\\nbar()\\n\\n", start=257, globals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x10672890>, \'__spec__\': None, \'__annotations__\': {}, \'__builtins__\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a870>, \'foo\': <function at remote 0x7fffea32fee0>, \'bar\': <function at remote 0x7fffea350b50>}, locals={\'__name__\': \'__main__\', \'__doc__\': None, \'__package__\': None, \'__loader__\': <type at remote 0x10672890>, \'__spec__\': None, \'__annotations__\': {}, \'__builtins_
\': <module at remote 0x7fffea50f6b0>, \'_testcapi\': <module at remote 0x7fffea34a870>, \'foo\': <function at remote 0x7fffea32fee0>, \'bar\': <function at remote 0x7fffea350b50>}, flags=) at Python/pythonrun.c:1605\n#10 PyRun_SimpleStringFlags (command="\\nimport _testcapi\\ndef foo():\\n    _testcapi.MethStatic().meth_fastcall_keywords()\\ndef bar():\\n    foo()\\nbar()\\n\\n", flags=) at Python/pythonrun.c:487\n#11 pymain_run_command (command=<optimized out>) at Modules/main.c:255\n#12 pymain_run_python (exitcode=<optimized out>) at Modules/main.c:592\n#13 Py_RunMain () at Modules/main.c:680\n#14 pymain_main (args=) at Modules/main.c:710\n#15 Py_BytesMain (argc=<optimized out>, argv=<optimized out>) at Modules/main.c:734\n#16 main (argc=<optimized out>, argv=<optimized out>) at ./Programs/python.c:15\nTraceback (most recent call first):\n  File "<string>", line 4, in foo\n  File "<string>", line 6, in bar\n  File "<string>", line 7, in <module>\n'

carljm added a commit to carljm/cpython that referenced this pull request May 11, 2023
* main: (27 commits)
  pythongh-87849: fix SEND specialization family definition (pythonGH-104268)
  pythongh-101819: Adapt _io.IOBase.seek and _io.IOBase.truncate to Argument Clinic (python#104384)
  pythongh-101819: Adapt _io._Buffered* methods to Argument Clinic (python#104367)
  pythongh-101819: Refactor `_io` futher in preparation for module isolation (python#104369)
  pythongh-101819: Adapt _io.TextIOBase methods to Argument Clinic (python#104383)
  pythongh-101117: Improve accuracy of sqlite3.Cursor.rowcount docs (python#104287)
  pythonGH-92184: Convert os.altsep to '/' in filenames when creating ZipInfo objects (python#92185)
  pythongh-104357: fix inlined comprehensions that close over iteration var (python#104368)
  pythonGH-90208: Suppress OSError exceptions from `pathlib.Path.glob()` (pythonGH-104141)
  pythonGH-102181: Improve specialization stats for SEND (pythonGH-102182)
  pythongh-103000: Optimise `dataclasses.asdict` for the common case (python#104364)
  pythongh-103538: Remove unused TK_AQUA code (pythonGH-103539)
  pythonGH-87695: Fix OSError from `pathlib.Path.glob()` (pythonGH-104292)
  pythongh-104263: Rely on Py_NAN and introduce Py_INFINITY (pythonGH-104202)
  pythongh-104010: Separate and improve docs for `typing.get_origin` and `typing.get_args` (python#104013)
  pythongh-101819: Adapt _io._BufferedIOBase_Type methods to Argument Clinic (python#104355)
  pythongh-103960: Dark mode: invert image brightness (python#103983)
  pythongh-104252: Immortalize Py_EMPTY_KEYS (pythongh-104253)
  pythongh-101819: Clean up _io windows console io after pythongh-104197 (python#104354)
  pythongh-101819: Harden _io init (python#104352)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants