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 — gh-146090: fix memory management of internal `sqlite3` callback contexts by picnixz · Pull Request #146569 · python/cpython

Conversation

@picnixz

@picnixz picnixz commented Mar 28, 2026 •
edited by bedevere-app Bot
Loading

Uh oh!

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

Copy link
Copy Markdown
Member
  • Issue: Assertion failure in free_callback_context via create_collation and missing PyErr_NoMemory in create_callback_context #146090

Sorry, something went wrong.

Uh oh!

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

All reactions
@picnixz
pythongh-146090: fix memory management of SQLite3 callback contexts
67703c7
@picnixz
picnixz requested review from berkerpeksag and erlend-aasland as code owners March 28, 2026 11:10
@bedevere-app bedevere-app Bot mentioned this pull request Mar 28, 2026
Assertion failure in free_callback_context via create_collation and missing PyErr_NoMemory in create_callback_context #146090
Closed
@bedevere-app bedevere-app Bot added the awaiting core review label Mar 28, 2026
@picnixz picnixz added needs backport to 3.13 only security fixes needs backport to 3.14 bugs and security fixes labels Mar 28, 2026
picnixz
picnixz commented Mar 28, 2026
View reviewed changes
Comment thread Misc/NEWS.d/next/Library/2026-03-28-12-01-48.gh-issue-146090.wh1qJR.rst Resolved

Uh oh!

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

@picnixz
Update Misc/NEWS.d/next/Library/2026-03-28-12-01-48.gh-issue-146090.w…
8b9a664
…h1qJR.rst
picnixz
picnixz commented Mar 28, 2026
View reviewed changes
Comment thread Misc/NEWS.d/next/Library/2026-03-28-12-01-48.gh-issue-146090.wh1qJR.rst Resolved

Uh oh!

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

@picnixz
Update Misc/NEWS.d/next/Library/2026-03-28-12-01-48.gh-issue-146090.w…
926804b
…h1qJR.rst
@picnixz picnixz linked an issue Mar 28, 2026 that may be closed by this pull request
Assertion failure in free_callback_context via create_collation and missing PyErr_NoMemory in create_callback_context #146090
Closed
@picnixz picnixz added the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label Mar 28, 2026
@bedevere-bot

bedevere-bot commented Mar 28, 2026

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @picnixz for commit 926804b 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F146569%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-refleak-buildbots label again.

All reactions

Sorry, something went wrong.

Uh oh!

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

@bedevere-bot bedevere-bot removed the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label Mar 28, 2026
@picnixz picnixz changed the title gh-146090: fix memory management of SQLite3 callback contexts gh-146090: fix memory management of internal sqlite3 callback contexts Mar 29, 2026
@picnixz
picnixz merged commit aa66807 into python:main Mar 29, 2026
66 checks passed

Uh oh!

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

@miss-islington-app

miss-islington-app Bot commented Mar 29, 2026

Copy link
Copy Markdown

Thanks @picnixz for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

All reactions

Sorry, something went wrong.

Uh oh!

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

@bedevere-app bedevere-app Bot removed the awaiting core review label Mar 29, 2026
@picnixz
picnixz deleted the fix/sqlite/refcounting-api-146090 branch March 29, 2026 12:21
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 29, 2026
@picnixz @miss-islington
pythongh-146090: fix memory management of internal sqlite3 callback…
a0192ad
… contexts (pythonGH-146569)

(cherry picked from commit aa66807)

Co-authored-by: Bénédikt Tran <[email protected]>
@bedevere-app

bedevere-app Bot commented Mar 29, 2026

Copy link
Copy Markdown

GH-146595 is a backport of this pull request to the 3.14 branch.

All reactions

Sorry, something went wrong.

Uh oh!

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

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Mar 29, 2026
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 29, 2026
@picnixz @miss-islington
pythongh-146090: fix memory management of internal sqlite3 callback…
1b5bd8e
… contexts (pythonGH-146569)

(cherry picked from commit aa66807)

Co-authored-by: Bénédikt Tran <[email protected]>
@bedevere-app

bedevere-app Bot commented Mar 29, 2026

Copy link
Copy Markdown

