Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue37126

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:test_threading is leaking references
Type:Stage:resolved
Components:TestsVersions:Python 3.8
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To:Nosy List: lukasz.langa, pablogsal, vstinner
Priority:highKeywords:patch

Created on2019-06-01 17:00 bypablogsal, last changed2022-04-11 14:59 byadmin. This issue is nowclosed.

Pull Requests
URLStatusLinkedEdit
PR 13729mergedpablogsal,2019-06-01 19:01
PR 13751mergedpablogsal,2019-06-02 20:25
Messages (8)
msg344191 -(view)Author: Pablo Galindo Salgado (pablogsal)*(Python committer)Date: 2019-06-01 17:00
https://buildbot.python.org/all/#/builders/1/builds/601OK (skipped=1).test_threading leaked [9770, 9772, 9768] references, sum=29310test_threading leaked [3960, 3961, 3959] memory blocks, sum=118802 tests failed again:    test_asyncio test_threading
msg344195 -(view)Author: Pablo Galindo Salgado (pablogsal)*(Python committer)Date: 2019-06-01 17:37
❯ ./python -m test test_threading -m test_excepthook_thread_None -R :Run tests sequentially0:00:00 load avg: 1.38 [1/1] test_threadingbeginning 9 repetitions123456789.........test_threading leaked [364, 364, 364, 364] references, sum=1456test_threading leaked [164, 164, 164, 164] memory blocks, sum=656test_threading failed== Tests result: FAILURE ==1 test failed:    test_threadingTotal duration: 159 msTests result: FAILURE
msg344197 -(view)Author: Pablo Galindo Salgado (pablogsal)*(Python committer)Date: 2019-06-01 19:00
The problem here is that there is a reference cycle with threading.ExceptHookArgs but structseq objects are not tracked by the GC.
msg344209 -(view)Author: Pablo Galindo Salgado (pablogsal)*(Python committer)Date: 2019-06-01 19:28
Łukasz, this PR will fix the x86 Gentoo Refleaks 3.x and friends, so I would recommend landing this before the release.
msg344289 -(view)Author: Pablo Galindo Salgado (pablogsal)*(Python committer)Date: 2019-06-02 14:45
New changeset7ffcf848df214135abeea7f6c6faa4135fd0928f by Pablo Galindo in branch 'master':bpo-37126: Allow structseq objects to be tracked by the GC (GH-13729)https://github.com/python/cpython/commit/7ffcf848df214135abeea7f6c6faa4135fd0928f
msg344309 -(view)Author: STINNER Victor (vstinner)*(Python committer)Date: 2019-06-02 20:23
You forgot to call PyObject_GC_UnTrack() in structseq_dealloc(), no?
msg344310 -(view)Author: Pablo Galindo Salgado (pablogsal)*(Python committer)Date: 2019-06-02 20:30
> You forgot to call PyObject_GC_UnTrack() in structseq_dealloc(), no?Yep, thanks for the catch!
msg344320 -(view)Author: STINNER Victor (vstinner)*(Python committer)Date: 2019-06-02 21:15
Thanks.commit3caf4de6f05f68c3a175f4d8ce870d7a0016622aAuthor: Pablo Galindo <Pablogsal@gmail.com>Date:   Sun Jun 2 21:52:49 2019 +0100    Call PyObject_GC_UnTrack in structseq dealloc (GH-13751)--FYI I also fixed test_threading:commitcdce0574d03005e27b843fc110c54c99c7a76412Author: Victor Stinner <vstinner@redhat.com>Date:   Sun Jun 2 23:08:41 2019 +0200bpo-36829: test_threading: Fix a ref cycle (GH-13752)
History
DateUserActionArgs
2022-04-11 14:59:16adminsetgithub: 81307
2019-06-02 21:15:11vstinnersetstatus: open -> closed
resolution: fixed
messages: +msg344320
2019-06-02 20:30:51pablogsalsetmessages: +msg344310
stage: patch review -> resolved
2019-06-02 20:25:20pablogsalsetstage: resolved -> patch review
pull_requests: +pull_request13632
2019-06-02 20:23:27vstinnersetstatus: closed -> open
resolution: fixed -> (no value)
messages: +msg344309
2019-06-02 14:45:33pablogsalsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2019-06-02 14:45:18pablogsalsetmessages: +msg344289
2019-06-01 19:28:02pablogsalsetnosy: +lukasz.langa
messages: +msg344209
2019-06-01 19:01:26pablogsalsetkeywords: +patch
stage: patch review
pull_requests: +pull_request13613
2019-06-01 19:00:33pablogsalsetmessages: +msg344197
2019-06-01 17:37:26pablogsalsetpriority: normal -> high
2019-06-01 17:37:19pablogsalsetmessages: +msg344195
2019-06-01 17:00:48pablogsalcreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp