Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-35436: Add missing PyErr_NoMemory() calls and other minor bug fixes #11015

Conversation

ZackerySpytz
Copy link
Contributor

@ZackerySpytz ZackerySpytz commented Dec 7, 2018

Set MemoryError when appropriate, add missing failure checks,
and fix some potential leaks.

https://bugs.python.org/issue35436

Set MemoryError when appropriate, add missing failure checks,
and fix some potential leaks.
Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Great work! It is worth adding a news entry.

Parser/myreadline.c Outdated Show resolved Hide resolved
Remove some useless indentation.
Add a missing check introduced in a recent commit (468a15a).
@ZackerySpytz
Copy link
Contributor Author

ZackerySpytz commented Dec 7, 2018

@serhiy-storchaka Thank you for the review.

@serhiy-storchaka serhiy-storchaka merged commit 4c49da0 into python:master Dec 7, 2018
@miss-islington
Copy link
Contributor

miss-islington commented Dec 7, 2018

Thanks @ZackerySpytz for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 2.7, 3.6, 3.7.
🐍🍒🤖

@miss-islington
Copy link
Contributor

miss-islington commented Dec 7, 2018

Sorry, @ZackerySpytz and @serhiy-storchaka, I could not cleanly backport this to 3.7 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 4c49da0cb7434c676d70b9ccf38aca82ac0d64a9 3.7

@miss-islington
Copy link
Contributor

miss-islington commented Dec 7, 2018

Sorry, @ZackerySpytz and @serhiy-storchaka, I could not cleanly backport this to 3.6 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 4c49da0cb7434c676d70b9ccf38aca82ac0d64a9 3.6

@miss-islington
Copy link
Contributor

miss-islington commented Dec 7, 2018

Sorry, @ZackerySpytz and @serhiy-storchaka, I could not cleanly backport this to 2.7 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 4c49da0cb7434c676d70b9ccf38aca82ac0d64a9 2.7

@ZackerySpytz
Copy link
Contributor Author

ZackerySpytz commented Dec 7, 2018

@serhiy-storchaka I'll create the backport PRs.

vstinner added a commit that referenced this pull request Dec 7, 2018
ZackerySpytz added a commit to ZackerySpytz/cpython that referenced this pull request Dec 7, 2018
@bedevere-bot
Copy link

bedevere-bot commented Dec 7, 2018

GH-11020 is a backport of this pull request to the 3.7 branch.

@bedevere-bot
Copy link

bedevere-bot commented Dec 7, 2018

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot s390x RHEL 3.7 has failed when building commit 602d307.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/126/builds/860) and take a look at the build logs.
  4. Check if the failure is related to this commit (602d307) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/126/builds/860

Click to see traceback logs
fatal: unable to access 'https://github.com/python/cpython.git/': Encountered end of file

make: *** No rule to make target `distclean'.  Stop.

serhiy-storchaka pushed a commit to serhiy-storchaka/cpython that referenced this pull request Dec 7, 2018
…ug fixes. (pythonGH-11015) (pythonGH-11020)

(cherry picked from commit 4c49da0).
(cherry picked from commit 602d307)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
serhiy-storchaka added a commit that referenced this pull request Dec 7, 2018
…es. (GH-11015) (GH-11020) (GH-11026)

(cherry picked from commit 4c49da0)
(cherry picked from commit 602d307)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants