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_ctypes are leaked · Issue #104456 · python/cpython

test_ctypes are leaked #104456

New issue
Copy link
New issue
Copy link
Closed
Closed
test_ctypes are leaked#104456
Copy link
Labels
type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@Eclips4
Eclips4
opened on May 13, 2023
Issue body actions

Tried on last commit.

 PS C:\Users\KIRILL-1\CLionProjects\cpython> ./python -m test -R 3:3 test_ctypes    
Running Debug|x64 interpreter...
0:00:00 Run tests sequentially
0:00:00 [1/1] test_ctypes
beginning 6 repetitions
123456
a=5, b=10, c=15
a=5, b=10, c=15
.a=5, b=10, c=15
a=5, b=10, c=15
.a=5, b=10, c=15
a=5, b=10, c=15
.a=5, b=10, c=15
a=5, b=10, c=15
.a=5, b=10, c=15
a=5, b=10, c=15
.a=5, b=10, c=15
a=5, b=10, c=15
.
test_ctypes leaked [5, 5, 5] references, sum=15
test_ctypes leaked [3, 3, 4] memory blocks, sum=10
test_ctypes failed (reference leak)

== Tests result: FAILURE ==

1 test failed:
    test_ctypes

Total duration: 17.1 sec
Tests result: FAILURE

OS: Windows 10
However, I cannot reproduce it in Linux (WSL Ubuntu)

UPD:
It is test_ctypes/test_win32.py/test_COMError

Linked PRs

  • gh-104456: Fix ref leak in _ctypes.COMError #104457

Activity

  1. Eclips4
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on May 13, 2023
  2. Eclips4
    added a commit that references this issue on May 13, 2023

    pythongh-104456: Fix ref leak in test_ctypes

    8dbad09
  3. erlend-aasland commented on May 13, 2023

    @erlend-aasland
    erlend-aasland
    on May 13, 2023
    Contributor
    More actions

    Thanks for the report!

    Reacted by Kirill Podoprigora
  4. erlend-aasland
    added a commit that references this issue on May 14, 2023

    gh-104456: Fix ref leak in _ctypes.COMError (#104457)

    2cd1c87
  5. Eclips4
    closed this as completedon May 14, 2023
  6. carljm
    added 2 commits that reference this issue on May 15, 2023

    Merge branch 'main' into supermon

    343867a

    Merge branch 'main' into cached_property_docs

    452d9f5
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

    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — 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.