GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||
GeezerVison is showing github.com — bpo-31746: Prevent segfaults with uninitialised `sqlite3.Connection` objects by erlend-aasland · Pull Request #27431 · python/cpython Conversation
|
| if (!self->initialized) { | ||
| pysqlite_state *state = pysqlite_get_state(NULL); | ||
| PyErr_SetString(state->ProgrammingError, | ||
| "Base Connection.__init__ not called."); | ||
| return NULL; | ||
| } |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
We cannot use pysqlite_check_connection here, since it also checks self->db. Calling close() twice should still be a no-op.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Backport to 3.9 as well? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @erlend-aasland for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, @erlend-aasland and @pablogsal, I could not cleanly backport this to |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @erlend-aasland for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry @erlend-aasland and @pablogsal, I had trouble checking out the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Oh, seems that the backport party crashed :( @erlend-aasland can you do them manually? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Yes, I was expecting it to fail. I'll fix it right away. Should we backport to 3.9 as well? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@erlend-aasland apparently we have a buildbot failure: https://buildbot.python.org/all/#/builders/596/builds/703/ We may need to revert this meanwhile we understand what failed |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…alised (pythonGH-27431). (cherry picked from commit 7e311e4) Co-authored-by: Erlend Egeberg Aasland <[email protected]>
|
Yes, please revert it. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-27465 is a backport of this pull request to the 3.9 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…alised (GH-27431) (GH-27465) (cherry picked from commit 7e311e4) Co-authored-by: Erlend Egeberg Aasland <[email protected]>
|
We are missing the 3.10 backport still |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Doh, I'll get to it after morning coffee :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ialised (pythonGH-27431). (cherry picked from commit 7e311e4) Co-authored-by: Erlend Egeberg Aasland <[email protected]>
|
GH-27472 is a backport of this pull request to the 3.10 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sync with main bco. pythonGH-27431
…ialised (GH-27431). (GH-27472) (cherry picked from commit 7e311e4) Co-authored-by: Erlend Egeberg Aasland <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.