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_import: test_concurrency() leaks references and memory on Windows · Issue #107086 · python/cpython

test_import: test_concurrency() leaks references and memory on Windows #107086

New issue
Copy link
New issue
Copy link
Closed
Closed
test_import: test_concurrency() leaks references and memory on Windows#107086
Copy link
Labels
type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@vstinner
vstinner
opened on Jul 23, 2023
Issue body actions
vstinner@WIN C:\victor\python\main>python -m test test_import -R 3:3 -v
(...)
test_import leaked [23, 23, 34] references, sum=80
test_import leaked [23, 21, 34] memory blocks, sum=78
test_import failed (reference leak) in 40.3 sec

test_concurrency() alone reproduces the issue:

vstinner@WIN C:\victor\python\main>python -m test test_import -R 3:3 -v -m test_concurrency 
(...)
test_import leaked [40, 40, 40] references, sum=120
test_import leaked [40, 40, 40] memory blocks, sum=120

By the way, test_typing also leaks:

vstinner@WIN C:\victor\python\main>python -m test test_typing -R 3:3
(...)
test_typing leaked [1, 1, 1] memory blocks, sum=3

Activity

  1. vstinner
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Jul 23, 2023
  2. vstinner commented on Jul 23, 2023

    @vstinner
    vstinner
    on Jul 23, 2023
    MemberAuthor
    More actions

    Note: On an old buildbot failure (19 days ago), I also saw a test_grammar leak, but I cannot reproduce it.

    Build: https://buildbot.python.org/all/#/builders/920/builds/447

    test_grammar leaked [2, 2, 2] references, sum=6
    test_grammar leaked [2, 2, 2] memory blocks, sum=6
    
  3. vstinner commented on Jul 23, 2023

    @vstinner
    vstinner
    on Jul 23, 2023
    MemberAuthor
    More actions

    Duplicate of #106176

    I also found commit 3325f05 with a git bisect.

  4. vstinner
    closed this as completedon Jul 23, 2023
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.