GH-146596 is a backport of this pull request to the 3.13 branch.

All reactions

Sorry, something went wrong.

Uh oh!

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

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 only security fixes label Mar 29, 2026
picnixz added a commit that referenced this pull request Mar 29, 2026
@miss-islington @picnixz
[3.13] gh-146090: fix memory management of internal sqlite3 callbac…
6fdf084
…k contexts (GH-146569) (#146596)

gh-146090: fix memory management of internal `sqlite3` callback contexts (GH-146569)
(cherry picked from commit aa66807)

Co-authored-by: Bénédikt Tran <[email protected]>
picnixz added a commit that referenced this pull request Mar 29, 2026
@miss-islington @picnixz
[3.14] gh-146090: fix memory management of internal sqlite3 callbac…
1458ea0
…k contexts (GH-146569) (#146595)

gh-146090: fix memory management of internal `sqlite3` callback contexts (GH-146569)
(cherry picked from commit aa66807)

Co-authored-by: Bénédikt Tran <[email protected]>
maurycy added a commit to maurycy/cpython that referenced this pull request Mar 30, 2026
@maurycy
Merge remote-tracking branch 'upstream/main' into tachyon-ndjson-kole…
6a0ea81
…ktor

* upstream/main: (119 commits)
  pythongh-144270: Make SubElement parent and tag positional-only (pythonGH-144845)
  pythongh-146558: JIT optimize dict access for objects with known hash (python#146559)
  pythongh-139922: always run MSVC 64-bit tail-calling CI (pythonGH-146570)
  pythongh-126835: Fix _PY_IS_SMALL_INT() macro (python#146631)
  pythongh-146587: fix type slot assignment incase of multiple slots for same name (python#146593)
  pythongh-138122: Add differential flame graph (python#145785)
  pythongh-146416: Emscripten: Improve standard stream handling in node_entry.mjs (python#146417)
  pythongh-146444: Don't package as part of iOS 'build hosts' target (python#146628)
  pythongh-138850: Add --disable-epoll to configure (pythonGH-145768)
  pythongh-146444: Make Platforms/Apple/ compatible with Python 3.9 (python#146624)
  pythongh-138577: Fix keyboard shortcuts in getpass with echo_char (python#141597)
  pythongh-146556: Fix infinite loop in annotationlib.get_annotations() on circular __wrapped__ (python#146557)
  pythongh-146579: _zstd: Fix decompression options dict error message (python#146577)
  pythongh-146083: Upgrade bundled Expat to 2.7.5 (python#146085)
  pythongh-146080: fix a crash in SNI callbacks when the SSL object is gone (python#146573)
  pythongh-146090: fix memory management of internal `sqlite3` callback contexts (python#146569)
  pythongh-145876: Do not mask KeyErrors raised during dictionary unpacking in call (pythonGH-146472)
  pythongh-146004: fix test_args_from_interpreter_flags on windows (python#146580)
  pythongh-139003: Use frozenset for module level attributes in _pyrepl.utils (python#139004)
  pythonGH-146527: Add more data to GC statistics and add it to PyDebugOffsets (python#146532)
  ...
@pablogsal pablogsal mentioned this pull request Apr 4, 2026
gh-130273: Fix traceback color output with unicode characters #142529
Merged
clin1234 pushed a commit to clin1234/cpython that referenced this pull request Apr 16, 2026
@picnixz @clin1234
pythongh-146090: fix memory management of internal sqlite3 callback…
77666cc
… contexts (python#146569)
ljfp pushed a commit to ljfp/cpython that referenced this pull request Apr 25, 2026
@picnixz @ljfp
pythongh-146090: fix memory management of internal sqlite3 callback…
5448ac0
… contexts (python#146569)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@berkerpeksag berkerpeksag Awaiting requested review from berkerpeksag
@erlend-aasland erlend-aasland Awaiting requested review from erlend-aasland erlend-aasland is a code owner

Uh oh!

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

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Assertion failure in free_callback_context via create_collation and missing PyErr_NoMemory in create_callback_context

Uh oh!

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

2 participants

@picnixz @bedevere-bot
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.