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 — bpo-19675: Fixes pool cleanup issue by dsoprea · Pull Request #57 · python/cpython

Conversation

@dsoprea

@dsoprea dsoprea commented Feb 12, 2017 •
edited by bedevere-bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

http://bugs.python.org/issue19675

  • This is my first contribution. Please forgive if the commit-message is not formatted correctly. I was not able to find the guidelines for the convention. I read "https://docs.python.org/devguide/committing.html" and "https://docs.python.org/devguide/pullrequest.html".
  • I'm assuming this is too trivial a change to make a change to Misc/ACKS.

"make test" output:

28 tests skipped:
    test_bz2 test_ctypes test_curses test_dbm_gnu test_dbm_ndbm
    test_devpoll test_gzip test_idle test_kqueue test_lzma test_msilib
    test_ossaudiodev test_readline test_smtpnet test_sqlite test_ssl
    test_startfile test_tcl test_tix test_tk test_ttk_guionly
    test_ttk_textonly test_turtle test_winconsoleio test_winreg
    test_winsound test_zipfile64 test_zlib

Total duration: 4 min 18 sec
Tests result: SUCCESS

"make patchcheck" also succeeds. Not sure if any other checks are required prior to posting the PR and relying on any automatic checks that ensue there.

This would obviously also need to be labeled for backporting.

https://bugs.python.org/issue19675

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

willingc reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@the-knights-who-say-ni

the-knights-who-say-ni commented Feb 12, 2017

Copy link
Copy Markdown

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA).

Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA. This is necessary for legal reasons before we can look at your contribution. Please follow these steps to help rectify the issue:

  1. If you don't have an account on b.p.o, please create one
  2. Make sure your GitHub username is listed in "Your Details" at b.p.o
  3. If you have not already done so, please sign the PSF contributor agreement
  4. If you just signed the CLA, please wait at least a day and then check "Your Details" on bugs.python.org to see if your account has been marked as having signed the CLA (the delay is due to a person having to manually check your signed CLA)
  5. Reply here saying you have completed the above steps

Thanks again to your contribution and we look forward to looking at it!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@the-knights-who-say-ni the-knights-who-say-ni added the CLA not signed label Feb 12, 2017
@dsoprea

dsoprea commented Feb 12, 2017

Copy link
Copy Markdown
Author

Waiting on CLA approval.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@briancurtin

briancurtin commented Feb 13, 2017

Copy link
Copy Markdown
Member

bpo-19675: Fix pool cleanup issue would be the ideal commit message/title of the PR, you just needed to prefix bpo- for it to be good :)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

briancurtin
briancurtin requested changes Feb 13, 2017
View reviewed changes

@briancurtin briancurtin left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also have a test here to prove that this new functionality works out alright.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread Lib/multiprocessing/pool.py Outdated

@briancurtin briancurtin Feb 13, 2017

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be util.debug, right?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@applio

applio commented Feb 13, 2017

Copy link
Copy Markdown
Member

Per continued discussion on https://bugs.python.org/issue19675 this patch still also needs tests. If you want to close this PR and submit another or continue iterating here, I'll leave that to you.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dsoprea

dsoprea commented Feb 13, 2017 via email

Copy link
Copy Markdown
Author
I'll keep iterating. I've accounted for the other suggestions locally. I'm just trying to figure out what needs to be done to test this. See other thread.
…
On Mon, Feb 13, 2017 at 11:56 AM, Davin Potts ***@***.***> wrote: Per continued discussion on https://bugs.python.org/issue19675 this patch still also needs tests. If you want to close this PR and submit another or continue iterating here, I'll leave that to you. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#57 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AArraj3dH4b39wB6-5d4mwE4L3s1MPqKks5rcItPgaJpZM4L-qfA> .
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@the-knights-who-say-ni the-knights-who-say-ni added CLA signed and removed CLA not signed labels Feb 14, 2017
@dsoprea
bpo-19675: Fixes pool cleanup issue
007f134
- http://bugs.python.org/issue19675
@dsoprea

dsoprea commented Feb 14, 2017

Copy link
Copy Markdown
Author

I just added the following note about testing to the issue:

(http://bugs.python.org/issue19675)

I don't think this can be tested. Throwing exceptions in the remote process causes exceptions that can't be caught in the same way (when the initializer fails the pool just attempts to recreate the process over and over) and I don't think it'd be acceptable to try to spawn too many processes in order to induce the original problem. There's not a lot of surface area to what we're doing here. We can't simulate failures any other way.

Once we get to the point where we can merge, I'll close this PR, cherry-pick the commit into the version-specific branches, and create new PRs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@codecov

codecov Bot commented Feb 14, 2017

Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (master@c33ee85). Click here to learn what that means.
The diff coverage is 0%.

@@            Coverage Diff            @@
##             master      #57   +/-   ##
=========================================
  Coverage          ?   82.37%           
=========================================
  Files             ?     1427           
  Lines             ?   350958           
  Branches          ?        0           
=========================================
  Hits              ?   289088           
  Misses            ?    61870           
  Partials          ?        0

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c33ee85...007f134. Read the comment docs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@smcolby

smcolby commented Mar 20, 2017

Copy link
Copy Markdown

@applio @briancurtin I am currently facing the limitations that would be resolved by this PR and would like to help in any way possible to get this merged. Do either of you have recommendations as to how we can get this PR passing all tests?

vlad17 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@JulienPalard

JulienPalard commented Feb 10, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

I'm, not fan of the actual patch: if an exception happen during _handle_workers, in a case it needs to respawn just one worker, you'll terminate all correctly running workers, which look bad.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@JulienPalard JulienPalard mentioned this pull request Feb 10, 2018
bpo-19675: Terminate processes if construction of a pool is failing. #5614
Merged
@brettcannon

brettcannon commented Feb 21, 2018

Copy link
Copy Markdown
Member

To try and help move older pull requests forward, we are going through and backfilling 'awaiting' labels on pull requests that are lacking the label. Based on the current reviews, the best we can tell in an automated fashion is that a core developer requested changes to be made to this pull request.

If/when the requested changes have been made, please leave a comment that says, I have made the requested changes; please review again. That will trigger a bot to flag this pull request as ready for a follow-up review.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@brettcannon brettcannon added awaiting changes labels Feb 21, 2018
@encukou

encukou commented Feb 21, 2018

Copy link
Copy Markdown
Member

@brettcannon, are you aware of your duplicate comments?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@brettcannon

brettcannon commented Feb 21, 2018

Copy link
Copy Markdown
Member

@encukou yep, this one issue triggered an odd bug in my script; should be the only case.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@serhiy-storchaka serhiy-storchaka changed the title 19675: Fixes pool cleanup issue bpo-19675: Fixes pool cleanup issue Mar 26, 2018
@JulienPalard

JulienPalard commented Nov 4, 2018

Copy link
Copy Markdown
Member

Merged #5614 so this should be fixed now.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@JulienPalard JulienPalard closed this Nov 4, 2018
jaraco pushed a commit that referenced this pull request Dec 2, 2022
@pyup-bot @Mariatta
Update cherry_picker from 0.2.7 to 0.2.8 (GH-57)
1da0ad6
jaraco pushed a commit to jaraco/cpython that referenced this pull request Feb 17, 2023
@warsaw
Merge branch 'issue57' into 'master'
ecea0c5
Add a pyproject.toml which forces a compatible version of setuptools

Closes python#57

See merge request python-devs/importlib_resources!61
mgmacias95 pushed a commit to mgmacias95/cpython that referenced this pull request Mar 27, 2023
@pablogsal
Merge pull request python#57 from isidentical/handle-constant-kinds
e8b6366
@gvanrossum gvanrossum mentioned this pull request Aug 22, 2023
heap-use-after-free in _PyFunction_LookupByVersion #108253
Closed
@LinanV LinanV mentioned this pull request Oct 23, 2023
Objects/typeobject.c: No such file or directory. #111203
Closed
@ngoldbaum ngoldbaum mentioned this pull request Sep 23, 2024
Crash running PyO3 tests with --test-threads=1000 #124375
Closed
GerHobbelt pushed a commit to GerHobbelt/cpython that referenced this pull request Sep 28, 2024
@icanhasmath
Merge pull request python#57 from ActiveState/BE-4055-cve-2024-4032-f…
2cd349a
…or-3-7

CVE-2024-4032 Fix "private" (non-global) IP address ranges (pythonGH-113179…
This was referenced Feb 11, 2025
segmentfault when pip installing setuptools #129992
Closed
segmentfault when pip installing setuptools #129993
Closed
AA-Turner pushed a commit to AA-Turner/cpython that referenced this pull request Apr 10, 2025
@Wingysam
Make changes requested by Steering Council (python#57)
77822be
* Rename expr to expression, conv to conversion
* Move templatelib under string lib
* Add strings lib to LIBSUBDIRS
* Update type of Template/TemplateIter/Interpolation
@DominiquePACCO DominiquePACCO mentioned this pull request Jun 3, 2025
PdfWriter add_page adds (re)writes old page instead of new #135062
Closed
@sergey-miryanov sergey-miryanov mentioned this pull request Dec 18, 2025
Observed memory leak in ssl library: Python 3.14 GC issue #142516
Closed
@ngoldbaum ngoldbaum mentioned this pull request Mar 6, 2026
Remove deprecated and undocumented function ctypes.SetPointerType #133866
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@briancurtin briancurtin briancurtin requested changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

awaiting changes

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

8 participants

@dsoprea @the-knights-who-say-ni @briancurtin @applio @smcolby @JulienPalard @brettcannon @encukou
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.