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

Commit44d9a71

Browse files
authored
pythongh-104736: Fix test_gdb tests on ppc64le with clang (python#109360)
Fix test_gdb on Python built with LLVM clang 16 on Linux ppc64le (ex:Fedora 38). Search patterns in gdb "bt" command output to detectwhen gdb fails to retrieve the traceback. For example, skip a test if"Backtrace stopped: frame did not save the PC" is found.
1 parentb39f65a commit44d9a71

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

‎Lib/test/test_gdb.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,14 @@ def get_stack_trace(self, source=None, script=None,
246246
# gh-91960: On Python built with "clang -Og", gdb gets
247247
# "frame=<optimized out>" for _PyEval_EvalFrameDefault() parameter
248248
'(unable to read python frame information)',
249+
# gh-104736: On Python built with "clang -Og" on ppc64le,
250+
# "py-bt" displays a truncated or not traceback, but "where"
251+
# logs this error message:
252+
'Backtrace stopped: frame did not save the PC',
253+
# gh-104736: When "bt" command displays something like:
254+
# "#1 0x0000000000000000 in ?? ()", the traceback is likely
255+
# truncated or wrong.
256+
' ?? ()',
249257
):
250258
ifpatterninout:
251259
raiseunittest.SkipTest(f"{pattern!r} found in gdb output")
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Fix test_gdb on Python built with LLVM clang 16 on Linux ppc64le (ex: Fedora
2+
38). Search patterns in gdb "bt" command output to detect when gdb fails to
3+
retrieve the traceback. For example, skip a test if ``Backtrace stopped: frame
4+
did not save the PC`` is found. Patch by Victor Stinner.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp