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_external_inspection`: `test_async_remote_stack_trace` fails intermittently · Issue #133425 · python/cpython

test_external_inspection: test_async_remote_stack_trace fails intermittently #133425

New issue
Copy link
New issue
Copy link
Closed
Closed
test_external_inspection: test_async_remote_stack_trace fails intermittently#133425
Copy link
Labels
3.14bugs and security fixesbugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-asynciotype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@encukou
encukou
opened on May 5, 2025
Issue body actions

Bug report

test_async_remote_stack_trace and test_asyncgen_remote_stack_trace from test_external_inspection. For example: on build 1128 on Debian root buildbot

======================================================================
FAIL: test_async_remote_stack_trace (test.test_external_inspection.TestGetStackTrace.test_async_remote_stack_trace) (task_factory_variant='asyncio.new_event_loop')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_external_inspection.py", line 269, in test_async_remote_stack_trace
    self.assertEqual(stack_trace, expected_stack_trace)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Lists differ: [[('c[62 chars]y', 10), ('c4', '/tmp/test_python_0gbnot0i/tmp[1293 chars]]]]]] != [[('c[62 chars]y', 11), ('c4', '/tmp/test_python_0gbnot0i/tmp[1308 chars]]]]]]
First differing element 0:
[('c5[61 chars]y', 10), ('c4', '/tmp/test_python_0gbnot0i/tmp[179 chars] 21)]
[('c5[61 chars]y', 11), ('c4', '/tmp/test_python_0gbnot0i/tmp[179 chars] 21)]
Diff is 2008 characters long. Set self.maxDiff to None to see it.
======================================================================
FAIL: test_async_remote_stack_trace (test.test_external_inspection.TestGetStackTrace.test_async_remote_stack_trace) (task_factory_variant='new_eager_loop')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_external_inspection.py", line 269, in test_async_remote_stack_trace
    self.assertEqual(stack_trace, expected_stack_trace)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Lists differ: [[('c[62 chars]y', 10), ('c4', '/tmp/test_python_0gbnot0i/tmp[1293 chars]]]]]] != [[('c[62 chars]y', 11), ('c4', '/tmp/test_python_0gbnot0i/tmp[1308 chars]]]]]]
First differing element 0:
[('c5[61 chars]y', 10), ('c4', '/tmp/test_python_0gbnot0i/tmp[179 chars] 21)]
[('c5[61 chars]y', 11), ('c4', '/tmp/test_python_0gbnot0i/tmp[179 chars] 21)]
Diff is 2008 characters long. Set self.maxDiff to None to see it.
----------------------------------------------------------------------

Activity

  1. encukou
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    topic-asyncio
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    on May 5, 2025
  2. github-project-automation
    added this to asyncioon May 5, 2025
  3. github-project-automation
    moved this to Todo in asyncioon May 5, 2025
  4. vstinner
    marked test_external_inspection fails on AMD64 Debian root 3.x #133428 as a duplicate of this issue on May 5, 2025
  5. vstinner commented on May 5, 2025

    @vstinner
    vstinner
    on May 5, 2025
    Member
    More actions

    I closed my issue #133428 as a duplicate of this one.

  6. picnixz
    added
    3.14bugs and security fixesbugs and security fixes
    on May 5, 2025
  7. pablogsal commented on May 5, 2025

    @pablogsal
    pablogsal
    on May 5, 2025
    Member
    More actions

    Will take a look today but the problem seems to be that matching line numbers is racy

  8. vstinner commented on May 5, 2025

    @vstinner
    vstinner
    on May 5, 2025
    Member
    More actions

    The issue was maybe fixed by #133422.

  9. vstinner commented on May 5, 2025

    @vstinner
    vstinner
    on May 5, 2025
    Member
    More actions

    Failure one hour ago on PPC64LE Fedora Stable Refleaks 3.x: https://buildbot.python.org/#/builders/280/builds/1893

    FAIL: test_async_remote_stack_trace (test.test_external_inspection.TestGetStackTrace.test_async_remote_stack_trace) (task_factory_variant='asyncio.new_event_loop')
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.refleak/build/Lib/test/test_external_inspection.py", line 269, in test_async_remote_stack_trace
        self.assertEqual(stack_trace, expected_stack_trace)
        ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    AssertionError: Lists differ: [[('c[62 chars]y', 10), ('c4', '/tmp/test_python_qxb4meok/tmp[1449 chars]]]]]] != [[('c[62 chars]y', 11), ('c4', '/tmp/test_python_qxb4meok/tmp[1464 chars]]]]]]
    
    First differing element 0:
    [('c5[61 chars]y', 10), ('c4', '/tmp/test_python_qxb4meok/tmp[179 chars] 21)]
    [('c5[61 chars]y', 11), ('c4', '/tmp/test_python_qxb4meok/tmp[179 chars] 21)]
    
    Diff is 2164 characters long. Set self.maxDiff to None to see it.
    
  10. pablogsal commented on May 5, 2025

    @pablogsal
    pablogsal
    on May 5, 2025
    Member
    More actions

    There are more places where the line numbers may change but we can use the same technique

  11. vstinner commented on May 5, 2025

    @vstinner
    vstinner
    on May 5, 2025
    Member
    More actions

    There are more places where the line numbers may change but we can use the same technique

    Right. Please see my fix #133433.

  12. vstinner commented on May 5, 2025

    @vstinner
    vstinner
    on May 5, 2025
    Member
    More actions

    It should be fixed by #133433.

  13. vstinner
    closed this as completedon May 5, 2025
  14. github-project-automation
    moved this from Todo to Done in asyncioon May 5, 2025
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

    3.14bugs and security fixesbugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-asynciotype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    • asyncio
      Status
      Done
      Show more project fields

    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.