GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test_gdb: test_pycfunction_fastcall_keywords() failed on PPC64LE Fedora Stable Clang 3.x · Issue #110166 · python/cpython

test_gdb: test_pycfunction_fastcall_keywords() failed on PPC64LE Fedora Stable Clang 3.x #110166

New issue
Copy link
New issue
Copy link
Closed
Closed
test_gdb: test_pycfunction_fastcall_keywords() failed on PPC64LE Fedora Stable Clang 3.x#110166
Copy link
Labels
testsTests in the Lib/test dirTests in the Lib/test dir

Description

@vstinner
vstinner
opened on Oct 1, 2023
Issue body actions

PPC64LE Fedora Stable Clang 3.x:

======================================================================
FAIL: test_pycfunction_fastcall_keywords (test.test_gdb.test_cfunction_full.CFunctionFullTests.test_pycfunction_fastcall_keywords) [_testcapi.meth_fastcall_keywords]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang/build/Lib/test/test_gdb/test_cfunction.py", line 67, in check_pycfunction
    self.check(func_name, cmd)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang/build/Lib/test/test_gdb/test_cfunction_full.py", line 32, in check
    self.assertRegex(gdb_output, regex)
AssertionError: Regex didn't match: '#(1|2)\\ <built\\-in\\ method\\ meth_fastcall_keywords' not found in 'Breakpoint 1 (meth_fastcall_keywords) pending.\n
[Thread debugging using libthread_db enabled]\n
Using host libthread_db library "/lib64/libthread_db.so.1".\n
\n
Breakpoint 1, meth_fastcall_keywords (self=<module at remote 0x7fffea3948f0>, args=, nargs=0, kwargs=0x0) at ./Modules/_testcapimodule.c:2114\n
2114\t    PyObject *pyargs = _fastcall_to_tuple(args, nargs);\n
Unable to locate python frame\n
'

Stdout:

  test call: _testcapi.meth_fastcall_keywords()

======================================================================
FAIL: test_pycfunction_varargs (test.test_gdb.test_cfunction_full.CFunctionFullTests.test_pycfunction_varargs) [_testcapi.meth_varargs]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang/build/Lib/test/test_gdb/test_cfunction.py", line 67, in check_pycfunction
    self.check(func_name, cmd)
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.clang/build/Lib/test/test_gdb/test_cfunction_full.py", line 32, in check
    self.assertRegex(gdb_output, regex)
AssertionError: Regex didn't match: '#(1|2)\\ <built\\-in\\ method\\ meth_varargs' not found in 'Breakpoint 1 (meth_varargs) pending.\n
[Thread debugging using libthread_db enabled]\n
Using host libthread_db library "/lib64/libthread_db.so.1".\n
\n
Breakpoint 1, meth_varargs (self=<module at remote 0x7fffea394890>, args=()) at ./Modules/_testcapimodule.c:2067\n
2067\t    return Py_BuildValue("NO", _null_to_none(self), args);\n
Unable to locate python frame\n
'

Stdout:

  test call: _testcapi.meth_varargs()

----------------------------------------------------------------------

configure:

./configure --prefix '$(PWD)/target' --with-pydebug

test.pythoninfo:

CC.version: gcc (GCC) 13.2.1 20230728 (Red Hat 13.2.1-1)

libregrtests.build_info: debug

sysconfig[PY_CFLAGS]: -fno-strict-overflow -Wsign-compare -g -Og -Wall
sysconfig[PY_CFLAGS_NODIST]: -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal
sysconfig[PY_STDMODULE_CFLAGS]: -fno-strict-overflow -Wsign-compare -g -Og -Wall -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I. -I./Include

build: https://buildbot.python.org/all/#/builders/435/builds/3683

Linked PRs

  • gh-110166: Fix gdb CFunctionFullTests on ppc64le clang build #110331

Activity

  1. vstinner
    added
    testsTests in the Lib/test dirTests in the Lib/test dir
    on Oct 1, 2023
  2. vstinner commented on Oct 4, 2023

    @vstinner
    vstinner
    on Oct 4, 2023
    MemberAuthor
    More actions

    That's a variant of gh-104736.

    code.py:

    import _testcapi      
    def foo(): 
        _testcapi.meth_fastcall_keywords()
    def bar():                    
        foo()                                
    bar()                  

    Gdb:

    [vstinner@localhost cpython]$ gdb -args ./python code.py
    GNU gdb (GDB) Fedora Linux 13.2-5.fc38
    (gdb) b meth_fastcall_keywords
    (gdb) source python-gdb.py
    (gdb) run
    Starting program: /home/vstinner/cpython/python code.py
    
    Breakpoint 1, meth_fastcall_keywords (self=<module at remote 0x7fffea37c590>, args=0x7fffea410128, nargs=0, kwargs=0x0) at ./Modules/_testcapimodule.c:2114
    2114	    PyObject *pyargs = _fastcall_to_tuple(args, nargs);
    
    (gdb) py-bt-full
    Unable to locate python frame
    
    (gdb) where
    #0  meth_fastcall_keywords (self=<module at remote 0x7fffea37c590>, args=0x7fffea410128, nargs=0, kwargs=0x0) at ./Modules/_testcapimodule.c:2114
    #1  0x0000000000000000 in ?? ()
    
  3. vstinner
    added 3 commits that reference this issue on Oct 4, 2023

    pythongh-110166: Skip test_gdb on "Unable to locate python frame"

    a5602f6

    pythongh-110166: Fix gdb CFunctionFullTests on ppc64le clang build

    377b930

    gh-110166: Fix gdb CFunctionFullTests on ppc64le clang build (#110331)

    1de9406
  4. vstinner commented on Oct 4, 2023

    @vstinner
    vstinner
    on Oct 4, 2023
    MemberAuthor
    More actions

    Using clang -O0, it works as expected, a single test is skipped:

    ./configure CC=clang LD=clang --with-pydebug 'CFLAGS=-fno-omit-frame-pointer -O0'
    (...)
    All 5 tests OK.
    
    Total duration: 1 min 28 sec
    Total tests: run=57 skipped=1
    Total test files: run=5/5
    Result: SUCCESS
    
  5. vstinner
    added 2 commits that reference this issue on Oct 4, 2023

    pythongh-110166: Fix gdb CFunctionFullTests on ppc64le clang build (p…

    8a305ef

    [3.12] gh-109972: Enhance test_gdb (#110026) (#110351)

    bbce8bd
  6. miss-islington
    added a commit that references this issue on Oct 4, 2023

    [3.12] pythongh-109972: Enhance test_gdb (pythonGH-110026) (pythonGH-…

    50ec4bb
  7. vstinner
    added a commit that references this issue on Oct 4, 2023

    [3.11] [3.12] gh-109972: Enhance test_gdb (GH-110026) (GH-110351) (#1…

    aa8d3db
  8. vstinner commented on Oct 5, 2023

    @vstinner
    vstinner
    on Oct 5, 2023
    MemberAuthor
    More actions

    The issue should now be fixed in 3.11, 3.12 and main branches.

  9. vstinner
    closed this as completedon Oct 5, 2023
  10. Glyphack
    added a commit that references this issue on Sep 2, 2024

    pythongh-110166: Fix gdb CFunctionFullTests on ppc64le clang build (p…

    7424bc3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirTests in the Lib/test dir

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.